Documentation for vtkMarchingCubes

vtkMarchingCubes - generate isosurface(s) from volume

Super Class: vtkStructuredPointsToPolyDataFilter

Description:

vtkMarchingCubes is a filter that takes as input a volume (e.g., 3D structured point set) and generates on output one or more isosurfaces. One or more contour values must be specified to generate the isosurfaces. Alternatively, you can specify a min/max scalar range and the number of contours to generate a series of evenly spaced contour values.

 

Caveats:

This filter is specialized to volumes. If you are interested in contouring other types of data, use the general vtkContourFilter. If you want to contour an image (i.e., a volume slice), use vtkMarchingSquares.

 

See Also:

vtkContourFilter vtkSliceCubes vtkMarchingSquares vtkDividingCubes

 

Methods:

void vtkMarchingCubes ()
static vtkMarchingCubes *New ()
void vtkMarchingCubes ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
void SetValue (int ,float )
float GetValue (int )
float *GetValues ()
void GetValues (float *)
void SetNumberOfContours (int )
int GetNumberOfContours ()
void GenerateValues (int ,float )
void GenerateValues (int ,float ,float )
unsigned long GetMTime ()
void SetComputeNormals (int )
int GetComputeNormals ()
void ComputeNormalsOn ()
void ComputeNormalsOff ()
void SetComputeGradients (int )
int GetComputeGradients ()
void ComputeGradientsOn ()
void ComputeGradientsOff ()
void SetComputeScalars (int )
int GetComputeScalars ()
void ComputeScalarsOn ()
void ComputeScalarsOff ()
void SetLocator (vtkPointLocator *)
vtkPointLocator *GetLocator ()
void CreateDefaultLocator ()
void SetLocator (vtkPointLocator &)
void Execute ()

 

Detailed Method Descriptions:

Set/Get the computation of normals. Normal computation is failrly expensive in both time and storage. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.

void SetComputeNormals (int )
int GetComputeNormals ()
void ComputeNormalsOn ()
void ComputeNormalsOff ()

Set/Get the computation of gradients. Gradient computation is fairly expensive in both time and storage. Note that if ComputeNormals is on, gradients will have to be calculated, but will not be stored in the output dataset. If the output data will be processed by filters that modify topology or geometry, it may be wise to turn Normals and Gradients off.

void SetComputeGradients (int )
int GetComputeGradients ()
void ComputeGradientsOn ()
void ComputeGradientsOff ()

Set/Get the computation of scalars.

void SetComputeScalars (int )
int GetComputeScalars ()
void ComputeScalarsOn ()
void ComputeScalarsOff ()

Create default locator. Used to create one when none is specified. The locator is used to merge coincident points.

void CreateDefaultLocator ()