15 #ifndef niftkMeshGenerator_h
16 #define niftkMeshGenerator_h
22 #include <vtkSmartPointer.h>
23 #include <vtkMultiBlockDataSet.h>
48 vtkSmartPointer<vtkMultiBlockDataSet> mp_OutputMeshes;
49 std::vector<std::vector<std::pair<int,int> > > m_SubMeshLabels;
55 m_InputFileName = fileName;
59 vtkSmartPointer<vtkMultiBlockDataSet>&
GetOutput(
void) {
60 return mp_OutputMeshes;
64 const std::vector<std::vector<std::pair<int, int> > >&
GetMeshLabels(
void)
const {
65 return m_SubMeshLabels;
77 float m_facetAngle, m_facetEdgeLength, m_facetApproximationError;
78 float m_cellSize, m_cellEdgeRadiusRatio;
83 m_facetAngle = facetAngle;
88 m_facetEdgeLength = facetEdgeLength;
93 m_facetApproximationError = facetApproximationError;
98 m_cellSize = cellSize;
103 m_cellEdgeRadiusRatio = cellEdgeRadiusRatio;
112 void _ComputeMeshLabels(
void);
118 m_DoSurface = doSurface;
void SetCellMaxSize(const float cellSize)
Definition: niftkMeshGenerator.h:97
void SetFacetMaxEdgeLength(const float facetEdgeLength)
Definition: niftkMeshGenerator.h:87
vtkSmartPointer< vtkMultiBlockDataSet > & GetOutput(void)
Definition: niftkMeshGenerator.h:59
itk::Image< unsigned char, 3 > ITKImageType
Definition: niftkMeshGenerator.h:44
void SetCellMaxRadiusEdgeRatio(const float cellEdgeRadiusRatio)
Definition: niftkMeshGenerator.h:102
Creates a VTK mesh using CGAL as a back-end from any single-file image volume supported by ITK...
Definition: niftkMeshGenerator.h:37
void SetFileName(const std::string &fileName)
Definition: niftkMeshGenerator.h:54
const std::vector< std::vector< std::pair< int, int > > > & GetMeshLabels(void) const
Definition: niftkMeshGenerator.h:64
void SetFacetMinAngle(const float facetAngle)
Definition: niftkMeshGenerator.h:82
void SetDoSurface(const bool doSurface)
Definition: niftkMeshGenerator.h:116
Definition: niftkExceptionObject.h:21
GLsizei const GLcharARB ** string
Definition: glew.h:5194
Exceptions for Filesystem, Network, ... I/O.
Definition: niftkIOException.h:26
void SetBoundaryApproximationError(const float facetApproximationError)
Definition: niftkMeshGenerator.h:92