|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Geometry
com.jme.scene.TriMesh
com.jme.scene.BezierMesh
BezierMesh is defined by a collection of
BezierPatch objects that define a 4x4 patch of control
anchors. These anchors define the curve the surface of the mesh will take.
The patch also contains information about it's detail level, which defines
how smooth the mesh will be.
| Field Summary |
| Fields inherited from class com.jme.scene.TriMesh |
indices, triangleQuantity |
| Fields inherited from class com.jme.scene.Geometry |
bound, color, colorBuf, normal, normBuf, texBuf, texture, vertBuf, vertex, vertQuantity |
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
BezierMesh(java.lang.String name)
Constructor creates a default BezierMesh object. |
|
BezierMesh(java.lang.String name,
BezierPatch patch)
Constructor creates a new BezierMesh object with the given
BezierPatch. |
|
| Method Summary | |
void |
setPatch(BezierPatch patch)
setPatch sets the BezierPatch of the mesh. |
void |
tessellate()
tessellate generates the BezierMesh
vertices from the supplied patch and detail level. |
| Methods inherited from class com.jme.scene.TriMesh |
clearBuffers, draw, drawBounds, findCollisions, findTriangleCollision, findTrianglePick, findWorldRotMat, getIndexAsBuffer, getIndices, getMeshAsTriangles, getTriangle, getTriangle, getTriangleQuantity, hasCollision, hasTriangleCollision, putClone, reconstruct, setIndexBuffer, setIndices, updateCollisionTree, updateIndexBuffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BezierMesh(java.lang.String name)
BezierMesh object.
name - the name of the scene element. This is required for
identification and comparision purposes.
public BezierMesh(java.lang.String name,
BezierPatch patch)
BezierMesh object with the given
BezierPatch. The mesh is then automatically tessellated.
name - the name of the scene element. This is required for
identification and comparision purposes.patch - the BezierPatch used to define this mesh.| Method Detail |
public void setPatch(BezierPatch patch)
setPatch sets the BezierPatch of the mesh.
It is then tessellated.
patch - the patch to use for this mesh.public void tessellate()
tessellate generates the BezierMesh
vertices from the supplied patch and detail level. This method is called
when patch is set, and therefore, should normally have to be called.
However, if patch is changed externally, and you wish to update the mesh,
a call to tessellate is appropriate.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||