Volume Cartographer 2.27.0
|
Library for mesh creation, manipulation, resampling, and conversion. More...
Classes | |
class | volcart::meshing::ACVD |
Mesh resampling using Approximated Centroidal Voronoi Diagrams. More... | |
class | volcart::meshing::OrderedPointSetMesher |
Generate an ordered mesh from an OrderedPointSet. More... | |
class | volcart::meshing::CalculateNormals |
Calculate vertex normals for ITK Meshes. More... | |
class | volcart::meshing::OrderedResampling |
Resample an ITKMesh using point ordering information. More... | |
Functions | |
void | volcart::DeepCopy (const ITKMesh::Pointer &input, const ITKMesh::Pointer &output, bool copyVertices=true, bool copyFaces=true) |
Create exact copy of ITKMesh. More... | |
void | volcart::meshing::ITK2VTK (ITKMesh::Pointer input, vtkSmartPointer< vtkPolyData > output) |
Convert from an ITKMesh to VTK PolyData. More... | |
void | volcart::meshing::VTK2ITK (vtkSmartPointer< vtkPolyData > input, ITKMesh::Pointer output) |
Convert from a VTK PolyData to an ITKMesh. More... | |
void | volcart::meshing::ScaleMesh (const ITKMesh::Pointer &input, const ITKMesh::Pointer &output, double scaleFactor) |
Scale an ITKMesh by a linear scale factor. More... | |
ITKMesh::Pointer | volcart::meshing::SmoothNormals (const ITKMesh::Pointer &input, double radius) |
Smooth vertex normals within a specified radius. More... | |
Library for mesh creation, manipulation, resampling, and conversion.
void volcart::DeepCopy | ( | const ITKMesh::Pointer & | input, |
const ITKMesh::Pointer & | output, | ||
bool | copyVertices = true , |
||
bool | copyFaces = true |
||
) |
Create exact copy of ITKMesh.
Copy vertex and face information from the input mesh into the output mesh. The resulting mesh is a unique (i.e. memory independent) copy of the original.
copyVertices | If true, copy vertices into the target mesh. Default: true |
copyFaces | If true, copy faces into the target mesh. Default: true |
void volcart::meshing::ITK2VTK | ( | ITKMesh::Pointer | input, |
vtkSmartPointer< vtkPolyData > | output | ||
) |
Convert from an ITKMesh to VTK PolyData.
Copy vertices, vertex normals, and faces (cells) from input to output.
void volcart::meshing::ScaleMesh | ( | const ITKMesh::Pointer & | input, |
const ITKMesh::Pointer & | output, | ||
double | scaleFactor | ||
) |
Scale an ITKMesh by a linear scale factor.
Uniform scaling of an ITKMesh by a linear scale factor (not an area scale factor).
ITKMesh::Pointer volcart::meshing::SmoothNormals | ( | const ITKMesh::Pointer & | input, |
double | radius | ||
) |
Smooth vertex normals within a specified radius.
Uses ITK's neighborhood locator to get the list of neighboring vertices within the provided spherical radius. Returns a DeepCopy of the original mesh, with smoothed vertex normals.
radius | Size of the spherical neighborhood |
void volcart::meshing::VTK2ITK | ( | vtkSmartPointer< vtkPolyData > | input, |
ITKMesh::Pointer | output | ||
) |
Convert from a VTK PolyData to an ITKMesh.
Copy vertices, vertex normals, and faces (cells) from input to output.