FreeMat
|
Section: Visualization Toolkit IO Classes
vtkFacetWriter creates an unstructured grid dataset. It reads ASCII files stored in Facet format
The facet format looks like this: FACET FILE ... nparts Part 1 name 0 npoints 0 0 p1x p1y p1z p2x p2y p2z ... 1 Part 1 name ncells npointspercell p1c1 p2c1 p3c1 ... pnc1 materialnum partnum p1c2 p2c2 p3c2 ... pnc2 materialnum partnum ...
To create an instance of class vtkFacetWriter, simply invoke its constructor as follows
obj = vtkFacetWriter
The class vtkFacetWriter has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, obj
is an instance of the vtkFacetWriter class.
string = obj.GetClassName ()
int = obj.IsA (string name)
vtkFacetWriter = obj.NewInstance ()
vtkFacetWriter = obj.SafeDownCast (vtkObject o)
obj.SetFileName (string )
- Specify file name of Facet datafile to read string = obj.GetFileName ()
- Specify file name of Facet datafile to read obj.Write ()
- Write data