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.
new Length():
Length
Length
Computes the length of a supported object.
Object to measure.
staticcompute(edge):number
Computes the length of an edge.
A curve-less edge without triangulation evaluates to -1.
Edge to measure.
number
staticcompute(wire):number
Computes the total length of a wire as the sum of lengths of its edges.
Wire to measure.
number
staticcompute(polylineSet):number
Computes the total length of a 3D polyline set.
Polyline set to measure.
number
staticcompute(polylineSet):number
Computes the total length of a 2D polyline set.
Polyline set to measure.
number