API reference
API reference
Select your platform
No SDKs available
No versions available

MRUKMesh Class

Modifiers: final
Represents a 3D mesh data structure containing vertex positions, normals, and triangle indices.

Signature

data class MRUKMesh(val positions: FloatArray, val normals: FloatArray, val indices: IntArray)

Constructors

MRUKMesh ( positions , normals , indices )
Signature
constructor(positions: FloatArray, normals: FloatArray, indices: IntArray)
Parameters
positions: FloatArray
  Array of vertex positions in 3D space, stored as x1, y1, z1, x2, y2, z2, ...
normals: FloatArray
  Array of vertex normal vectors, stored as nx1, ny1, nz1, nx2, ny2, nz2, ...
indices: IntArray
  Array of triangle indices that define the mesh faces, where each index references a vertex (every 3 consecutive floats in positions/normals)
Returns

Properties

indices : IntArray
[Get]
Signature
val indices: IntArray
normals : FloatArray
[Get]
Signature
val normals: FloatArray
positions : FloatArray
[Get]
Signature
val positions: FloatArray
Did you find this page helpful?