A closed section as a chain of rational quadratic arcs through the
section's own control points about the course point: the view section's
four quarters generalized so each quarter's ends stand at the section's
actual extreme points (off the chart axes where the section's extremes
are) and a quarter may be split into two conic pieces at a further point
of the section, each piece with its own shoulder (#3158).
Control point j is a chart point P_j with a tangent direction T_j,
oriented toward the next point. Arc j runs from P_j to P_{j+1}: the
rational quadratic with end weights 1, its control point A_j where the
two tangent lines meet, and middle weight w_j = rho_j / (1 - rho_j), so
its point on the segment from the chord midpoint M_j to A_j stands at
the share rho_j (Shene, "Rational Bezier curves: conic sections"; Farin
and Hansford, "The Essentials of CAGD" ch. 13: a conic arc is fixed by
its two end points, their tangent lines and one more point; positive
weights keep it in its control triangle). An arc may bend either way, so a
concave stretch is an arc whose control point lies on the course point's
side of its chord.
The chain is read in polar form about the course point, so every arc must
advance in phase from its start to its end. For the numerator N(t) = (1-t)^2 P0 + 2 w t (1-t) A + t^2 P2 the phase advances where N x N' > 0,
and N x N' = 2 [w (1-t)^2 (P0 x A) + t (1-t) (P0 x P2) + w t^2 (A x P2)]
(expanded term by term), a quadratic in t: the advance is decided exactly
over the whole arc from that quadratic's minimum on [0, 1].
Neighbouring arcs share each point and tangent line (G1); their
curvatures there are their own, so the chain is not G2 in general. Each
arc's signed end curvature is (A - P0) x (P2 - A) / (2 w^2 |A - P0|^3)
at its start and (A - P0) x (P2 - A) / (2 w^2 |P2 - A|^3) at its end
(the rational Bezier end curvature for degree 2 and weights 1, w, 1), and
every join's two curvatures are reported for the reader to judge. In
polar form the radius is therefore C1 in phase: a phase exactly at a join
reads the arc starting there, and where the two curvatures differ its
second phase derivatives belong to that side alone, which the reading
marks as sided.
Phases are reduced as the native view section reduces them
(AutoMovieViewConic): any finite phase, by the IEEE remainder phi % 2pi, which is exact in binary64 and takes constant time; the reduction is
periodic in the binary64 value of 2pi, so a phase of magnitude x carries
the rounding of that constant times x / 2pi. One read owns that
reduction, the arc lookup and the point on the ray; every reader takes its
point and direction from it.
jets gives the native source's radius Hessian over the station and
the phase: the arc point B(s, t) is carried through the shared conic
algebra (AutoMovieConicFieldJet.AD) with the inputs' station jets and the
arc parameter t as the second coordinate, its radius R = |B| and phase
Phi = atan2(B) take their (s, t) partials, and the inverse function
theorem turns them into partials over (s, phi) at the arc parameter the
ray meets.
A closed section as a chain of rational quadratic arcs through the section's own control points about the course point: the view section's four quarters generalized so each quarter's ends stand at the section's actual extreme points (off the chart axes where the section's extremes are) and a quarter may be split into two conic pieces at a further point of the section, each piece with its own shoulder (#3158).
Control point j is a chart point
P_jwith a tangent directionT_j, oriented toward the next point. Arc j runs fromP_jtoP_{j+1}: the rational quadratic with end weights 1, its control pointA_jwhere the two tangent lines meet, and middle weightw_j = rho_j / (1 - rho_j), so its point on the segment from the chord midpointM_jtoA_jstands at the sharerho_j(Shene, "Rational Bezier curves: conic sections"; Farin and Hansford, "The Essentials of CAGD" ch. 13: a conic arc is fixed by its two end points, their tangent lines and one more point; positive weights keep it in its control triangle). An arc may bend either way, so a concave stretch is an arc whose control point lies on the course point's side of its chord.The chain is read in polar form about the course point, so every arc must advance in phase from its start to its end. For the numerator
N(t) = (1-t)^2 P0 + 2 w t (1-t) A + t^2 P2the phase advances whereN x N' > 0, andN x N' = 2 [w (1-t)^2 (P0 x A) + t (1-t) (P0 x P2) + w t^2 (A x P2)](expanded term by term), a quadratic in t: the advance is decided exactly over the whole arc from that quadratic's minimum on [0, 1].Neighbouring arcs share each point and tangent line (G1); their curvatures there are their own, so the chain is not G2 in general. Each arc's signed end curvature is
(A - P0) x (P2 - A) / (2 w^2 |A - P0|^3)at its start and(A - P0) x (P2 - A) / (2 w^2 |P2 - A|^3)at its end (the rational Bezier end curvature for degree 2 and weights 1, w, 1), and every join's two curvatures are reported for the reader to judge. In polar form the radius is therefore C1 in phase: a phase exactly at a join reads the arc starting there, and where the two curvatures differ its second phase derivatives belong to that side alone, which the reading marks as sided.Phases are reduced as the native view section reduces them (
AutoMovieViewConic): any finite phase, by the IEEE remainderphi % 2pi, which is exact in binary64 and takes constant time; the reduction is periodic in the binary64 value of 2pi, so a phase of magnitude x carries the rounding of that constant times x / 2pi. One read owns that reduction, the arc lookup and the point on the ray; every reader takes its point and direction from it.jets gives the native source's radius Hessian over the station and the phase: the arc point
B(s, t)is carried through the shared conic algebra (AutoMovieConicFieldJet.AD) with the inputs' station jets and the arc parameter t as the second coordinate, its radiusR = |B|and phasePhi = atan2(B)take their (s, t) partials, and the inverse function theorem turns them into partials over (s, phi) at the arc parameter the ray meets.