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

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

  • entire model;
  • model element (and its subtree) - assembly, part or instance;
  • part body;
  • B-Rep shape;
  • polygonal shape;

A bounding box of a model is accumulation of bounding boxes of its roots.

A bounding box of an assembly is a cumulative bounding box of its children taking into account their transformation matrices.

A part's bounding box is accumulation of bounding boxes of available part's bodies.

Constructors

new BoundingBox()

new BoundingBox(): BoundingBox

Returns

BoundingBox

Methods

compute()

Call Signature

static compute(model, box?): Box

Returns bounding box of model.

Parameters

model

Model

Model.

box?

Box

Target box.

Returns

Box

Call Signature

static compute(modelElement, box?): Box

Returns bounding box of model element (and its subtree) - assembly, part or instance.

Parameters

modelElement

ModelElement

Model.

box?

Box

Target box.

Returns

Box

Call Signature

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

Returns bounding box of part body.

Parameters

body

Body

Part body.

transformation?

Accumulated transformation of an owning part.

null | Transformation

box?

Box

Target box.

Returns

Box

Call Signature

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

Returns bounding box of B-Rep shape.

Parameters

shape

Shape

B-Rep shape.

transformation?

Accumulated transformation of an owning part.

null | Transformation

box?

Box

Target box.

Returns

Box

Call Signature

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

Returns bounding box of polygonal shape.

Parameters

shape

PolyShape

Polygonal shape.

transformation?

Accumulated transformation of an owning part.

null | Transformation

box?

Box

Target box.

Returns

Box