Package jme3utilities.lbj
Interface Mesh
public interface Mesh
A generic mesh for visualizing a soft body.
-
Method Summary
Modifier and TypeMethodDescriptionAccess the index buffer.Access the normals data buffer.Access the positions data buffer.boolean
Test whether the mesh consists of lines in list mode.boolean
Test whether the mesh consists of triangles in list mode.void
Indicate that the normals data buffer is dirty.void
Indicate that the positions data buffer is dirty.
-
Method Details
-
getIndexBuffer
IndexBuffer getIndexBuffer()Access the index buffer.- Returns:
- the pre-existing instance (not null)
-
getNormalsData
FloatBuffer getNormalsData()Access the normals data buffer.- Returns:
- the pre-existing direct buffer (not null)
-
getPositionsData
FloatBuffer getPositionsData()Access the positions data buffer.- Returns:
- the pre-existing direct buffer (not null)
-
isPureLines
boolean isPureLines()Test whether the mesh consists of lines in list mode. In the context of OpenGL, this means the draw mode is GL_LINES. Indexing is ignored.- Returns:
- true if lines in list mode, otherwise false
-
isPureTriangles
boolean isPureTriangles()Test whether the mesh consists of triangles in list mode. In the context of OpenGL, this means the draw mode is GL_TRIANGLES. Indexing is ignored.- Returns:
- true if triangles in list mode, otherwise false
-
setNormalsModified
void setNormalsModified()Indicate that the normals data buffer is dirty. -
setPositionsModified
void setPositionsModified()Indicate that the positions data buffer is dirty.
-