Package toxi.geom.mesh
Class STLWriter
java.lang.Object
toxi.geom.mesh.STLWriter
A simple, but flexible and memory efficient exporter for binary STL files.
Custom color support is implemented via the STLcolorModel interface and the
exporter comes with the 2 most common format variations defined by the
DEFAULT and MATERIALISE constants.
The minimal design of this exporter means it does not build an extra list of
faces in RAM and so is able to easily export models with millions of faces.
http://en.wikipedia.org/wiki/STL_(file_format)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final STLColorModelstatic final intstatic final intstatic final STLColorModel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeginSave(OutputStream stream, int numFaces) voidvoidendSave()voidvoidvoidvoidsetScale(float s) voidvoiduseInvertedNormals(boolean state)
-
Field Details
-
DEFAULT_RGB
public static final int DEFAULT_RGB- See Also:
-
DEFAULT
-
MATERIALISE
-
DEFAULT_BUFFER
public static final int DEFAULT_BUFFER- See Also:
-
-
Constructor Details
-
STLWriter
public STLWriter() -
STLWriter
-
-
Method Details
-
beginSave
-
beginSave
-
endSave
public void endSave() -
face
-
face
-
face
-
setScale
public void setScale(float s) -
setScale
-
useInvertedNormals
public void useInvertedNormals(boolean state)
-