Hide menu
Loading...
Searching...
No Matches
Distance

Computes distance between 2 entities:

  • Part bodies.
  • Brep shapes.
  • Polygonal shapes.

Constructors

new Distance()

new Distance(): Distance

Returns

Distance

Methods

compute()

Call Signature

static compute(firstBody, secondBody, firstBodyTransformation?, secondBodyTransformation?): ValueWithAnchorPoints

Returns distance between 2 part bodies and anchor points on them.

Parameters

firstBody

Body

First part body.

secondBody

Body

Second part body.

firstBodyTransformation?

First body transformation.

null | Transformation

secondBodyTransformation?

Second body transformation.

null | Transformation

Returns

ValueWithAnchorPoints

Call Signature

static compute(firstShape, secondShape, firstShapeTransformation?, secondShapeTransformation?): ValueWithAnchorPoints

Returns distance between 2 brep shapes and anchor points on these shapes.

Parameters

firstShape

Shape

First brep shape.

secondShape

Shape

Second brep shape.

firstShapeTransformation?

First brep shape transformation.

null | Transformation

secondShapeTransformation?

Second brep shape transformation.

null | Transformation

Returns

ValueWithAnchorPoints

Call Signature

static compute(firstPolyShape, secondPolyShape, firstPolyShapeTransformation?, secondPolyShapeTransformation?): ValueWithAnchorPoints

Returns distance between 2 poly shapes and anchor points on these shapes.

Parameters

firstPolyShape

PolyShape

First poly shape.

secondPolyShape

PolyShape

Second poly shape.

firstPolyShapeTransformation?

First poly shape transformation.

null | Transformation

secondPolyShapeTransformation?

Second poly shape transformation.

null | Transformation

Returns

ValueWithAnchorPoints