![]() |
KudanAR - Android
1.6.0
|
Public Member Functions | |
| ARMesh () | |
| void | setVertextBuffer (ARVertexBuffer vertexBuffer) |
| int | getNumbumberOfVertices () |
| int | getVertexDataStride () |
| void | setBones (List< ARBoneNode > bones) |
| void | addBone (ARBoneNode bone) |
| List< ARBoneNode > | getBones () |
| ARMesh (NativeMesh nativeMesh) | |
| ARMesh (long nativeVertexBuffer, long nativeIndexBuffer, boolean hasNormals, boolean hasUVs, boolean hasTangents, int maxBonesPerVertex) | |
| void | createTestMeshNoUV (float width, float height) |
| void | createTestMesh (float width, float height) |
| ARVertexBuffer | getVertexBuffer () |
| void | createTestMesh2 (float width, float height) |
| void | createTestMeshWithUvs (float width, float height, float u, float u2, float v, float v2, boolean rotate, boolean update) |
| void | createTestMeshWithUvs (float width, float height, float u, float u2, float v, float v2) |
| boolean | prepareRenderer (ARMeshNode meshNode) |
| int | getNumberOfIndices () |
| void | addBlendShapeChannel (ARBlendShapeChannel channel) |
A class that represents a mesh on a model
| ARMesh.ARMesh | ( | ) |
Initialises ARMesh with values to be set later.
| ARMesh.ARMesh | ( | NativeMesh | nativeMesh | ) |
Initialises an ARMesh with a NativeMesh.
| nativeMesh |
| ARMesh.ARMesh | ( | long | nativeVertexBuffer, |
| long | nativeIndexBuffer, | ||
| boolean | hasNormals, | ||
| boolean | hasUVs, | ||
| boolean | hasTangents, | ||
| int | maxBonesPerVertex | ||
| ) |
Create a mesh with natively allocated vertex and index buffers
| nativeVertexBuffer | |
| nativeIndexBuffer | |
| hasNormals | |
| hasUVs | |
| hasTangents | |
| maxBonesPerVertex |
| void ARMesh.addBlendShapeChannel | ( | ARBlendShapeChannel | channel | ) |
Adds a ARBlendShapeChannel to the ARMesh's ARBlendShapeChannel. Used for adding blend shape deformations.
| channel | The blend shape channel added. |
| void ARMesh.addBone | ( | ARBoneNode | bone | ) |
Adds ARBoneNode to the list of ARBoneNodes in the ARMesh.
| bone | a single ARBoneNode |
| void ARMesh.createTestMesh | ( | float | width, |
| float | height | ||
| ) |
Creates a flat mesh with UV map with coordinates in range(0..1,0..1).
| width | Mesh width. |
| height | Mesh height. |
| void ARMesh.createTestMesh2 | ( | float | width, |
| float | height | ||
| ) |
Initialises flat mesh with UV map with coordinates in range(0..1,0..1).
| width | Mesh width. |
| height | Mesh height. |
| void ARMesh.createTestMeshNoUV | ( | float | width, |
| float | height | ||
| ) |
Creates a flat mesh with no UV map.
| width | Mesh width. |
| height | Mesh height. |
| void ARMesh.createTestMeshWithUvs | ( | float | width, |
| float | height, | ||
| float | u, | ||
| float | u2, | ||
| float | v, | ||
| float | v2 | ||
| ) |
Initialises flat mesh with two UV map with coordinates in range(0..u,0...v) and (0..u2,0...v2)..
| width | Mesh width. |
| height | Mesh height. |
| u | UV map width. |
| v | UV map height. |
| void ARMesh.createTestMeshWithUvs | ( | float | width, |
| float | height, | ||
| float | u, | ||
| float | u2, | ||
| float | v, | ||
| float | v2, | ||
| boolean | rotate, | ||
| boolean | update | ||
| ) |
Initialises flat mesh with two UV maps with coordinates in range(0..u,0...v) and (0..u2,0...v2)..
| width | Mesh width. |
| height | Mesh height. |
| u | UV map width. |
| v | UV map height. |
| u2 | UV2 map width. |
| v2 | UV2 map height. |
| rotate | |
| update | Whetehr the mesh should update the vertex buffer. |
| List<ARBoneNode> ARMesh.getBones | ( | ) |
Returns a list of the ARBoneNodes
| int ARMesh.getNumberOfIndices | ( | ) |
Return the number of indices that are in the mesh.
| int ARMesh.getNumbumberOfVertices | ( | ) |
Return the number of vertices in the mesh.
| ARVertexBuffer ARMesh.getVertexBuffer | ( | ) |
Returns the ARMesh's vertex buffer
| int ARMesh.getVertexDataStride | ( | ) |
Return the vertex data stride for the mesh.
| boolean ARMesh.prepareRenderer | ( | ARMeshNode | meshNode | ) |
| void ARMesh.setBones | ( | List< ARBoneNode > | bones | ) |
Sets list of ARBoneNodes in an ARMesh.
| bones | a List of ARBoneNones |
| void ARMesh.setVertextBuffer | ( | ARVertexBuffer | vertexBuffer | ) |
Set vertex buffer for the mesh.
| vertexBuffer |