Hide menu
Loading...
Searching...
No Matches
Radius

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.

Constructors

Constructor

new Radius(): Radius

Returns

Radius

Methods

compute()

static compute(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.

Parameters

shape

Shape

Shape to analyze.

curves?

Curve[]

Optional output array receiving carrier curves of the radii.

points?

Point[]

Optional output array receiving representative anchor points, preferred on the original shape region when such points can be found cheaply.

Returns

number[]