NSF Postdoctoral Research
A set of C++ code developed by Andrew E. Slaughter
SlaughterVol2mesh Namespace Reference

Code related to the Vol2mesh class. More...

Classes

struct  odt_lloyd_settings
 A container for storing CGAL Lloyd and Odt optimization settings. More...
struct  perturb_exude_settings
 A class for containing CGAL Perturb and Exude optimization settings. More...
class  Vol2mesh
 A class for generating a 3D mesh from 2D image slices. This class acts as a wrapper to the CGAL, VTK, and ImageMagick++ libraries to read, build, and export tetrahedral meshes from a pixel image. The class is used by the v2m executable (Image Mesh Generation: v2m) and supports many of the features demonstrated in the CGAL documentation. More...
class  Vol2meshMeshCriteria
 A class for storing and accessing mesh criteria data for the Vol2mesh class. The Vol2mesh class relies on instances of this class to store and retrieve the CGAL meshing criteria. Details of these critiera are provided in the CGAL documentation (see link below). There are five criteria, these terms are provided here in order: More...

Typedefs

typedef
CGAL::Exact_predicates_inexact_constructions_kernel 
K
 Short-hand for CGAL kernel library class.
typedef
CGAL::Labeled_image_mesh_domain_3
< CGAL::Image_3, K
Mesh_domain
 Short-hand for 3D image domain CGAL library class.
typedef
CGAL::Mesh_triangulation_3
< Mesh_domain >::type 
Tr
 Short-hand for CGAL 3D triangulation library class.
typedef
CGAL::Mesh_complex_3_in_triangulation_3
< Tr
C3t3
 Short-hand for CGAL 3D complex triangulation library class.
typedef CGAL::Mesh_criteria_3< TrMesh_criteria
 Short-hand for CGAL 3D mesh critiera library class.
typedef
CGAL::Mesh_constant_domain_field_3
< Mesh_domain::R,
Mesh_domain::Index > 
Sizing_field
 Short-hand for creating subdomain mech critiera variable.
typedef vector< vector< double > > matrix
 Short-hand notation for a vector of vectors (used in print_results)

Functions

template<typename C3T3 >
vtkUnstructuredGrid * output_c3t3_subdomain_to_vtk_unstructured_grid (const C3T3 &c3t3, vtkUnstructuredGrid *grid=0)
 A function for converting a CGAL mesh to VTK including the subdomain.

Detailed Description

Code related to the Vol2mesh class.

This namespace includes the classes, typedefs, and functions associated with the Vol2mesh class. See Image Mesh Generation: v2m for complete details on the useage of the associated executable.


Function Documentation

template<typename C3T3 >
vtkUnstructuredGrid* SlaughterVol2mesh::output_c3t3_subdomain_to_vtk_unstructured_grid ( const C3T3 &  c3t3,
vtkUnstructuredGrid *  grid = 0 
)

A function for converting a CGAL mesh to VTK including the subdomain.

A template function that modifies the CGAL function (output_c3t3_to_vtk_unstructured_grid) to include the exporting of the subdomain_index, which in the case of the input files is the pixel value.

The header for the original CGAL file is included in the source code for this file.

Parameters:
c3t3CGAL::C3t3 mesh object
gridA pointer to the vtk grid; be default the grid is generated
Returns:
A pointer to the vtkUnstructuredGrid object
See also:
v2m.cpp
Vol2mesh
Vol2mesh::generate_mesh
 All Classes Namespaces Files Functions Variables Typedefs