NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
List of all members
niftk::MeshGenerator Class Reference

Creates a VTK mesh using CGAL as a back-end from any single-file image volume supported by ITK. More...

Public Member Functions

Construction, Destruction
 MeshGenerator (void)
 

I/O

typedef itk::Image< unsigned
char, 3 > 
ITKImageType
 
void SetFileName (const std::string &fileName)
 
vtkSmartPointer
< vtkMultiBlockDataSet > & 
GetOutput (void)
 
const std::vector< std::vector
< std::pair< int, int > > > & 
GetMeshLabels (void) const
 

Mesh Quality Criteria

See CGALMesherBackEnd for defaults.
Values < 0 are ignored, and the corresponding default is used.

void SetFacetMinAngle (const float facetAngle)
 
void SetFacetMaxEdgeLength (const float facetEdgeLength)
 
void SetBoundaryApproximationError (const float facetApproximationError)
 
void SetCellMaxSize (const float cellSize)
 
void SetCellMaxRadiusEdgeRatio (const float cellEdgeRadiusRatio)
 

Meshing

void SetDoSurface (const bool doSurface)
 
void Update (void) throw (niftk::IOException)
 

Detailed Description

Creates a VTK mesh using CGAL as a back-end from any single-file image volume supported by ITK.

Can generate tetrahedral volume meshes and triangular surface meshes.

Member Typedef Documentation

typedef itk::Image<unsigned char, 3> niftk::MeshGenerator::ITKImageType

Itk image type used for I/O

Constructor & Destructor Documentation

MeshGenerator::MeshGenerator ( void  )

Member Function Documentation

const std::vector<std::vector<std::pair<int, int> > >& niftk::MeshGenerator::GetMeshLabels ( void  ) const
inline
Returns
Labels associated with cells in all submeshes (computed as part of the mesh generation process)
vtkSmartPointer<vtkMultiBlockDataSet>& niftk::MeshGenerator::GetOutput ( void  )
inline

Returns the VTK mesh generated from the input

void niftk::MeshGenerator::SetBoundaryApproximationError ( const float  facetApproximationError)
inline

Setter for the max. admissible boundary approximation error

void niftk::MeshGenerator::SetCellMaxRadiusEdgeRatio ( const float  cellEdgeRadiusRatio)
inline

Setter for the max. admissible min. cell edge / Delaunay ball-radius ratio

void niftk::MeshGenerator::SetCellMaxSize ( const float  cellSize)
inline

Setter for the max. cell size

void niftk::MeshGenerator::SetDoSurface ( const bool  doSurface)
inline

By default generates a volumetric mesh, if only a surface is desired, set this to true.

void niftk::MeshGenerator::SetFacetMaxEdgeLength ( const float  facetEdgeLength)
inline

Setter for the maximum admissible facet edge length

void niftk::MeshGenerator::SetFacetMinAngle ( const float  facetAngle)
inline

Setter for the minimum admissible facet angle, in degrees

void niftk::MeshGenerator::SetFileName ( const std::string fileName)
inline

Set the name of the input file

void MeshGenerator::Update ( void  )
throw (niftk::IOException
)

By default generates a volumetric mesh, if only a surface is desired, set this to true.


The documentation for this class was generated from the following files: