Documentation for vtkSTLReader

vtkSTLReader - read ASCII or binary stereo lithography files

Super Class: vtkPolyDataSource

Description:

vtkSTLReader is a source object that reads ASCII or binary stereo lithography files (.stl files). The FileName must be specified to vtkSTLReader. The object automatically detects whether the file is ASCII or binary. .stl files are quite inefficient since they duplicate vertex definitions. By setting the Merging boolean you can control wether the point data is merged after reading. Merging is performed by default, however, merging requires a large amount of temporary storage since a 3D hash table must be constructed.

 

Caveats:

Binary files written on one system may not be readable on other systems. vtkSTLWriter uses VAX or PC byte ordering and swaps bytes on other systems.

 

Methods:

void vtkSTLReader ()
void vtkSTLReader ()
const char *GetClassName ()
void PrintSelf (unknown & ,vtkIndent )
static vtkSTLReader *New ()
unsigned long GetMTime ()
void SetFileName (char *)
char *GetFileName ()
void SetMerging (int )
int GetMerging ()
void MergingOn ()
void MergingOff ()
void SetLocator (vtkPointLocator *)
vtkPointLocator *GetLocator ()
void CreateDefaultLocator ()
void SetLocator (vtkPointLocator &)
void Execute ()
int ReadBinarySTL (unknown * ,vtkPoints * ,vtkCellArray *)
int ReadASCIISTL (unknown * ,vtkPoints * ,vtkCellArray *)
int GetSTLFileType (unknown *)

 

Detailed Method Descriptions:

Construct object with merging set to true.

static vtkSTLReader *New ()

Overload standard modified time function. If locator is modified, then this object is modified as well.

unsigned long GetMTime ()

Specify file name of stereo lithography file.

void SetFileName (char *)
char *GetFileName ()

Turn on/off merging of points/triangles.

void SetMerging (int )
int GetMerging ()
void MergingOn ()
void MergingOff ()

Specify a spatial locator for merging points. By default an instance of vtkMergePoints is used.

void SetLocator (vtkPointLocator *)
vtkPointLocator *GetLocator ()

Create default locator. Used to create one when none is specified.

void CreateDefaultLocator ()

For legacy compatibiltiy. Do not use.

void SetLocator (vtkPointLocator &)