Hide menu
Loading...
Searching...
No Matches
BoundingBox

Computes bounding boxes of objects. Bounding boxes can be computed for the following types of objects:

  • an entire model;
  • a model element and its subtree, such as an assembly, part, or instance;
  • a part body;
  • a B-Rep shape;
  • a mesh shape;

A model bounding box accumulates the bounding boxes of its roots.

An assembly bounding box accumulates the bounding boxes of its children after applying their transformations.

A part bounding box accumulates the bounding boxes of the part's available bodies.

Constructors

Constructor

new BoundingBox(): BoundingBox

Returns

BoundingBox

Methods

compute()

Call Signature

static compute(model, box?): Box

Computes and returns the bounding box of a model.

Parameters

model

Model

Model.

box?

Box

Optional box to clear and populate with the result.

Returns

Box

Call Signature

static compute(modelElement, transformation?, box?): Box

Computes and returns the bounding box of a transformed model element and its subtree.

Parameters

modelElement

ModelElement

Model element.

transformation?

Transformation | null

Optional transformation applied before the model element is measured.

box?

Box

Optional box to clear and populate with the result.

Returns

Box

Call Signature

static compute(body, transformation?, box?): Box

Computes and returns the bounding box of a part body.

Parameters

body

Body

Part body.

transformation?

Transformation | null

Optional transformation applied before the body is measured.

box?

Box

Optional box to clear and populate with the result.

Returns

Box

Call Signature

static compute(shape, transformation?, box?): Box

Computes and returns the bounding box of a B-Rep shape.

Parameters

shape

Shape

B-Rep shape.

transformation?

Transformation | null

Optional transformation applied before the shape is measured.

box?

Box

Optional box to clear and populate with the result.

Returns

Box

Call Signature

static compute(shape, transformation?, box?): Box

Computes and returns the bounding box of a mesh shape.

Parameters

shape

MeshShape

Mesh shape.

transformation?

Transformation | null

Optional transformation applied before the shape is measured.

box?

Box

Optional box to clear and populate with the result.

Returns

Box