Class ObjReader
- java.lang.Object
-
- science.aist.imaging.mesh.storage.obj.ObjReader
-
- All Implemented Interfaces:
MeshReader
public class ObjReader extends Object implements MeshReader
MeshReader implementation for OBJ files
Based on OBJ definition by Paul Bourke
Note: The reader currently only supports text based OBJ mesh files, not binaries!
- Since:
- 1.2
- Author:
- Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description ObjReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<JavaModel3D>
read(BufferedReader reader)
Reads a given mesh from a given reader-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.mesh.storage.MeshReader
read, read, read
-
-
-
-
Method Detail
-
read
public Optional<JavaModel3D> read(BufferedReader reader)
Description copied from interface:MeshReader
Reads a given mesh from a given reader- Specified by:
read
in interfaceMeshReader
- Parameters:
reader
- accesing the mesh data- Returns:
- the read mesh or empty if read operation was not successful
-
-