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
Modifier and TypeFieldDescriptionstatic final STLColorModel
static final int
static final int
static final STLColorModel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
beginSave
(OutputStream stream, int numFaces) void
void
endSave()
void
void
void
void
setScale
(float s) void
void
useInvertedNormals
(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)
-