public class
Mesh
Represents a polygon mesh describing geometry.
Obtained by StreetscapeGeometry.getMesh()
.
Public Methods
IntBuffer
|
getIndexList()
Retrieves the triangle data for this mesh in a buffer of length
getIndexListSize() . |
int
|
getIndexListSize()
Retrieves the number of triangle indices (represented by
getIndexList() ) in this mesh. |
FloatBuffer
|
getVertexList()
Retrieves the vertex coordinate data for this mesh.
|
int
|
getVertexListSize()
Retrieves the number of vertices in this mesh.
|
Inherited Methods
Public Methods
public IntBuffer getIndexList ()
getIndexList
public IntBuffer getIndexList()
Retrieves the triangle data for this mesh in a buffer of length getIndexListSize()
.
Each face is a triplet of indices into the vertices array (getVertexList()
). The
indices should always be used as a triangle list, with three indices per triangle. The result
can be passed as the indices
parameter to GLES20.glDrawElements(int, int, int, java.nio.Buffer)
.
The content of this buffer should not be modified by the caller.
public int getIndexListSize ()
getIndexListSize
public int getIndexListSize()
Retrieves the number of triangle indices (represented by getIndexList()
) in this mesh.
The indices should always be used as a triangle list, with three indices per triangle. The
result can be passed as the count
parameter to GLES20.glDrawElements(int, int, int, java.nio.Buffer)
.
public FloatBuffer getVertexList ()
getVertexList
public FloatBuffer getVertexList()
Retrieves the vertex coordinate data for this mesh. Each vertex is three float values, stored
in XYZ order. The total number of float values in the resulting FloatBuffer
is 3 *
getVertexListSize()
.
The content of this buffer should not be modified by the caller.
public int getVertexListSize ()
getVertexListSize
public int getVertexListSize()
Retrieves the number of vertices in this mesh.