estimate volume, area, shape index of triangle mesh
More...
#include <vtkMassProperties.h>
Inherits vtkPolyDataAlgorithm.
estimate volume, area, shape index of triangle mesh
vtkMassProperties estimates the volume, the surface area, and the normalized shape index of a triangle mesh. The algorithm implemented here is based on the discrete form of the divergence theorem. The general assumption here is that the model is of closed surface. For more details see the following reference (Alyassin A.M. et al, "Evaluation of new algorithms for the
interactive measurement of surface area and volume", Med Phys 21(6) 1994.).
- Warning
- Currently only triangles are processed. Use vtkTriangleFilter to convert any strips or polygons to triangles.
- See Also
- vtkTriangleFilter
- Tests:
- vtkMassProperties (Tests)
Definition at line 44 of file vtkMassProperties.h.
vtkMassProperties::vtkMassProperties |
( |
| ) |
|
|
protected |
vtkMassProperties::~vtkMassProperties |
( |
| ) |
|
|
protected |
Constructs with initial values of zero.
static int vtkMassProperties::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkMassProperties::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkMassProperties::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkMassProperties::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
double vtkMassProperties::GetVolume |
( |
| ) |
|
|
inline |
double vtkMassProperties::GetVolumeProjected |
( |
| ) |
|
|
inline |
Compute and return the projected volume. Typically you should compare this volume to the value returned by GetVolume if you get an error (GetVolume()-GetVolumeProjected())*10000 that is greater than GetVolume() this should identify a problem: * Either the polydata is not closed * Or the polydata contains triangle that are flipped
Definition at line 61 of file vtkMassProperties.h.
double vtkMassProperties::GetVolumeX |
( |
| ) |
|
|
inline |
Compute and return the volume projected on to each axis aligned plane.
Definition at line 66 of file vtkMassProperties.h.
double vtkMassProperties::GetVolumeY |
( |
| ) |
|
|
inline |
Compute and return the volume projected on to each axis aligned plane.
Definition at line 67 of file vtkMassProperties.h.
double vtkMassProperties::GetVolumeZ |
( |
| ) |
|
|
inline |
Compute and return the volume projected on to each axis aligned plane.
Definition at line 68 of file vtkMassProperties.h.
double vtkMassProperties::GetKx |
( |
| ) |
|
|
inline |
Compute and return the weighting factors for the maximum unit normal component (MUNC).
Definition at line 74 of file vtkMassProperties.h.
double vtkMassProperties::GetKy |
( |
| ) |
|
|
inline |
Compute and return the weighting factors for the maximum unit normal component (MUNC).
Definition at line 75 of file vtkMassProperties.h.
double vtkMassProperties::GetKz |
( |
| ) |
|
|
inline |
Compute and return the weighting factors for the maximum unit normal component (MUNC).
Definition at line 76 of file vtkMassProperties.h.
double vtkMassProperties::GetSurfaceArea |
( |
| ) |
|
|
inline |
double vtkMassProperties::GetMinCellArea |
( |
| ) |
|
|
inline |
double vtkMassProperties::GetMaxCellArea |
( |
| ) |
|
|
inline |
double vtkMassProperties::GetNormalizedShapeIndex |
( |
| ) |
|
|
inline |
Compute and return the normalized shape index. This characterizes the deviation of the shape of an object from a sphere. A sphere's NSI is one. This number is always >= 1.0.
Definition at line 92 of file vtkMassProperties.h.
virtual int vtkMassProperties::RequestData |
( |
vtkInformation * |
request, |
|
|
vtkInformationVector ** |
inputVector, |
|
|
vtkInformationVector * |
outputVector |
|
) |
| |
|
protectedvirtual |
double vtkMassProperties::SurfaceArea |
|
protected |
double vtkMassProperties::MinCellArea |
|
protected |
double vtkMassProperties::MaxCellArea |
|
protected |
double vtkMassProperties::Volume |
|
protected |
double vtkMassProperties::VolumeProjected |
|
protected |
double vtkMassProperties::VolumeX |
|
protected |
double vtkMassProperties::VolumeY |
|
protected |
double vtkMassProperties::VolumeZ |
|
protected |
double vtkMassProperties::Kx |
|
protected |
double vtkMassProperties::Ky |
|
protected |
double vtkMassProperties::Kz |
|
protected |
double vtkMassProperties::NormalizedShapeIndex |
|
protected |
The documentation for this class was generated from the following file: