BBoxSize class

This tool can cut the scene in any directions and reveal the internal part of the scene.

Signature:

export default class BBoxSize extends Tool 

Extends: Tool

Example

var BBoxSize = new Modelo.View.Tool.BBoxSize(viewer);
viewer.addTool(BBoxSize);

Constructors

ConstructorDescription
(constructor)(viewer)Create the tool. This tool should be created after the model is loaded or scene is constructed. Otherwise it will be mistaken about the scene size and does rendering wrong.

Methods

MethodDescription
getBBoxSizeBox()Get the current BBoxSize box;
isRotatable()If this BBoxSize tool is axis-aligned or not.
setBBoxSizeBox(bbox)Set the current BBoxSize box.
setVisible(enabled)Enable/Disable the BBoxSize tool.