Computes representative radii of supported analytic edges and faces.
Supported inputs include circular, elliptical, and hyperbolic edges, as well as cylindrical, conical, spherical, and toroidal faces. Depending on the shape type, one or more radii can be returned.
When curves and points are requested, they receive carrier curves and representative anchor points corresponding to the returned radii in the same order.
Unsupported shapes produce an empty array.
new Radius():
Radius
Radius
staticcompute(shape,curves?,points?):number[]
Computes representative radii of a shape.
Returned carrier curves and anchor points, when requested, are aligned by index with the values in the returned radius array.
Shape to analyze.
Curve[]
Optional output array receiving carrier curves of the radii.
Point[]
Optional output array receiving representative anchor points, preferred on the original shape region when such points can be found cheaply.
number[]