java.lang.Object
org.bzdev.p3d.BinarySTLParser
Parser for Binary STL files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToModel
(Model3D m3d) Add the contents of an STL file to a model.void
setIgnoreAttributeByteCounts
(boolean value) Determine whether the attribute byte count field should be ignored.
-
Constructor Details
-
BinarySTLParser
Constructor.- Parameters:
is
- the input stream used to read an STL file
-
-
Method Details
-
setIgnoreAttributeByteCounts
public void setIgnoreAttributeByteCounts(boolean value) Determine whether the attribute byte count field should be ignored.- Parameters:
value
- true if the attribute byte count field should be ignored; false otherwise
-
addToModel
Add the contents of an STL file to a model. If the model is configures to use object transformations, (rotations and translation), those will be applied.- Parameters:
m3d
- the model- Throws:
IOException
- an IO exception occurred
-