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
createCreates an arrow between the two points.
Static
createCreate an axis helper.
The size of the helper.
Static
createStatic
createCreate a grid on the XZ plane.
The grid origin.
The size of the grid.
The number of grid subdivisions.
Static
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
removeRemoves an existing bounding box from the object, if any.
The object to update.
Helpers.removeBoundingBox(obj);
Static
removeOBBStatic
update3DTile
Provides utility functions to create scene helpers, such as bounding boxes, grids, axes...