Volume Cartographer 2.27.0
Classes | Functions
Meshing

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...
 

Detailed Description

Library for mesh creation, manipulation, resampling, and conversion.

Function Documentation

◆ DeepCopy()

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.

Warning
Output parameter should point to an empty ITKMesh. This function does not initialize a new ITKMesh::Pointer.
Parameters
copyVerticesIf true, copy vertices into the target mesh. Default: true
copyFacesIf true, copy faces into the target mesh. Default: true

◆ ITK2VTK()

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.

See also
examples/src/ITK2VTKExample.cpp meshing/test/ITK2VTKTest.cpp

◆ ScaleMesh()

void volcart::meshing::ScaleMesh ( const ITKMesh::Pointer &  input,
const ITKMesh::Pointer &  output,
double  scaleFactor 
)

Scale an ITKMesh by a linear scale factor.

Author
Seth Parker
Date
10/22/15

Uniform scaling of an ITKMesh by a linear scale factor (not an area scale factor).

Warning
Output parameter should point to an empty ITKMesh. This function will not initialize a new ITKMesh::Pointer.

◆ SmoothNormals()

ITKMesh::Pointer volcart::meshing::SmoothNormals ( const ITKMesh::Pointer &  input,
double  radius 
)

Smooth vertex normals within a specified radius.

Author
Abigail Coleman
Date
June 2015

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.

Parameters
radiusSize of the spherical neighborhood

◆ VTK2ITK()

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.

See also
examples/src/ITK2VTKExample.cpp meshing/test/ITK2VTKTest.cpp