Shapes & spaces

Bezier curve intersection calculator from two control polygons

Find numerical intersection candidates between two planar Bézier curves defined by two to four control points each.

Your numbers

Rows on separate lines; comma-separated values within each row.
Rows on separate lines; comma-separated values within each row.

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

Find numerical intersection candidates between two planar Bézier curves defined by two to four control points each. Bounding-box subdivision narrows candidate parameter pairs and Newton refinement checks their residuals. The page reports unresolved boxes and coincidence warnings instead of claiming an exact complete root list. Control polygons describe the curves; their line-segment intersections are not the curve intersections.

THE FORMULAFind t,u∈[0,1] with B1(t)=B2(u), using convex-hull bounding boxes and residual-checked Newton candidates.

A worked example

The two straight Bézier segments from (0,0) to (1,1) and from (0,1) to (1,0) meet at (1/2,1/2), with t=u=1/2. Both derivatives cross transversely. Coincident or near-tangent curves need an explicit unresolved status rather than an invented finite complete count.

Good to know

2–4 planar control points per curve, tolerance 10^-8–10^-3 and capped subdivision. Returns residual-checked numerical candidates, not a rigorous all-roots count. Coincidence and unresolved tangencies are labeled; numerically close parameter pairs may merge.

Controls define a polynomial curve

A Bézier curve interpolates its first and last control points, while interior controls shape its tangent and curvature. With two, three or four controls the degree is one, two or three.

Joining the controls draws a useful construction polygon but usually not the curve itself. Each curve has its own parameter from zero to one, so a crossing is described by a pair of parameters rather than a single shared time.

Two independently parameterized segments meet at their midpointst = u = 1/2Point = (1/2,1/2)Transverse crossing
The two straight Bézier segments from (0,0) to (1,1) and from (0,1) to (1,0) meet at (1/2,1/2), with t=u=1/2. Both derivatives cross transversely. Coincident or near-tangent curves need an explicit unresolved status rather than an invented finite complete count. Static schematic; numerical labels define the example.

Solves a relationship between two curves; the existing single-curve evaluator reports position, derivatives and length. The Planar line arrangement calculator with cells and adjacency offers a complementary calculation under its own stated assumptions.

Subdivision uses the convex-hull property

A curve lies inside the convex hull of its controls and therefore inside their coordinate bounding box. Disjoint boxes rule out an intersection for that pair of pieces.

De Casteljau subdivision creates smaller Bézier pieces without changing the underlying curve. Repeating this process narrows regions where intersections could occur. Overlapping boxes alone do not prove a crossing, especially near tangency or when two curves run close together.

Worked example and mathematical rule

The two straight Bézier segments from (0,0) to (1,1) and from (0,1) to (1,0) meet at (1/2,1/2), with t=u=1/2. Both derivatives cross transversely. Coincident or near-tangent curves need an explicit unresolved status rather than an invented finite complete count.

Find t,u∈[0,1] with B1(t)=B2(u), using convex-hull bounding boxes and residual-checked Newton candidates.

Newton refinement and transverse crossings

The refinement solves equality of the two curve positions in their independent parameters. At a transverse crossing, the two tangent directions give a well-resolved local system.

A small position residual supports the reported candidate. Near parallel tangents, the local Jacobian can be singular or ill-conditioned, so Newton steps may fail or leave the parameter interval. The tool retains unresolved status rather than converting that failure into evidence that no intersection exists.

Tangency, overlap and endpoint cases

A tangency can touch without crossing, and coincident curve portions contain infinitely many intersection pairs. Identical or reversed control polygons trigger an explicit coincidence message, but more subtle equivalent parameterizations can still require deeper analysis.

Shared endpoints are legitimate finite candidates when resolved. Deduplication uses numerical tolerance, so extremely close intersections may be merged at the chosen precision. Tightening tolerance increases work and does not turn floating-point subdivision into an exact algebraic certificate.

Interpreting the result status

The list contains numerical candidates that passed residual checks. An unresolved-box count means the list is incomplete.

Even with no unresolved boxes, the method is described as numerical rather than a certified exact all-roots isolation algorithm. Retain both parameter values and coordinates when checking an intersection. Coordinates alone can hide distinct parameter pairs, particularly for a curve that loops back through the same point.

A useful geometric audit

Evaluate both Bézier curves at every reported parameter pair and compare their positions. Reverse one control polygon: the geometric intersections should remain while its parameters change from u to one minus u.

Translating or uniformly scaling both curves should transform the crossing coordinates consistently, although a fixed absolute tolerance changes relative precision. CAD trimming, topology decisions and manufacturing tolerances may require a robust exact or interval-based library beyond this educational numerical intersection page.

A few questions, answered

Do intersecting control-polygon segments prove a curve crossing?

No. The control polygon and Bézier curve are different geometric objects.

Why are two parameters returned?

Each curve has its own independent parameter.

Does no unresolved box certify every exact root?

No. This floating-point method returns checked numerical candidates, not an exact root certificate.

What happens for coincident curves?

An explicit unresolved coincidence status is reported rather than a finite crossing list.

Find your calculator

Start typing to explore the library.