ArTriangles

class ArTriangles(worldPointsReference: FloatArray, worldPointsIndices: IntArray, fillColor: Int = EvsColor.White.rgba, lineWidth: Float = 0.0f) : ArPrimitive

Class representing a set of triangles in 3D space.

See Also: ENU coordinates system.

Constructors

Link copied to clipboard
constructor(worldPoints: FloatArray, fillColor: Int = EvsColor.White.rgba, lineWidth: Float = 0.0f)

Constructor for creating ArTriangles without indices.

constructor(worldPointsReference: FloatArray, worldPointsIndices: IntArray, fillColor: Int = EvsColor.White.rgba, lineWidth: Float = 0.0f)

Functions

Link copied to clipboard
open override fun forEachWorldPointIndex(execute: (i: Int) -> Unit): Int

Iterates over the indices of the world coordinate points array, executing the provided action for each index.

Link copied to clipboard

Method to get the outline width of the triangles, if greater than 0, only the outline is drawn.

Link copied to clipboard
fun setLineWidth(lineWidth: Float)

Method to set the outline width of the triangles, if greater than 0, only the outline is drawn.