Package com.jme3.scene.mesh
Class WrappedIndexBuffer
java.lang.Object
com.jme3.scene.mesh.IndexBuffer
com.jme3.scene.mesh.VirtualIndexBuffer
com.jme3.scene.mesh.WrappedIndexBuffer
WrappedIndexBuffer converts vertex indices from a non list based
 mesh mode such as Mesh.Mode.TriangleStrip or Mesh.Mode.LineLoop
 into a list based mode such as Mesh.Mode.Triangles or Mesh.Mode.Lines.
 As it is often more convenient to read vertex data in list format
 than in a non-list format, using this class is recommended to avoid
 complicating classes used to process mesh data from an external source.- 
Field SummaryFields inherited from class com.jme3.scene.mesh.VirtualIndexBuffermeshMode, numIndices, numVerts, position
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class com.jme3.scene.mesh.VirtualIndexBufferget, getFormat, put, put, remaining, rewind, sizeMethods inherited from class com.jme3.scene.mesh.IndexBuffercreateIndexBuffer, wrapIndexBuffer
- 
Constructor Details- 
WrappedIndexBuffer
 
- 
- 
Method Details- 
getpublic int get(int i) Description copied from class:IndexBufferReturns the vertex index for the given index in the index buffer.- Overrides:
- getin class- VirtualIndexBuffer
- Parameters:
- i- The index inside the index buffer
- Returns:
- the index
 
- 
getBufferDescription copied from class:IndexBufferReturns the underlying data-type specificBuffer. Implementations may return null if there's no underlying buffer.- Overrides:
- getBufferin class- VirtualIndexBuffer
- Returns:
- the underlying Buffer.
 
- 
convertToList
 
-