Static
axisStatic
addAdds a bounding box helper to the object. If a bounding box is already present, it is updated instead.
The object to decorate.
The color.
// add a bounding box to 'obj'
Helpers.addBoundingBox(obj, 'green');
Static
addOBBAdds an oriented bounding box (OBB) helper to the object. If a bounding box is already present, it is updated instead.
The object to decorate.
The OBB.
The color.
// add an OBB to 'obj'
Helpers.addOBB(obj, obj.OBB, 'green');
Static
create3DTileCreates a bounding volume helper to the 3D Tile object and returns it. The bounding volume can contain a sphere, a region, or a box.
The entity.
The object to decorate.
The tile metadata
The color.
The helper object, or null if it could not be created.
// add a bounding box to 'obj'
Helpers.create3DTileBoundingVolume(entity, obj, volume, 'green');
Static
createStatic
createStatic
createStatic
createStatic
createCreates a selection bounding box helper around the specified object.
The object to decorate.
The color.
the created box helper.
// add a bounding box to 'obj'
Helpers.createSelectionBox(obj, 'green');
Static
remove3DTileStatic
removeStatic
removeOBBStatic
update3DTile
Provides utility functions to create scene helpers, such as bounding boxes, grids, axes...