Skip to main content
←API Reference ←com.nianticspatial.nsdk

MeshData


Declaration​

data class MeshData

Summary​

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​

NameTypeSummary
verticesFloatArray
-
uvsFloatArray?
-
indicesIntArray
-
normalsFloatArray?
-

Properties​

NameTypeSummary
indicesIntArray
Triangle vertex indices, three per triangle.
normalsFloatArray?
Packed x, y, z vertex normals, or null when absent.
uvsFloatArray?
Packed u, v texture coordinates, or null when absent.
verticesFloatArray
Packed x, y, z vertex positions, in meters.