public class PolyObjImporter
extends java.lang.Object
| Constructor and Description |
|---|
PolyObjImporter(java.io.InputStream inputStream)
Instantiates a new poly obj importer.
|
PolyObjImporter(java.lang.String filename)
Instantiates a new poly obj importer.
|
| Modifier and Type | Method and Description |
|---|---|
PolygonMeshView |
buildPolygonMeshView(java.lang.String key)
Builds the polygon mesh view.
|
javafx.scene.paint.Material |
getMaterial()
Gets the material.
|
javafx.scene.paint.Material |
getMaterial(java.lang.String key)
Gets the material.
|
PolygonMesh |
getMesh()
Gets the mesh.
|
PolygonMesh |
getMesh(java.lang.String key)
Gets the mesh.
|
java.util.Set<java.lang.String> |
getMeshes()
Gets the meshes.
|
static void |
setDebug(boolean debug)
Sets the debug.
|
static void |
setFlatXZ(boolean flatXZ)
Sets the flat xz.
|
static void |
setScale(float scale)
Sets the scale.
|
public PolyObjImporter(java.lang.String filename)
throws java.io.FileNotFoundException,
java.io.IOException
filename - the filenamejava.io.FileNotFoundException - the file not found exceptionjava.io.IOException - Signals that an I/O exception has occurred.public PolyObjImporter(java.io.InputStream inputStream)
throws java.io.IOException
inputStream - the input streamjava.io.IOException - Signals that an I/O exception has occurred.public java.util.Set<java.lang.String> getMeshes()
public PolygonMesh getMesh()
public javafx.scene.paint.Material getMaterial()
public PolygonMesh getMesh(java.lang.String key)
key - the keypublic javafx.scene.paint.Material getMaterial(java.lang.String key)
key - the keypublic PolygonMeshView buildPolygonMeshView(java.lang.String key)
key - the keypublic static void setDebug(boolean debug)
debug - the new debugpublic static void setScale(float scale)
scale - the new scalepublic static void setFlatXZ(boolean flatXZ)
flatXZ - the new flat xz