|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.javagl.simplemesh.utils.ObjLoader
public class ObjLoader
Utility methods for reading MeshPrimitives
from OBJ files.
Method Summary | |
---|---|
static MeshPrimitives |
load(java.io.InputStream objInputStream)
Reads mesh primitives from the given OBJ input stream. |
static MeshPrimitives |
load(java.lang.String fileName)
Reads the mesh primitives from the OBJ with the given name |
static void |
save(MeshPrimitives meshPrimitives,
java.io.OutputStream objOutputStream)
Write the given mesh primitives as OBJ data into the given stream |
static void |
save(MeshPrimitives meshPrimitives,
java.lang.String fileName)
Save the given mesh primitives into an OBJ file with the given name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static MeshPrimitives load(java.lang.String fileName)
fileName
- The OBJ file name
null
if the
data could not be read.public static MeshPrimitives load(java.io.InputStream objInputStream) throws java.io.IOException
objInputStream
- The input stream
java.io.IOException
- If something goes wrong...public static void save(MeshPrimitives meshPrimitives, java.lang.String fileName)
meshPrimitives
- The mesh primitivesfileName
- The file namepublic static void save(MeshPrimitives meshPrimitives, java.io.OutputStream objOutputStream) throws java.io.IOException
meshPrimitives
- The mesh primitivesobjOutputStream
- The stream
java.io.IOException
- If an IO error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |