Constructors
constructor
- renderView: NodeRenderView
- batchIndex: The object’s index within its batch. Objects are placed in order inside the batch as they get processed
Properties
transform
transformInv
Accessors
aabb
If you want to work with object dimensions and positioning, this is the bounds to use. This is the transformed aabb, unlike NodeRenderView’s aabb which does not take any transformation into account.
accelerationStructure
batchIndex
localOrigin
renderView
Methods
buildAccelerationStructure
The speckle viewer uses the three-mesh-bvh library as the backbone for any BVH related operations.
- optional bvh: MeshBVH
transformTRS
- translation: The translation component of the transformation
- optional euler: Rotation component as euler angles in XYZ order
- optional scale: Scale component of the transformation
- optional pivot: The rotation pivot