Skip to content

editor / filletArc

Function: filletArc() ​

filletArc(corner, radius): Arc

Defined in: geometry/fillet-arc.ts:23

Fillet arc of a corner: tangent points, center and direction.

Formulas: T_in = V − s · u_in, T_out = V + s · u_out, C = T_in + sign(τ) · r · u_in⊥, positive when τ > 0, with s = r · tan(|τ| / 2). Degenerates to the vertex (start = end = V) when no arc exists: aligned vertex, zero-length edge or radius 0. The turning angle must be in ]−π, π[: a spike (τ = ±π) is outside the derivation; it is consumed by the clamp (Q16).

Parameters ​

corner ​

CornerPoints

vertex V with its previous and next vertices

radius ​

number

effective radius r, >= 0

Returns ​

Arc

the arc from the incoming to the outgoing tangent point

Kind ​

geometry

See ​

DERIV-fillet-arc