public class ObjModel
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ObjModel.ObjFace |
Modifier and Type | Field and Description |
---|---|
java.util.List<ObjModel.ObjFace> |
faces
Faces (triangles)
|
static java.util.logging.Logger |
log |
java.util.List<javax.vecmath.Point3d> |
normals
Vertex, Normal and Texture coords
|
java.lang.String |
objName |
java.util.List<javax.vecmath.Point3d> |
texCoords
Vertex, Normal and Texture coords
|
java.util.List<javax.vecmath.Point3d> |
verts
Vertex, Normal and Texture coords
|
Constructor and Description |
---|
ObjModel() |
ObjModel(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static ObjModel |
fromStream(java.io.BufferedReader in) |
static ObjModel |
fromStream(java.io.InputStream in) |
protected static javax.vecmath.Point3d |
toPoint3d(java.lang.String[] data) |
public static java.util.logging.Logger log
public java.lang.String objName
public java.util.List<javax.vecmath.Point3d> verts
public java.util.List<javax.vecmath.Point3d> normals
public java.util.List<javax.vecmath.Point3d> texCoords
public java.util.List<ObjModel.ObjFace> faces
public static ObjModel fromStream(java.io.BufferedReader in) throws java.io.IOException
java.io.IOException
protected static javax.vecmath.Point3d toPoint3d(java.lang.String[] data)
public static ObjModel fromStream(java.io.InputStream in) throws java.io.IOException
java.io.IOException