Shapes & spaces

Rotation minimizing frame calculator along a sampled space curve

Carry a perpendicular frame along a sampled spatial path without adding a free twist around its tangent.

Your numbers

One comma-separated row per line.

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

Carry a perpendicular frame along a sampled spatial path without adding a free twist around its tangent. Segment tangents and transported normals remain available even where a smooth curve would have zero curvature.

THE FORMULATransport N by the minimal rotation mapping T_i to T_(i+1); B_i=T_i×N_i.

A worked example

The prefilled polyline lies in the xy-plane. Starting with normal(0,0,1), every transported normal stays on the positive z-axis. Tangents turn with the segments and binormals lie in the plane. All adjacent orthogonality checks should be zero up to roundoff.

Good to know

3–200 ordered 3D points; frame per segment using minimal tangent rotation. Nonzero initial normal projected perpendicular to first tangent. Repeated samples, antiparallel adjacent tangents and unresolved zero projections rejected. Discrete segment transport, not the fourth-order double-reflection method or a continuous-curve error certificate. No forced closed-loop alignment.

A transported frame needs an initial choice

A tangent leaves a whole circle of possible normal directions. The entered initial normal chooses one of them after projection perpendicular to the first segment; its length does not carry geometric information.

The binormal is the right-handed cross product T×N. Changing the initial normal rotates the whole transported framing, so two correct results need not have identical normal coordinates unless their initial choices match.

A planar path preserves the out-of-plane normalPlanar tangent turnsN = (0,0,1)B = T × N
The prefilled polyline lies in the xy-plane. Starting with normal(0,0,1), every transported normal stays on the positive z-axis. Tangents turn with the segments and binormals lie in the plane. All adjacent orthogonality checks should be zero up to roundoff.

Compare this with the Frenet frame curvature and torsion calculator for a space curve. A one-point Frenet frame fails at zero curvature and does not transport a continuous frame through inflections.

Samples define segment directions rather than derivatives

Each consecutive point pair gives a unit segment tangent. The page produces one frame per segment, so n points give n−1 frames. It does not silently assign a smooth derivative at a polyline corner.

Use spatial coordinates in a shared Cartesian system and preserve the path order. Repeated points have no direction and are rejected. Reversing sample order changes tangents and the interpretation of transport.

The minimal rotation supplies the update

For consecutive unit tangents a and b, their cross product is the rotation axis and their dot product determines the angle. Rodrigues transport maps the previous normal by the same rotation that maps a to b.

The normal is reprojected and normalized to remove accumulated roundoff. This corrects tiny numerical drift; it does not fit an independent Frenet normal or introduce an arbitrary roll at each sample.

Follow the planar zigzag example

The starting tangent is along positive x and the chosen normal points along positive z. Turning the tangent within the xy-plane rotates about the z-axis, leaving that normal unchanged.

The next planar turn has the same property. Consequently the output normal rows are all(0,0,1), while binormal components change with the tangent. This gives an exact geometric invariant for checking the transport convention.

Measure orthogonality rather than apparent animation

Unit length and zero pairwise dot products check a valid orthonormal frame. The residual reports the largest inspected departure. Static axes can reveal the transported orientation without decorative motion.

A low residual does not quantify approximation of an unknown smooth curve between samples. Denser samples can improve a representation of that curve, but corners and oscillations still depend on the chosen sampling geometry.

Antiparallel turns are genuinely ambiguous

When b=−a, infinitely many half-turn axes map the old tangent to the new one. The minimal-rotation rule cannot choose a unique normal there, so the computation rejects an unresolved antiparallel pair.

On a closed path, minimal local transport can return with a different normal angle. That holonomy is not automatically an error. This page does not distribute a closure correction or force the final frame to match the initial one.

Use the frame for sweeps with stated limits

Transported frames are useful for cross-section placement, camera paths and tubular geometry. They avoid the sudden curvature-based normal changes that can occur near an inflection in a Frenet construction.

A swept surface still needs collision checks, cross-section scale and endpoint handling. The frame alone does not guarantee a regular tube, a torsion-free smooth surface or a globally least-twist closed framing.

A few questions, answered

How many frames are returned?

One per line segment: n−1 frames for n samples.

Can the initial normal be arbitrary?

It must have a nonzero component perpendicular to the first tangent; that component is normalized.

Why reject a180-degree turn?

Its minimal rotation axis is not unique without an extra convention.

Is this Frenet transport?

No. It uses minimal rotations between sampled segment tangents, not curvature-normal derivatives.

Find your calculator

Start typing to explore the library.