NAME
vtkSTLReader - read ASCII or binary stereo lithography files
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkSTLReader.h"
class VTK_EXPORT vtkSTLReader : public vtkPolyDataSource
vtkSTLReader();
~vtkSTLReader();
static vtkSTLReader *New() {return new vtkSTLReader;};
const char *GetClassName() {return "vtkSTLReader";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetFileName(char *);
char *GetFileName();
void SetMerging(int);
int GetMerging();
void MergingOn();
void MergingOff();
void SetLocator(vtkPointLocator *locator);
void SetLocator(vtkPointLocator& locator) {this->SetLocator(&locator);};
vtkPointLocator *GetLocator();
void CreateDefaultLocator();
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.
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.
SUMMARY
void SetFileName(char *)
Specify file name of stereo lithography file.
void SetMerging(int)
Turn on/off merging of points/triangles.
vtkSTLReader()
Construct object with merging set to true.
void SetLocator(vtkPointLocator *locator)
Specify a spatial locator for merging points. By default an instance of vtkMergePoints is used.