Section: Visualization Toolkit IO Classes
To create an instance of class vtkUGFacetReader, simply invoke its constructor as follows
obj = vtkUGFacetReader
obj is an instance of the vtkUGFacetReader class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkUGFacetReader = obj.NewInstance ()
vtkUGFacetReader = obj.SafeDownCast (vtkObject o)
long = obj.GetMTime () - Overload standard modified time function. If locator is modified,
then this object is modified as well.
obj.SetFileName (string ) - Specify Unigraphics file name.
string = obj.GetFileName () - Specify Unigraphics file name.
int = obj.GetNumberOfParts () - Special methods for interrogating the data file.
short = obj.GetPartColorIndex (int partId) - Retrieve color index for the parts in the file.
obj.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.
int = obj.GetPartNumber () - 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.
obj.SetMerging (int ) - Turn on/off merging of points/triangles.
int = obj.GetMerging () - Turn on/off merging of points/triangles.
obj.MergingOn () - Turn on/off merging of points/triangles.
obj.MergingOff () - Turn on/off merging of points/triangles.
obj.SetLocator (vtkIncrementalPointLocator locator) - Specify a spatial locator for merging points. By
default an instance of vtkMergePoints is used.
vtkIncrementalPointLocator = obj.GetLocator () - Specify a spatial locator for merging points. By
default an instance of vtkMergePoints is used.
obj.CreateDefaultLocator () - Create default locator. Used to create one when none is specified.