#include <vtkDataSetTriangleFilter.h>
vtkDataSetTriangleFilter generates n-dimensional simplices from any input dataset. That is, 3D cells are converted to tetrahedral meshes, 2D cells to triangles, and so on. The triangulation is guaranteed to be compatible.
This filter uses simple 1D and 2D triangulation techniques for cells that are of topological dimension 2 or less. For 3D cells--due to the issue of face compatibility across quadrilateral faces (which way to orient the diagonal?)--a fancier ordered Delaunay triangulation is used. This approach produces templates on the fly for triangulating the cells. The templates are then used to do the actual triangulation.
Definition at line 46 of file vtkDataSetTriangleFilter.h.
Public Types | |
typedef vtkUnstructuredGridAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetTetrahedraOnly (int) |
virtual int | GetTetrahedraOnly () |
virtual void | TetrahedraOnlyOn () |
virtual void | TetrahedraOnlyOff () |
Static Public Member Functions | |
static vtkDataSetTriangleFilter * | New () |
static int | IsTypeOf (const char *type) |
static vtkDataSetTriangleFilter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkDataSetTriangleFilter () | |
~vtkDataSetTriangleFilter () | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
void | StructuredExecute (vtkDataSet *, vtkUnstructuredGrid *) |
void | UnstructuredExecute (vtkDataSet *, vtkUnstructuredGrid *) |
Protected Attributes | |
vtkOrderedTriangulator * | Triangulator |
int | TetrahedraOnly |
Reimplemented from vtkUnstructuredGridAlgorithm.
Definition at line 50 of file vtkDataSetTriangleFilter.h.
vtkDataSetTriangleFilter::vtkDataSetTriangleFilter | ( | ) | [protected] |
vtkDataSetTriangleFilter::~vtkDataSetTriangleFilter | ( | ) | [protected] |
static vtkDataSetTriangleFilter* vtkDataSetTriangleFilter::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual const char* vtkDataSetTriangleFilter::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkUnstructuredGridAlgorithm.
static int vtkDataSetTriangleFilter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual int vtkDataSetTriangleFilter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkUnstructuredGridAlgorithm.
static vtkDataSetTriangleFilter* vtkDataSetTriangleFilter::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkUnstructuredGridAlgorithm.
void vtkDataSetTriangleFilter::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual void vtkDataSetTriangleFilter::SetTetrahedraOnly | ( | int | ) | [virtual] |
When On this filter will cull all 1D and 2D cells from the output. The default is Off.
virtual int vtkDataSetTriangleFilter::GetTetrahedraOnly | ( | ) | [virtual] |
When On this filter will cull all 1D and 2D cells from the output. The default is Off.
virtual void vtkDataSetTriangleFilter::TetrahedraOnlyOn | ( | ) | [virtual] |
When On this filter will cull all 1D and 2D cells from the output. The default is Off.
virtual void vtkDataSetTriangleFilter::TetrahedraOnlyOff | ( | ) | [virtual] |
When On this filter will cull all 1D and 2D cells from the output. The default is Off.
virtual int vtkDataSetTriangleFilter::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkUnstructuredGridAlgorithm.
virtual int vtkDataSetTriangleFilter::FillInputPortInformation | ( | int | port, | |
vtkInformation * | info | |||
) | [protected, virtual] |
Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkUnstructuredGridAlgorithm.
void vtkDataSetTriangleFilter::StructuredExecute | ( | vtkDataSet * | , | |
vtkUnstructuredGrid * | ||||
) | [protected] |
void vtkDataSetTriangleFilter::UnstructuredExecute | ( | vtkDataSet * | , | |
vtkUnstructuredGrid * | ||||
) | [protected] |
Definition at line 71 of file vtkDataSetTriangleFilter.h.
int vtkDataSetTriangleFilter::TetrahedraOnly [protected] |
Definition at line 77 of file vtkDataSetTriangleFilter.h.