Shapes & spaces

Planar parallel curve offset and cusp calculator from parametric equations

Construct a signed normal offset of a parametric planar curve and inspect where its speed factor may vanish.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Construct a signed normal offset of a parametric planar curve and inspect where its speed factor may vanish. The table retains curvature and offset coordinates so orientation mistakes are visible.

THE FORMULAr_d(t)=r(t)+d(−y′,x′)/||r′||; r_d′=(1−dκ)r′; κ=(x′y″−y′x″)/||r′||³.

A worked example

For the counterclockwise unit circle, curvature is1 and the left normal points inward. Offset d=0.5 therefore gives radius0.5 and factor1−dκ=0.5 everywhere. At d=1 the entire offset collapses, which is different from one isolated cusp.

Good to know

Supported smooth planar expressions in t; increasing interval span≤100,20–400 sample intervals. Zero-speed evaluations rejected. Cusp candidates come from sampled near-zeros and sign-change bisection; tangent roots between samples can be missed. Uniform collapse reported separately. No complete root isolation, self-intersection cleanup or CAD trimming.

Choose a signed side before computing an offset

For a curve traversed in increasing t, the left unit normal is(−y′,x′) divided by speed. Positive distance moves toward that left side; negative distance moves to the right.

The meaning changes when you reverse traversal. A counterclockwise circle has an inward left normal, so a positive offset shrinks it. Treating positive distance as always outward gives the wrong geometry even when the radius arithmetic is correct.

The left offset shrinks a counterclockwise circleBase radius: 1Positive d = 0.5Offset radius: 0.5
For the counterclockwise unit circle, curvature is1 and the left normal points inward. Offset d=0.5 therefore gives radius0.5 and factor1−dκ=0.5 everywhere. At d=1 the entire offset collapses, which is different from one isolated cusp.

Compare this with the Frenet frame curvature and torsion calculator for a space curve. A local moving frame does not construct a full offset curve or locate its cusp parameters.

Expressions must describe a regular base curve

The page differentiates supported expressions symbolically and evaluates first and second derivatives at sample parameters. A base speed near zero prevents a unique unit normal and is rejected.

Use a parameter interval that avoids poles and unsupported branches. The same geometric curve can have a poor parameterization; regularity concerns the submitted functions rather than an imagined alternative parameterization.

The speed factor explains candidate singularities

With signed curvatureκ, differentiating the left normal along arc length gives−κT. Consequently the offset derivative is the original derivative multiplied by1−dκ.

A zero factor makes offset speed vanish even when base speed is nonzero. It supplies a necessary local singularity condition, but does not by itself classify every degeneracy as an ordinary cusp or detect all global intersections.

Follow the unit-circle orientation check

At t=0 the base point is(1,0), velocity is(0,1), and left normal is(−1,0). Adding distance0.5 produces(0.5,0), confirming the inward convention without relying on a plotted arrow.

Curvature stays1 across the circle, so the factor is0.5 at every parameter. Distance1 makes every sampled factor zero and the curve collapse to its center; this is reported as a separate degeneration rather than dozens of isolated cusp roots.

Understand what the candidate search can establish

Adjacent sampled factors with opposite signs bracket a root and are refined by bisection. Sample points already close to zero are also retained, then nearby candidate parameters are deduplicated.

A tangential zero can occur between samples without a sign change. Increasing the sample count can help reveal it, but does not prove that all roots were found. The page states this limitation rather than presenting a finite scan as complete root isolation.

Local regularity does not prevent global crossings

An offset can cross itself while its local speed stays nonzero. Conversely a zero-speed point can require higher derivatives to determine whether it is a cusp, a stationary regular trace or a larger collapse.

The returned samples are an untrimmed mathematical offset. They do not remove loops, choose a machining boundary, join discontinuous curve pieces or resolve intersections into a CAD-ready contour.

Use samples to choose the next analytic check

Inspect factor and curvature near each candidate, then evaluate a smaller surrounding interval to study its local behavior. Compare both sides of a sign change before assigning a geometric interpretation.

For an exact engineering contour, follow with root isolation and intersection processing appropriate to the expression family. The static example and numerical table explain the local formula without promising a complete manufacturing path.

A few questions, answered

Does positive distance mean outward?

It means left of increasing traversal. For a counterclockwise circle, that is inward.

Are all cusps guaranteed to be found?

No. A finite scan can miss tangent zeros between samples; only candidates and their residuals are reported.

Why distinguish collapse from a cusp?

If the speed factor vanishes everywhere, the whole offset can collapse rather than have an isolated singularity.

Does it trim self-intersections?

No. It returns the untrimmed sampled offset and local candidate conditions.

Find your calculator

Start typing to explore the library.