Go to the documentation of this file.
65 #ifndef vtkMeshQuality_h
66 #define vtkMeshQuality_h
68 #include "vtkFiltersVerdictModule.h"
74 #define VTK_QUALITY_EDGE_RATIO 0
75 #define VTK_QUALITY_ASPECT_RATIO 1
76 #define VTK_QUALITY_RADIUS_RATIO 2
77 #define VTK_QUALITY_ASPECT_FROBENIUS 3
78 #define VTK_QUALITY_MED_ASPECT_FROBENIUS 4
79 #define VTK_QUALITY_MAX_ASPECT_FROBENIUS 5
80 #define VTK_QUALITY_MIN_ANGLE 6
81 #define VTK_QUALITY_COLLAPSE_RATIO 7
82 #define VTK_QUALITY_MAX_ANGLE 8
83 #define VTK_QUALITY_CONDITION 9
84 #define VTK_QUALITY_SCALED_JACOBIAN 10
85 #define VTK_QUALITY_SHEAR 11
86 #define VTK_QUALITY_RELATIVE_SIZE_SQUARED 12
87 #define VTK_QUALITY_SHAPE 13
88 #define VTK_QUALITY_SHAPE_AND_SIZE 14
89 #define VTK_QUALITY_DISTORTION 15
90 #define VTK_QUALITY_MAX_EDGE_RATIO 16
91 #define VTK_QUALITY_SKEW 17
92 #define VTK_QUALITY_TAPER 18
93 #define VTK_QUALITY_VOLUME 19
94 #define VTK_QUALITY_STRETCH 20
95 #define VTK_QUALITY_DIAGONAL 21
96 #define VTK_QUALITY_DIMENSION 22
97 #define VTK_QUALITY_ODDY 23
98 #define VTK_QUALITY_SHEAR_AND_SIZE 24
99 #define VTK_QUALITY_JACOBIAN 25
100 #define VTK_QUALITY_WARPAGE 26
101 #define VTK_QUALITY_ASPECT_GAMMA 27
102 #define VTK_QUALITY_AREA 28
103 #define VTK_QUALITY_ASPECT_BETA 29
133 vtkSetMacro(TriangleQualityMeasure,
int);
134 vtkGetMacro(TriangleQualityMeasure,
int);
205 vtkSetMacro(QuadQualityMeasure,
int);
206 vtkGetMacro(QuadQualityMeasure,
int);
312 vtkSetMacro(TetQualityMeasure,
int);
313 vtkGetMacro(TetQualityMeasure,
int);
392 vtkSetMacro(HexQualityMeasure,
int);
393 vtkGetMacro(HexQualityMeasure,
int);
867 if ( ! ((cv != 0) ^ (this->Volume != 0)) )
875 this->CompatibilityModeOn();
915 if ( !((cm != 0) ^ (this->CompatibilityMode != 0)) )
919 this->CompatibilityMode = cm;
921 if ( this->CompatibilityMode )
952 static double CurrentTriNormal[3];
959 #endif // vtkMeshQuality_h
static double QuadWarpage(vtkCell *cell)
static double TetCondition(vtkCell *cell)
void SetTetQualityMeasureToScaledJacobian()
void SetTriangleQualityMeasureToAspectRatio()
void SetTriangleQualityMeasureToCondition()
static double HexEdgeRatio(vtkCell *cell)
This is a static function used to calculate the edge ratio of a hexahedron.
#define VTK_QUALITY_SHAPE
static double QuadJacobian(vtkCell *cell)
static double HexShapeAndSize(vtkCell *cell)
void SetTetQualityMeasureToMinAngle()
void SetTetQualityMeasureToRelativeSizeSquared()
static double TetScaledJacobian(vtkCell *cell)
static double QuadAspectRatio(vtkCell *cell)
This is a static function used to calculate the aspect ratio of a planar quadrilateral.
#define VTK_QUALITY_ASPECT_RATIO
void SetQuadQualityMeasureToTaper()
#define VTK_QUALITY_SHEAR
#define VTK_QUALITY_MAX_ANGLE
int TriangleQualityMeasure
virtual void SetVolume(vtkTypeBool cv)
These methods are deprecated.
void SetQuadQualityMeasureToRelativeSizeSquared()
#define VTK_QUALITY_DIAGONAL
void SetTriangleQualityMeasureToArea()
void SetTetQualityMeasureToEdgeRatio()
static double HexMedAspectFrobenius(vtkCell *cell)
This is a static function used to calculate the average Frobenius aspect of the 8 corner tetrahedra o...
#define VTK_QUALITY_CONDITION
static double QuadMaxAspectFrobenius(vtkCell *cell)
This is a static function used to calculate the maximal Frobenius aspect of the 4 corner triangles of...
#define VTK_QUALITY_RADIUS_RATIO
static double QuadOddy(vtkCell *cell)
void SetTriangleQualityMeasureToRadiusRatio()
void SetQuadQualityMeasureToAspectRatio()
void SetHexQualityMeasureToScaledJacobian()
virtual void Modified()
Update the modification time for this object.
static double TriangleRelativeSizeSquared(vtkCell *cell)
This is a static function used to calculate the square of the relative size of a triangle.
void SetHexQualityMeasureToEdgeRatio()
static double TriangleEdgeRatio(vtkCell *cell)
This is a static function used to calculate the edge ratio of a triangle.
static double QuadMedAspectFrobenius(vtkCell *cell)
This is a static function used to calculate the average Frobenius aspect of the 4 corner triangles of...
#define VTK_QUALITY_VOLUME
void SetQuadQualityMeasureToWarpage()
static double TetAspectGamma(vtkCell *cell)
static double TriangleScaledJacobian(vtkCell *cell)
This is a static function used to calculate the scaled Jacobian of a triangle.
static double QuadShearAndSize(vtkCell *cell)
#define VTK_QUALITY_DISTORTION
static double QuadMaxAngle(vtkCell *cell)
void SetHexQualityMeasureToShearAndSize()
void SetQuadQualityMeasureToShapeAndSize()
abstract superclass for arrays of numeric data
#define VTK_QUALITY_MIN_ANGLE
Calculate functions of quality of the elements of a mesh.
static double TriangleCondition(vtkCell *cell)
This is a static function used to calculate the condition number of a triangle.
void SetQuadQualityMeasureToScaledJacobian()
static double TetAspectFrobenius(vtkCell *cell)
This is a static function used to calculate the Frobenius condition number of the transformation matr...
#define VTK_QUALITY_MED_ASPECT_FROBENIUS
static double TetJacobian(vtkCell *cell)
void SetQuadQualityMeasureToMaxAngle()
void SetTetQualityMeasureToCondition()
static double HexStretch(vtkCell *cell)
void SetTetQualityMeasureToAspectBeta()
void SetQuadQualityMeasureToMedAspectFrobenius()
void SetHexQualityMeasureToShapeAndSize()
void SetTriangleQualityMeasureToEdgeRatio()
void SetTriangleQualityMeasureToDistortion()
void SetTriangleQualityMeasureToScaledJacobian()
void SetQuadQualityMeasureToMaxAspectFrobenius()
#define VTK_QUALITY_WARPAGE
void SetHexQualityMeasureToTaper()
Superclass for algorithms that produce output of the same type as input.
#define VTK_QUALITY_ASPECT_FROBENIUS
void SetHexQualityMeasureToSkew()
void SetHexQualityMeasureToMaxEdgeRatios()
void SetHexQualityMeasureToDistortion()
static double QuadShape(vtkCell *cell)
void SetQuadQualityMeasureToRadiusRatio()
void SetHexQualityMeasureToMaxAspectFrobenius()
static double HexTaper(vtkCell *cell)
void SetTetQualityMeasureToRadiusRatio()
void SetQuadQualityMeasureToShearAndSize()
static double QuadCondition(vtkCell *cell)
void SetHexQualityMeasureToJacobian()
#define VTK_QUALITY_STRETCH
void SetHexQualityMeasureToDiagonal()
#define VTK_QUALITY_JACOBIAN
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetQuadQualityMeasureToStretch()
void SetTetQualityMeasureToAspectFrobenius()
void SetTetQualityMeasureToShapeAndSize()
#define VTK_QUALITY_SHEAR_AND_SIZE
vtkTypeBool SaveCellQuality
void SetHexQualityMeasureToVolume()
static double TetCollapseRatio(vtkCell *cell)
This is a static function used to calculate the collapse ratio of a tetrahedron.
virtual void SetRatio(vtkTypeBool r)
These methods are deprecated.
void SetQuadQualityMeasureToShear()
static double TetMinAngle(vtkCell *cell)
This is a static function used to calculate the minimal (nonoriented) dihedral angle of a tetrahedron...
void SetTetQualityMeasureToJacobian()
static double TriangleArea(vtkCell *cell)
This is a static function used to calculate the area of a triangle.
abstract class to specify cell behavior
void SetQuadQualityMeasureToJacobian()
void SetHexQualityMeasureToShear()
void SetHexQualityMeasureToOddy()
static double HexShape(vtkCell *cell)
void SetTetQualityMeasureToCollapseRatio()
a simple class to control print indentation
static double TetEdgeRatio(vtkCell *cell)
This is a static function used to calculate the edge ratio of a tetrahedron.
static double HexMaxAspectFrobenius(vtkCell *cell)
This is a static function used to calculate the maximal Frobenius aspect of the 8 corner tetrahedra o...
static double QuadArea(vtkCell *cell)
void SetTetQualityMeasureToVolume()
void SetTriangleQualityMeasureToMaxAngle()
void SetQuadQualityMeasureToMinAngle()
void SetQuadQualityMeasureToMaxEdgeRatios()
static double TriangleMaxAngle(vtkCell *cell)
This is a static function used to calculate the maximal (nonoriented) angle of a triangle,...
static double QuadTaper(vtkCell *cell)
static double HexShearAndSize(vtkCell *cell)
void SetHexQualityMeasureToStretch()
void SetTriangleQualityMeasureToShape()
static double HexDimension(vtkCell *cell)
static double QuadStretch(vtkCell *cell)
static double QuadRelativeSizeSquared(vtkCell *cell)
void SetTriangleQualityMeasureToRelativeSizeSquared()
void SetHexQualityMeasureToCondition()
#define VTK_QUALITY_SCALED_JACOBIAN
static double QuadShear(vtkCell *cell)
virtual void SetCompatibilityMode(vtkTypeBool cm)
CompatibilityMode governs whether, when both a quality function and cell volume are to be stored as c...
void SetTriangleQualityMeasureToShapeAndSize()
static double TriangleRadiusRatio(vtkCell *cell)
This is a static function used to calculate the radius ratio of a triangle.
vtkTypeBool CompatibilityMode
static double HexScaledJacobian(vtkCell *cell)
static double QuadMinAngle(vtkCell *cell)
This is a static function used to calculate the minimal (nonoriented) angle of a quadrilateral,...
static double QuadShapeAndSize(vtkCell *cell)
static double QuadEdgeRatio(vtkCell *cell)
This is a static function used to calculate the edge ratio of a quadrilateral.
void SetHexQualityMeasureToMedAspectFrobenius()
static double HexShear(vtkCell *cell)
static double TriangleDistortion(vtkCell *cell)
This is a static function used to calculate the distortion of a triangle.
static double HexMaxEdgeRatio(vtkCell *cell)
static double HexSkew(vtkCell *cell)
static double TriangleMinAngle(vtkCell *cell)
This is a static function used to calculate the minimal (nonoriented) angle of a triangle,...
static double TriangleAspectFrobenius(vtkCell *cell)
This is a static function used to calculate the Frobenius condition number of the transformation matr...
void SetTetQualityMeasureToDistortion()
void SetQuadQualityMeasureToArea()
static int GetCurrentTriangleNormal(double point[3], double normal[3])
A function called by some VERDICT triangle quality functions to test for inverted triangles.
#define VTK_QUALITY_RELATIVE_SIZE_SQUARED
static double TetAspectBeta(vtkCell *cell)
static double TetRadiusRatio(vtkCell *cell)
This is a static function used to calculate the radius ratio of a tetrahedron.
vtkDataArray * CellNormals
static double TetDistortion(vtkCell *cell)
static double HexDistortion(vtkCell *cell)
static double TriangleShape(vtkCell *cell)
This is a static function used to calculate the shape of a triangle.
static double QuadSkew(vtkCell *cell)
static double TetVolume(vtkCell *cell)
#define VTK_QUALITY_SHAPE_AND_SIZE
void SetQuadQualityMeasureToEdgeRatio()
~vtkMeshQuality() override
void SetTetQualityMeasureToAspectRatio()
static double TetRelativeSizeSquared(vtkCell *cell)
static double QuadMaxEdgeRatios(vtkCell *cell)
#define VTK_QUALITY_TAPER
static double TriangleAspectRatio(vtkCell *cell)
This is a static function used to calculate the aspect ratio of a triangle.
#define VTK_QUALITY_ASPECT_BETA
static double HexJacobian(vtkCell *cell)
static double TetShapeandSize(vtkCell *cell)
void SetQuadQualityMeasureToSkew()
void SetQuadQualityMeasureToDistortion()
static double HexRelativeSizeSquared(vtkCell *cell)
static double QuadRadiusRatio(vtkCell *cell)
This is a static function used to calculate the radius ratio of a planar quadrilateral.
static double TetShape(vtkCell *cell)
void SetTetQualityMeasureToShape()
void SetHexQualityMeasureToRelativeSizeSquared()
#define VTK_QUALITY_DIMENSION
#define VTK_QUALITY_EDGE_RATIO
static double QuadScaledJacobian(vtkCell *cell)
void SetTetQualityMeasureToAspectGamma()
static double HexDiagonal(vtkCell *cell)
static double HexOddy(vtkCell *cell)
void SetHexQualityMeasureToShape()
void SetQuadQualityMeasureToShape()
static double QuadDistortion(vtkCell *cell)
void SetTriangleQualityMeasureToMinAngle()
static double HexVolume(vtkCell *cell)
static double TriangleShapeAndSize(vtkCell *cell)
This is a static function used to calculate the product of shape and relative size of a triangle.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
#define VTK_QUALITY_MAX_ASPECT_FROBENIUS
static vtkMeshQuality * New()
#define VTK_QUALITY_COLLAPSE_RATIO
#define VTK_QUALITY_MAX_EDGE_RATIO
void SetQuadQualityMeasureToCondition()
#define VTK_QUALITY_ASPECT_GAMMA
static double HexCondition(vtkCell *cell)
void SetHexQualityMeasureToDimension()
static double TetAspectRatio(vtkCell *cell)
This is a static function used to calculate the aspect ratio of a tetrahedron.
void SetQuadQualityMeasureToOddy()
void SetTriangleQualityMeasureToAspectFrobenius()