MeshModel

class MeshModel @JvmOverloads constructor(val positions: List<Vector3>, val triangleIndices: List<Int>, val normals: List<Vector3>? = null, val tangents: List<Vector4>? = null, val uv0: List<Vector2>? = null, val uv1: List<Vector2>? = null, val colors: List<Color4>? = null)

A container for mesh geometry data.

The fields describe the vertex attributes and triangle indices used to build a mesh.

Constructors

Link copied to clipboard
@JvmOverloads
constructor(positions: List<Vector3>, triangleIndices: List<Int>, normals: List<Vector3>? = null, tangents: List<Vector4>? = null, uv0: List<Vector2>? = null, uv1: List<Vector2>? = null, colors: List<Color4>? = null)

Types

Link copied to clipboard
object Companion

The companion object of MeshModel.

Properties

Link copied to clipboard
val colors: List<Color4>?

Per-vertex colors in linear space. Optional.

Link copied to clipboard
val normals: List<Vector3>?

Per-vertex normals. Optional.

Link copied to clipboard
val positions: List<Vector3>

The vertex positions of the mesh.

Link copied to clipboard
val tangents: List<Vector4>?

Per-vertex tangents. Optional.

Link copied to clipboard
val triangleIndices: List<Int>

The triangle indices that define the mesh faces.

Link copied to clipboard
val uv0: List<Vector2>?

Primary UV set. Optional.

Link copied to clipboard
val uv1: List<Vector2>?

Secondary UV set. Optional.