|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.geom.mesh.STLReader
public class STLReader
Utility class to read binary STL files and turn them into
TriangleMesh
instances.
Constructor Summary | |
---|---|
STLReader()
|
Method Summary | |
---|---|
TriangleMesh |
loadBinary(java.io.InputStream stream,
java.lang.String meshName)
Attempts to load an STL model from the given InputStream . |
TriangleMesh |
loadBinary(java.lang.String fileName)
Attempts to load an STL model from the given file path. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public STLReader()
Method Detail |
---|
public TriangleMesh loadBinary(java.io.InputStream stream, java.lang.String meshName)
InputStream
.
Currently no exceptions are being thrown and the method will return null
if anything goes wrong during parsing the mesh data.
stream
- meshName
-
public TriangleMesh loadBinary(java.lang.String fileName)
fileName
- file path to read model from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |