Skip to content

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.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesISTLWriterInitialValuesNo(default: {})

getFormat ​

getTransform ​

newInstance ​

Method used to create a new instance of vtkSTLWriter

ArgumentTypeRequiredDescription
initialValuesISTLWriterInitialValuesNofor pre-setting some of its content

requestData ​

ArgumentTypeRequiredDescription
inDataYes
outDataYes

setFormat ​

ArgumentTypeRequiredDescription
formatFormatTypesYes

setTransform ​

ArgumentTypeRequiredDescription
transformmat4YesTranformation matrix.

writeSTL ​

ArgumentTypeRequiredDescription
polyDatavktPolyDataYes
formatFormatTypesNo
transformmat4No