Man Page for vtkVoxelModeller
Table of Contents

NAME

vtkVoxelModeller - convert an arbitrary dataset to a voxel representation

SYNOPSIS


#include "/opt/vtk-c++/graphics/vtkVoxelModeller.h"

class VTK_EXPORT vtkVoxelModeller : public vtkDataSetToStructuredPointsFilter

vtkVoxelModeller();
static vtkVoxelModeller *New() {return new vtkVoxelModeller;};
const char *GetClassName() {return "vtkVoxelModeller";};
void PrintSelf(ostream& os, vtkIndent indent);
float ComputeModelBounds(float origin[3], float ar[3]);
void SetSampleDimensions(int i, int j, int k);
void SetSampleDimensions(int dim[3]);
int *GetSampleDimensions();
void GetSampleDimensions(int data[3]);
void SetMaximumDistance(float);
float GetMaximumDistance();
void SetModelBounds(float *bounds);
void SetModelBounds(float xmin, float xmax, float ymin, float ymax, float zmin, float zmax);
float *GetModelBounds();
void GetModelBounds(float data[6]);
void Write(char *);

DESCRIPTION

vtkVoxelModeller is a filter that converts an arbitrary data set to a structured point (i.e., voxel) representation. It is very similar to vtkImplicitModeller, except that it doesn't record distance; instead it records occupancy. As such, it stores its results in the more compact form of 0/1 bits.

SEE ALSO

vtkBitScalars vtkImplicitModeller

SUMMARY

void SetMaximumDistance(float)
Specify distance away from surface of input geometry to sample. Smaller values make large increases in performance.

vtkVoxelModeller()
Construct an instance of vtkVoxelModeller with its sample dimensions set to (50,50,50), and so that the model bounds are automatically computed from its input. The maximum distance is set to examine the whole grid. This could be made much faster, and probably will be in the future.

void SetModelBounds(float *bounds)
Specify the position in space to perform the voxelization.

float ComputeModelBounds(float origin[3], float spacing[3]) Compute the ModelBounds based on the input geometry.

void SetSampleDimensions(int i, int j, int k)
Set the i-j-k dimensions on which to sample the distance function.


Table of Contents