NAME
vtkUGFacetReader - read EDS Unigraphics facet files
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkUGFacetReader.h"
class VTK_EXPORT vtkUGFacetReader : public vtkPolyDataSource
vtkUGFacetReader();
~vtkUGFacetReader();
static vtkUGFacetReader *New() {return new vtkUGFacetReader;};
const char *GetClassName() {return "vtkUGFacetReader";};
void PrintSelf(ostream& os, vtkIndent indent);
void SetFileName(char *);
char *GetFileName();
int GetNumberOfParts();
short GetPartColorIndex(int partId);
void SetPartNumber(int);
int GetPartNumber();
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
vtkUGFacetReader is a source object that reads Unigraphics facet files. Unigraphics is a solid modelling system; facet files are the polygonal plot files it uses to create 3D plots.
SUMMARY
void SetFileName(char *)
Specify Unigraphics file name.
void SetPartNumber(int)
Specify the desired part to extract. The part number must range between [0,NumberOfParts-1]. If the value is =(-1), then all parts will be extracted. If the value is <(-1), then no parts will be extracted but the part colors will be updated.
void SetMerging(int)
Turn on/off merging of points/triangles.
vtkUGFacetReader()
Construct object to extract all parts, and with point merging turned on.
short GetPartColorIndex(int partId)
Retrieve color index for the parts in the file.
void SetLocator(vtkPointLocator *locator)
Specify a spatial locator for merging points. By default an instance of vtkMergePoints is used.