#include <vtkSTLWriter.h>
vtkSTLWriter writes stereo lithography (.stl) files in either ASCII or binary form. Stereo lithography files only contain triangles. If polygons with more than 3 vertices are present, only the first 3 vertices are written. Use vtkTriangleFilter to convert polygons to triangles.
Definition at line 36 of file vtkSTLWriter.h.
Public Types | |
typedef vtkPolyDataWriter | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
static vtkSTLWriter * | New () |
static int | IsTypeOf (const char *type) |
static vtkSTLWriter * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkSTLWriter () | |
~vtkSTLWriter () | |
void | WriteData () |
void | WriteBinarySTL (vtkPoints *pts, vtkCellArray *polys) |
void | WriteAsciiSTL (vtkPoints *pts, vtkCellArray *polys) |
vtkSTLWriter::vtkSTLWriter | ( | ) | [protected] |
vtkSTLWriter::~vtkSTLWriter | ( | ) | [inline, protected] |
Definition at line 45 of file vtkSTLWriter.h.
static vtkSTLWriter* vtkSTLWriter::New | ( | ) | [static] |
Created object with default header, ASCII format, and default names for scalars, vectors, tensors, normals, and texture coordinates.
Reimplemented from vtkPolyDataWriter.
virtual const char* vtkSTLWriter::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkPolyDataWriter.
static int vtkSTLWriter::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataWriter.
virtual int vtkSTLWriter::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkPolyDataWriter.
static vtkSTLWriter* vtkSTLWriter::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkPolyDataWriter.
virtual void vtkSTLWriter::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkPolyDataWriter.
void vtkSTLWriter::WriteData | ( | ) | [protected, virtual] |
Reimplemented from vtkPolyDataWriter.
void vtkSTLWriter::WriteBinarySTL | ( | vtkPoints * | pts, | |
vtkCellArray * | polys | |||
) | [protected] |
void vtkSTLWriter::WriteAsciiSTL | ( | vtkPoints * | pts, | |
vtkCellArray * | polys | |||
) | [protected] |