|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.javagl.simplemesh.impl.DefaultMeshPrimitives
public class DefaultMeshPrimitives
Default implementation of MeshPrimitives.
| Constructor Summary | |
|---|---|
DefaultMeshPrimitives(java.util.Collection<? extends Vertex> vertices,
java.util.Collection<? extends Edge> edges,
java.util.Collection<? extends Face> faces)
Creates new mesh primtives that contain copies of the given collections. |
|
DefaultMeshPrimitives(float[] vertices,
int stride,
int[] faceVertexIndices)
Creates new mesh primitives from the given information. |
|
| Method Summary | |
|---|---|
java.util.List<Edge> |
getEdges()
Returns an unmodifiable list of edges. |
java.util.List<Face> |
getFaces()
Returns an unmodifiable list of faces. |
java.util.List<Vertex> |
getVertices()
Returns an unmodifiable list of vertices. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultMeshPrimitives(java.util.Collection<? extends Vertex> vertices,
java.util.Collection<? extends Edge> edges,
java.util.Collection<? extends Face> faces)
vertices - The verticesedges - The edgesfaces - The faces
public DefaultMeshPrimitives(float[] vertices,
int stride,
int[] faceVertexIndices)
vertices - The vertex coordinatesstride - The stride for the vertex arrayfaceVertexIndices - The indices of the vertices that
the faces consist of. Each three consecutive indices of
this array will be the indices of one triangle.| Method Detail |
|---|
public java.util.List<Vertex> getVertices()
MeshPrimitives
getVertices in interface MeshPrimitivespublic java.util.List<Edge> getEdges()
MeshPrimitives
getEdges in interface MeshPrimitivespublic java.util.List<Face> getFaces()
MeshPrimitives
getFaces in interface MeshPrimitivespublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||