STLWriter
Introduction
vtkSTLWriter writes stereo lithography (.stl) files in either ASCII or binary form. Stereo lithography files contain only triangles. Since VTK 8.1, this writer converts non-triangle polygons into triangles, so there is no longer a need to use vtkTriangleFilter prior to using this writer if the input contains polygons with more than three vertices.
Methods
extend
Method used to decorate a given object (publicAPI+model) with vtkSTLWriter characteristics.
| Argument | Type | Required | Description |
|---|---|---|---|
publicAPI | Yes | object on which methods will be bounds (public) | |
model | Yes | object on which data structure will be bounds (protected) | |
initialValues | ISTLWriterInitialValues | No | (default: {}) |
getFormat
getTransform
newInstance
Method used to create a new instance of vtkSTLWriter
| Argument | Type | Required | Description |
|---|---|---|---|
initialValues | ISTLWriterInitialValues | No | for pre-setting some of its content |
requestData
| Argument | Type | Required | Description |
|---|---|---|---|
inData | Yes | ||
outData | Yes |
setFormat
| Argument | Type | Required | Description |
|---|---|---|---|
format | FormatTypes | Yes |
setTransform
| Argument | Type | Required | Description |
|---|---|---|---|
transform | mat4 | Yes | Tranformation matrix. |
writeSTL
| Argument | Type | Required | Description |
|---|---|---|---|
polyData | vktPolyData | Yes | |
format | FormatTypes | No | |
transform | mat4 | No |