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(firstMeshShape, secondMeshShape, firstMeshShapeTransformation?, secondMeshShapeTransformation?): ValueWithAnchorPoints

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

Parameters

firstMeshShape

MeshShape

First mesh shape.

secondMeshShape

MeshShape

Second mesh shape.

firstMeshShapeTransformation?

First mesh shape transformation.

null | Transformation

secondMeshShapeTransformation?

Second mesh shape transformation.

null | Transformation

Returns

ValueWithAnchorPoints