| Modifier and Type | Interface and Description |
|---|---|
interface |
Obj
An in-memory representation of an OBJ file.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractWritableObj
Abstract base implementation of a
WritableObj. |
class |
BasicWritableObj
Basic implementation of a
WritableObj that delegates all calls
to consumer callbacks. |
| Modifier and Type | Method and Description |
|---|---|
static <T extends WritableObj> |
ObjUtils.convertToRenderable(ReadableObj input,
T output)
Convert the given
ReadableObj into an Obj that has
a structure appropriate for rendering it with OpenGL:
Triangulate it
Make the texture coordinates unique
Make the normals unique
Make the result vertex-indexed
|
static <T extends WritableObj> |
ObjUtils.groupToObj(ReadableObj input,
ObjGroup inputGroup,
List<Integer> vertexIndexMapping,
T output)
Stores the given group of the given
ReadableObj
in the given output WritableObj. |
static <T extends WritableObj> |
ObjUtils.makeNormalsUnique(ReadableObj input,
List<Integer> indexMapping,
T output)
Ensures that two vertices with different normals are
actually two different vertices with different indices.
|
static <T extends WritableObj> |
ObjUtils.makeTexCoordsUnique(ReadableObj input,
List<Integer> indexMapping,
T output)
Ensures that two vertices with different texture coordinates are
actually two different vertices with different indices.
|
static <T extends WritableObj> |
ObjUtils.makeVertexIndexed(ReadableObj input,
T output)
Converts the given
ReadableObj data into data that uses the
same indices for vertices, texture coordinates and normals, and
stores the result in the given WritableObj. |
static <T extends WritableObj> |
ObjReader.read(InputStream inputStream,
T output)
Read the OBJ data from the given stream and store the read
elements in the given
WritableObj. |
static <T extends WritableObj> |
ObjReader.read(Reader reader,
T output)
Read the OBJ data from the given reader and store the read
elements in the given
WritableObj. |
static <T extends WritableObj> |
ObjUtils.triangulate(ReadableObj input,
T output)
Triangulates the given input
ReadableObj and stores the result
in the given WritableObj. |
Copyright © 2015. All rights reserved.