A MeshUrbject is an Urbject that has a physical appearance by adapting a Mesh to its local transform and providing a Material to be used to render the Mesh.
A MeshUrbject is the only type of Urbject that has a physical appearance in the Scene.
| MeshUrbject( ): MeshUrbject | Initializes with default attribute values. | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MeshUrbject( { mesh?: Mesh, material?: Material, position?: Vector, orientation?: Quaternion, scale?: number | Vector, state?: number, group?: number, superCopy?: Urbject } ): MeshUrbject | Initializes with the given values or default values if not provided. The default values are:
|
| copy(options?: { shallow: boolean } ): MeshUrbject | Returns a copy of the MeshUrbject. If shallow is true, the children of this Urbject will not be included in the copy. |
|---|---|
| getInstance(camera: Camera): FrameInstance | Returns the FrameInstance of this Urbject with all of its Trigon Fragments added. |
| MeshUrbject.copy(u: MeshUrbject, options?: { shallow: boolean } ): MeshUrbject | Returns a copy of the MeshUrbject or a new MeshUrbject from an Object with all of the necessary MeshUrbject and Urbject public attributes. If shallow is true, the children of the Urbject will not be included in the copy. |
|---|---|
| MeshUrbject.getInstance(u: MeshUrbject, camera: Camera): FrameInstance | Returns the FrameInstance of the Urbject with all of its Trigon Fragments added. |
Copyright © 2020 Trevor Richard