ArPrimitive

sealed class ArPrimitive(val worldPoints: FloatArray, maxScreenPointsSize: Int, color: Int)

Represents a 3D primitive composed of world coordinates.

Parameters

maxScreenPointsSize

Maximum size of the array to hold screen points.

Inheritors

Constructors

Link copied to clipboard
protected constructor(worldPoints: FloatArray, maxScreenPointsSize: Int, color: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Array containing world coordinates of the primitive.

Functions

Link copied to clipboard
open 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
fun getColor(): Int

Method to get the fill color of the triangles.

Link copied to clipboard
fun setColor(color: Int)

Method to set the fill color of the triangles.