Ar Model
Represents a collection of 3D primitives to be rendered in an augmented reality (AR) environment.
Parameters
List of 3D primitives to be rendered.
Functions
Returns the bounding sphere of the transformed object.
Gets the world position (centroid) of the AR element as a float array.
Checks if an element is in screen bounds.
Override this function to be notified when the ui element is attached to a screen
The draw method is called to actually draw the ui element visual representation to the CanvasBuffer
Sets custom primitive indices to be used for calculating the bounding sphere of the ArModel. By default, the bounding sphere is calculated based on all primitives in the model. This function allows specifying a subset of primitives to be used for bounding sphere calculation.
Sets the model matrix for the ArModel.