MeshData
Declaration
data class MeshDataSummary
Triangle mesh geometry.
For downloaded mesh chunks, [vertices] are packed x, y, z positions in meters in the chunk's
local space, and carry no geographic data. They are in NSDK's native OpenCV convention (x right,
y down, z forward), not ARCore's: negate y and z to convert them before applying
[MeshDownloaderData.transform].
Constructors
constructor(vertices: FloatArray, uvs: FloatArray?, indices: IntArray, normals: FloatArray?)
Parameters
| Name | Type | Summary |
|---|---|---|
| vertices | FloatArray | - |
| uvs | FloatArray? | - |
| indices | IntArray | - |
| normals | FloatArray? | - |
Properties
| Name | Type | Summary |
|---|---|---|
| indices | IntArray | Triangle vertex indices, three per triangle. |
| normals | FloatArray? | Packed x, y, z vertex normals, or null when absent. |
| uvs | FloatArray? | Packed u, v texture coordinates, or null when absent. |
| vertices | FloatArray | Packed x, y, z vertex positions, in meters. |