Interface Mesh


public interface Mesh
A generic mesh for visualizing a soft body.
  • 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.