gestalt.candidates
Class JoglIndexedTriangleMesh
java.lang.Object
gestalt.shape.AbstractShape
gestalt.candidates.JoglIndexedTriangleMesh
- All Implemented Interfaces:
- Drawable, java.io.Serializable
public class JoglIndexedTriangleMesh
- extends AbstractShape
- See Also:
- Serialized Form
|
Method Summary |
void |
addTriangle(int a,
int b,
int c)
|
void |
addTriangle(JoglIndexedTriangleMesh.IndexedTriangle theTriangle)
|
void |
addTriangle(Vector3f a,
Vector3f b,
Vector3f c)
|
void |
addTriangles(float[] theVertices)
|
void |
addTriangles(float[] theVertices,
float[] theColors,
float[] theTexCoords)
|
void |
addTriangles(java.util.Vector<Vector3f> theVertices)
|
int |
addVertex(Vector3f theVertex,
Vector3f theNormal)
|
int |
addVertex(Vector3f theVertex,
Vector3f theNormal,
Color theColor)
|
void |
addVertices(float[] theVertices)
|
void |
dispose(GLContext theRenderContext)
|
void |
draw(GLContext theRenderContext)
this method is used to draw the drawable, when the context is ready. |
int |
findVertex(Vector3f theVector)
|
java.util.Vector<JoglIndexedTriangleMesh.IndexedTriangle> |
indexlist()
|
void |
minimumdistance(float theMinimumDistance)
|
java.util.Vector<Vector3f> |
normals()
|
void |
removeTriangle(JoglIndexedTriangleMesh.IndexedTriangle theIndexedTriangle)
|
void |
split(float theMinArea)
|
boolean |
splitCentroid(JoglIndexedTriangleMesh.IndexedTriangle theTriangle,
float theMinArea)
|
java.util.Vector<Vector3f> |
vertices()
|
| Methods inherited from class gestalt.shape.AbstractShape |
add, getSortData, getSortValue, getTransformMode, isActive, isSortable, material, position, position, position, position, rotation, rotation, scale, scale, scale, setActive, setChildContainer, setMaterialRef, setPositionRef, setRotationRef, setScaleRef, setSortValue, setTransformMode, setTransformRef, transform |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JoglIndexedTriangleMesh
public JoglIndexedTriangleMesh()
minimumdistance
public void minimumdistance(float theMinimumDistance)
split
public void split(float theMinArea)
splitCentroid
public boolean splitCentroid(JoglIndexedTriangleMesh.IndexedTriangle theTriangle,
float theMinArea)
vertices
public java.util.Vector<Vector3f> vertices()
normals
public java.util.Vector<Vector3f> normals()
indexlist
public java.util.Vector<JoglIndexedTriangleMesh.IndexedTriangle> indexlist()
removeTriangle
public void removeTriangle(JoglIndexedTriangleMesh.IndexedTriangle theIndexedTriangle)
addTriangle
public void addTriangle(JoglIndexedTriangleMesh.IndexedTriangle theTriangle)
addTriangle
public void addTriangle(int a,
int b,
int c)
addTriangle
public void addTriangle(Vector3f a,
Vector3f b,
Vector3f c)
addTriangles
public void addTriangles(java.util.Vector<Vector3f> theVertices)
addTriangles
public void addTriangles(float[] theVertices)
addTriangles
public void addTriangles(float[] theVertices,
float[] theColors,
float[] theTexCoords)
addVertices
public void addVertices(float[] theVertices)
addVertex
public int addVertex(Vector3f theVertex,
Vector3f theNormal)
addVertex
public int addVertex(Vector3f theVertex,
Vector3f theNormal,
Color theColor)
findVertex
public int findVertex(Vector3f theVector)
draw
public void draw(GLContext theRenderContext)
- Description copied from interface:
Drawable
- this method is used to draw the drawable, when the context is ready.
although the behavior sometimes varies and doesn t always need to
have a visual representation depending on the implementation.
- Parameters:
theRenderContext - GLContext
dispose
public void dispose(GLContext theRenderContext)
processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009