Hide menu
Loading...
Searching...
No Matches
Length

Computes lengths of supported topological shapes.

Lengths can be computed for B-Rep edges, B-Rep wires, and polyline sets. Curve-based evaluation is used internally for linear and selected analytic curves. When curve-based evaluation is unavailable, the polygonal triangulation is used if present.

Returns -1 if no measurable length is found for the provided input.

Constructors

Constructor

new Length(): Length

Returns

Length

Methods

compute()

Computes the length of a supported object.

Param

Object to measure.

Call Signature

static compute(edge): number

Computes the length of an edge.

A curve-less edge without triangulation evaluates to -1.

Parameters

edge

Edge

Edge to measure.

Returns

number

Call Signature

static compute(wire): number

Computes the total length of a wire as the sum of lengths of its edges.

Parameters

wire

Wire

Wire to measure.

Returns

number

Call Signature

static compute(polylineSet): number

Computes the total length of a 3D polyline set.

Parameters

polylineSet

PolylineSet

Polyline set to measure.

Returns

number

Call Signature

static compute(polylineSet): number

Computes the total length of a 2D polyline set.

Parameters

polylineSet

Polyline2dSet

Polyline set to measure.

Returns

number