Expand description
Curve primitives built on the hyper geometry stack.
This crate starts with a line/circular-arc core using hyperreal::Real
coordinates and the hyperlimit predicate policy model. The core topology
follows the robust-computation principle of deciding predicates before branching; see
Shewchuk, “Adaptive Precision Floating-Point Arithmetic and Fast Robust
Geometric Predicates” (Discrete & Computational Geometry 18(3), 305-363,
1997).
Structs§
- Aabb2
- An axis-aligned bounding box for two-dimensional curve geometry.
- ArcArc
Intersection Point - One point in an arc-arc intersection result.
- Bezier2
Facts - Structural facts for polynomial Bezier curves.
- Bezier
Algebraic Coordinate Image - One exact coordinate image of a Bezier expression at an algebraic parameter.
- Bezier
Algebraic Endpoint Image2 - Exact point and tangent images for one algebraic split endpoint.
- Bezier
Algebraic Parameter2 - Algebraic Bezier parameter represented by a polynomial and isolating interval.
- Bezier
Algebraic Point Image2 - Exact algebraic image of a Bezier point.
- Bezier
Algebraic Rational Coordinate Image - One exact rational-function coordinate image at an algebraic parameter.
- Bezier
Algebraic Same Tangent Order Report - Report for a certified algebraic same-tangent higher-order predicate.
- Bezier
Algebraic Scalar Sign Report - Sign construction report for a cross, dot, or norm-squared scalar.
- Bezier
Algebraic Tangent Image2 - Exact algebraic image of a Bezier derivative vector.
- Bezier
Algebraic Tangent Order Report - Report for a certified algebraic tangent-order predicate.
- Bezier
Algebraic Tangent Vector2 - A represented algebraic tangent vector with exact coordinate evidence.
- Bezier
Algebraic Tangent Vector Report - Extraction report for a represented tangent vector.
- Bezier
ArcLength Parameter Region2 - Certified parameter region for an inverse arc-length query.
- Bezier
Area Moment Prefix Sums2 - Exact prefix sums of Bezier area and first-moment boundary contributions.
- Bezier
Area Moments2 - Exact Green’s-theorem area and first-moment boundary contributions.
- Bezier
Area Prefix Sums2 - Exact prefix sums of Bezier signed-area boundary contributions.
- Bezier
Arrangement Chain2 - One endpoint-connected traversal chain through retained Bezier fragments.
- Bezier
Arrangement Fragment2 - One retained Bezier arrangement fragment with source provenance.
- Bezier
Arrangement Graph2 - Branch-free retained Bezier arrangement graph.
- Bezier
Arrangement Traversal2 - Traversal result for a branch-free retained Bezier arrangement graph.
- Bezier
Boundary Loop2 - A closed native Bezier/conic boundary loop.
- Bezier
Curve Intersection Point - Certified geometric intersection point between two Bezier segments.
- Bezier
Curve Intersection Region - Pair of parameter spans that covers one possible curve/curve intersection region.
- Bezier
FitCertificate - Certificate attached to a zero-error Bezier primitive fit.
- Bezier
Flattening Certificate - Certificate attached to a flattened Bezier polyline.
- Bezier
Flattening Options - Options for certified Bezier-to-polyline flattening.
- Bezier
Graph Contact - Certified contact on a shared-axis monotone Bezier graph relation.
- Bezier
Length Bounds2 - Exact lower and upper bounds for a Bezier segment’s arc length.
- Bezier
Line Contact - Certified represented root of a Bezier/supporting-line predicate.
- Bezier
Monotone Span - Closed parameter span on which a Bezier has no certified interior extremum.
- Bezier
Offset Preflight2 - Exact source analysis retained before a staged Bezier offset candidate is built.
- Bezier
Parameter Interval - Closed isolating interval for a Bezier parameter root.
- Bezier
Parameter Polynomial - Power-basis polynomial used to define an algebraic Bezier parameter.
- Bezier
Region2 - A retained higher-order region with native Bezier/conic boundary loops.
- Bezier
Retained Boundary Loop2 - A closed retained Bezier/conic boundary loop.
- Bezier
Retained Curve Envelope2 - Exact curve-interior envelope for retained Bezier/conic carriers.
- Bezier
Retained Curved Nesting Role Report2 - Exact nesting-derived role assignment for native retained curved loops.
- Bezier
Retained Endpoint Envelope2 - Exact endpoint envelope for a retained Bezier region or loop.
- Bezier
Retained Fragment Source2 - Arrangement provenance for one retained boundary fragment.
- Bezier
Retained Line Overlap Split2 - Exact split evidence for a positive-dimensional line-image overlap.
- Bezier
Retained Line Region Role Report2 - Exact role assignment for retained line-image Bezier boundary loops.
- Bezier
Retained Linear Overlap Split2 - Exact Bezier-parameter split evidence for a linearly parameterized overlap.
- Bezier
Retained Linear Overlap Split Graph2 - Graph refined at all certified linearly-parameterized overlap endpoints.
- Bezier
Retained Linear Overlap Traversal2 - Traversal through a graph whose certified linear overlaps were refined.
- Bezier
Retained Overlap2 - One certified overlap pair in a retained Bezier arrangement graph.
- Bezier
Retained Overlap Refined Fragment2 - One fragment in a graph refined by certified linear-overlap split points.
- Bezier
Retained Overlap Report2 - Exact overlap report for materialized retained Bezier arrangement fragments.
- Bezier
Retained Overlap Traversal2 - Retained traversal after consuming certified duplicate materialized overlaps.
- Bezier
Retained Region2 - A higher-order retained region built from accepted native/algebraic carriers.
- Bezier
Retained Resolved Linear Overlap2 - One resolved overlap span after exact linear-overlap graph refinement.
- Bezier
Retained Signed Area Role Report2 - Exact orientation-derived role assignment for native retained Bezier loops.
- Bezier
Split Materialization2 - Ordered split result for one Bezier segment.
- Boolean
Boundary Chain - One endpoint-connected directed boundary chain.
- Boolean
Boundary Chain Set - Endpoint-connected boundary chains.
- Boolean
Boundary Fragment Set - Boundary fragments selected by a boolean operation.
- Boolean
Boundary Loop - One closed boolean result boundary loop.
- Boolean
Boundary Loop Set - Closed boolean boundary loops before material/hole role assignment.
- Boolean
Fragment Classification - Boolean classification for one source fragment.
- Boolean
Fragment Selection - Boolean classification for all fragments in a region-pair fragment set.
- Bulge
Vertex2 - A point plus the bulge for the outgoing segment.
- Certified
Bezier Line Fit2 - A zero-error line fit recovered from a certified flattened Bezier polyline.
- Certified
Bezier Line Image2 - A Bezier or conic segment certified to trace exactly one endpoint line segment.
- Certified
Bezier Line Image Offset2 - Exact offset of a certified Bezier/conic line image.
- Certified
Bezier Line Offset2 - Exact offset of a certified zero-error line fit.
- Certified
Bezier Point Fit2 - A zero-error point fit recovered from a certified flattened Bezier polyline.
- Certified
Bezier Point Image2 - A Bezier or conic segment certified to be one exact affine point.
- Certified
Bezier Polyline2 - A polyline produced by certified Bezier flattening.
- Circular
Arc2 - A finite circular arc segment.
- Circular
Arc2 Facts - Structural facts for a
CircularArc2. - Contour2
- A closed sequence of connected native segments.
- Contour
Fragment - One source-contour fragment between adjacent split markers.
- Contour
Fragment Set - Ordered fragments from a split contour.
- Contour
Intersection Set - A normalized set of contour-pair topology events.
- Contour
Overlap Intersection - A finite overlap event between two contours.
- Contour
Point Intersection - A point event between two contours.
- Contour
Split Map - Per-segment split parameters for a contour.
- Contour
Split Markers - Point-bearing split markers grouped by source contour segment.
- Contour
Uncertain Intersection - An uncertain segment-pair relation.
- Cubic
Bezier2 - A polynomial cubic Bezier segment with four exact control points.
- Curve
Policy - Operation-level policy for curve algorithms.
- Curve
String2 - An ordered sequence of connected native segments.
- Curve
String Facts - Structural facts for a curve string or contour segment list.
- Curve
String Intersection - One segment-pair event between two curve strings.
- Directed
Boolean Fragment - A selected fragment with geometry already oriented for result traversal.
- Endpoint
Tangent2 - Exact first-derivative information at a Bezier endpoint.
- Finite
Contour Import2 - Result of importing a finite closed line ring.
- Finite
Curve String Import2 - Result of importing a finite open line string.
- Finite
Polyline2 - Finite
f64polyline emitted from a native curve object. - Finite
Projection Options - Options for projecting native curves to finite
f64polylines. - Finite
Region Profile2 - A finite material ring and the finite hole rings owned by it.
- Finite
Region Projection2 - Finite
f64projection of a region with material and hole roles retained. - Line
ArcIntersection Point - One point in a line-arc intersection result.
- Line
Seg2 - A finite line segment.
- Line
Seg2 Facts - Structural facts for a
LineSeg2. - Param
Range - Parameter range on a segment.
- Planar
Pcurve Image Equality Report2 - Evidence report for one planar pcurve image-equality predicate.
- Point2
- A two-dimensional point.
- Point2
Facts - Structural facts for a
Point2. - Polyline
Reconstruction Options - Controls reconstruction of line and circular-arc segments from sampled polyline points.
- PolynomialB
Spline Bezier Extraction2 - Exact Bezier extraction report for one polynomial B-spline.
- PolynomialB
Spline Curve2 - Exact polynomial B-spline curve in the plane.
- Predicate
Policy - Runtime policy for predicate escalation.
- Prepared
Circular Arc2 - Prepared sweep and circle classifier for a fixed
CircularArc2. - Prepared
Contour View2 - A borrowed contour with cached contour and segment bounding boxes.
- Prepared
Curve String View2 - A borrowed curve string with cached segment and whole-string bounding boxes.
- Prepared
Line Seg2 - Prepared point-line classifier for a fixed
LineSeg2. - Prepared
Region View2 - A borrowed region view with cached contour and region bounding boxes.
- Prepared
Retained Planar Face2 - Prepared retained planar face for repeated support-surface and UV queries.
- Quadratic
Bezier2 - A polynomial quadratic Bezier segment with three exact control points.
- Rational
- Ratio of two integers
- RationalB
Spline Bezier Extraction2 - Exact rational Bezier extraction report for a retained NURBS curve.
- RationalB
Spline Curve2 - Exact rational B-spline/NURBS curve in the plane.
- RationalB
Spline Native Topology Report2 - Native-topology audit report for a retained rational B-spline extraction.
- Rational
Bezier Algebraic Point Image2 - Exact algebraic image of a rational quadratic Bezier affine point.
- Rational
Bezier Algebraic Tangent Image2 - Exact algebraic image of a rational quadratic Bezier derivative vector.
- Rational
Bezier Span2 - One exact rational Bezier span extracted from a retained NURBS curve.
- Rational
Bezier Span Topology Report2 - Native-topology audit report for one retained rational Bezier span.
- Rational
QuadraticB Spline Bezier Extraction2 - Exact rational Bezier extraction report for one quadratic NURBS curve.
- Rational
QuadraticB Spline Curve2 - Exact quadratic NURBS curve in the plane.
- Rational
Quadratic Bezier2 - A rational quadratic Bezier segment with exact control points and weights.
- Rational
Quadratic Bezier2 Facts - Structural facts for rational quadratic Bezier/conic segments.
- Real
- (More) Real numbers
- Region2
- An owned planar region with explicit material and hole contour bins.
- Region
Contour Fragments - Fragments for one keyed contour in a region-pair query.
- Region
Contour Intersection - Intersections between two keyed contours from a region-pair query.
- Region
Contour Key - Identifies one contour inside a region-pair query.
- Region
Contour Profile - A material contour and the hole contours owned by it.
- Region
Facts - Structural facts for a region prepared from material and hole contours.
- Region
Fragment Set - Fragment inventory for both regions in a region-pair query.
- Region
Intersection Set - Normalized contour-pair intersections between two regions.
- Region
View2 - Borrowed view over material and hole contours.
- RetainedB
Spline Span Fact Report2 - Span-local fact report for one B-spline/NURBS extraction.
- RetainedB
Spline Span Facts2 - Span-local facts produced from B-spline/NURBS Bezier extraction.
- Retained
Curve Cache Summary2 - Prepared-cache shape summary for a retained curve.
- Retained
Curve Identity2 - Stable source identity for a retained curve.
- Retained
Curve Profile2 - Retained curve profile combining identity, domain, trim, endpoints, and cache facts.
- Retained
Endpoint Evidence2 - Exact endpoint evidence at the active retained domain boundaries.
- Retained
Import Record2 - Retained audit record for one imported finite curve carrier.
- Retained
Parameter Domain1 - Exact one-dimensional parameter domain.
- Retained
Planar Face2 - Retained planar face assembled from material and hole pcurve trim loops.
- Retained
Planar Face Edge UseReport2 - Evidence report for a retained planar pcurve edge-use query.
- Retained
Planar Face Point Report2 - Evidence report for an exact UV point-in-face query.
- Retained
Planar Pcurve2 - Open retained pcurve on a planar support surface.
- Retained
Planar Surface Identity2 - Opaque identity of a retained planar support surface.
- Retained
Planar Trim Loop2 - Closed retained trim-loop pcurve on a planar support surface.
- Retained
Source Tolerance2 - Absolute/relative tolerance carried from an import source.
- Retained
Span Weight Domain Report2 - Nonzero-weight evidence for a retained rational span.
- Retained
Trim Interval1 - Exact trim interval on a retained curve domain.
- Segment2
Facts - Structural facts for a native
Segment2. - Segment
Kind Counts - Counts of native segment families in a prepared object.
- Segment
Split Marker - A local split marker with both ordering parameter and geometric point.
- Segment
Split Point - A local split parameter on one contour segment.
- Similarity2
- A 2D affine transform whose linear part is a nonsingular similarity.
- Symbolic
Dependency Mask - Opaque bit mask of symbolic dependencies visible in a
Real. - Tolerance
- Optional absolute/relative tolerance metadata for edge-preview operations.
Enums§
- ArcArc
Intersection - Intersection between two circular arcs.
- Axis2
- Coordinate axis used by Bezier monotonicity and bounds predicates.
- Bezier
Algebraic Image Status - Status for a Bezier algebraic point or tangent image.
- Bezier
Algebraic Same Tangent Order Status - Status for comparing two same-direction algebraic tangent branches with second-order local evidence.
- Bezier
Algebraic Tangent Order Status - Status for algebraic tangent-order comparison.
- Bezier
Algebraic Tangent Vector Status - Status for extracting represented tangent coordinates from an image.
- Bezier
Curve Relation - Coarse certified relation between two polynomial Bezier segments.
- Bezier
Cusp Classification - Certified cusp status visible to this exact predicate slice.
- Bezier
Degree - Polynomial Bezier curve degree.
- Bezier
Endpoint - An endpoint of a parametric Bezier segment.
- Bezier
Endpoint Point Image2 - Exact point image retained at an algebraic split endpoint.
- Bezier
Endpoint Tangent Image2 - Exact tangent image retained at an algebraic split endpoint.
- Bezier
FitBound Kind - Proof status for a Bezier fitting error bound.
- Bezier
FitError Metric - Error metric used by a zero-error primitive fit.
- Bezier
Inflection Classification - Certified inflection status for a polynomial Bezier segment.
- Bezier
Line Contact Kind - Certified contact kind for a represented Bezier/supporting-line root.
- Bezier
Line Contact Relation - Supporting-line relation with represented root contact classification.
- Bezier
Line FitRelation - Result of attempting a zero-error line fit.
- Bezier
Line Image FitRelation - Result of attempting to fit the Bezier/conic object itself to a line.
- Bezier
Line Relation - Certified relation between a Bezier segment and an infinite supporting line.
- Bezier
Monotone Graph Contact Order - Certified order of two Bezier graph curves with represented contact kinds.
- Bezier
Monotone Graph Order - Certified order of two Bezier graph curves over one shared monotone axis.
- Bezier
Offset Candidate2 - Result of a staged Bezier/conic offset attempt.
- Bezier
Offset Risk - Exact source-curve hazard that must be resolved before a Bezier offset is treated as a topology product.
- Bezier
Parameter2 - Exact Bezier parameter carrier.
- Bezier
Point FitRelation - Result of attempting a zero-error point fit.
- Bezier
Point Image FitRelation - Result of attempting to fit the Bezier/conic object to one point.
- Bezier
Retained Envelope Source Kind - Source class of one retained envelope witness.
- Bezier
Retained Line Overlap Extent2 - Certified extent class for a retained line-image overlap.
- Bezier
Retained Overlap Orientation2 - Orientation of two refined fragments that carry the same overlap image.
- Bezier
Retained Overlap Relation2 - Exact positive-dimensional overlap relation between two arrangement fragments.
- Bezier
Retained Region Loop Role - Material/hole role assigned to one retained Bezier boundary loop.
- Bezier
Split Fragment2 - One fragment between adjacent split boundaries.
- Bezier
Subcurve2 - A native Bezier subcurve produced by exact split materialization.
- Bezier
Tangent Turn Ordering2 - Certified turn ordering for two candidate tangents around a base tangent.
- Boolean
Fragment Action - How a classified source fragment participates in a boolean result.
- Boolean
Op - Boolean operation requested between two regions.
- Circle
Circle Relation - Relation between two full circles supporting circular arcs.
- Classification
- Result of a classification step.
- Contour
Intersection - One normalized contour-pair topology event.
- Contour
Operand - Which side of a contour-pair event to inspect.
- Contour
Point Location - Point location relative to a closed contour.
- Curve
Error - Errors returned by curve constructors and early topology scaffolding.
- Fill
Rule - Fill rule used when classifying contour interiors.
- Intersection
Kind - Local intersection kind.
- Line
ArcIntersection - Intersection between a line segment and a circular arc.
- Line
ArcOrder - Operand order for a line-arc segment intersection.
- Line
Circle Relation - Relation between an oriented supporting line and a full circle.
- Line
Line Intersection - Intersection between two line segments.
- Line
Side - Side of an oriented line.
- Numeric
Mode - Runtime numeric mode for whole curve operations.
- Offset
Cap - Endpoint cap style for checked open curve-string outlines.
- Planar
Pcurve Image Relation2 - Exact image relation between two retained planar pcurves.
- Prepared
Segment2 - Prepared exact-predicate handle for a native segment.
- Rational
Quadratic Conic Kind - Coarse conic family represented by a rational quadratic Bezier segment.
- Real
Sign - Exact sign knowledge exposed by structural inspection.
- Region
Contour Role - Semantic role of a contour inside a region.
- Region
Point Location - Point location relative to a planar region.
- Region
Side - Which region side a contour key belongs to.
- Retained
Curve Family2 - Curve family carried by retained curve metadata.
- Retained
Curve Periodicity1 - Periodicity evidence for a retained curve.
- Retained
Import Format2 - Source family for a lossy retained curve import record.
- Retained
Import Topology2 - Source topology for a lossy retained curve import record.
- Retained
Planar Face Edge UseRelation2 - Exact edge-use agreement between a retained planar pcurve and face trims.
- Retained
Planar Face Point Location2 - Point classification result for a retained planar face.
- Retained
Planar Trim Loop Role2 - Role of the retained trim loop that owns a matched pcurve edge-use.
- Retained
Span Axis Monotonicity - Certified or retained monotonicity evidence for one extracted spline span.
- Retained
Topology Status - Topology-readiness status for a retained curve or span.
- Retained
Trim Direction - Direction of a trim interval relative to its parameter domain.
- Segment2
- A native line or circular-arc segment.
- Segment
Intersection - Intersection between two native segments.
- Segment
Kind - Segment primitive family.
- Uncertainty
Reason - Reason an operation could not decide a topology branch.
- Zero
Status - Whether structural inspection can prove zero or nonzero status.
Functions§
- compare_
algebraic_ same_ tangent_ second_ order - Compares same-direction algebraic tangent branches by second-order evidence.
- compare_
algebraic_ same_ tangent_ third_ order - Compares same-direction algebraic tangent branches by third-order evidence.
- compare_
algebraic_ tangent_ turn_ from_ base - Compares two candidate tangent turns from a base tangent.
- finite_
polyline_ vertex_ centroid - Returns the arithmetic centroid of finite polyline vertices.
- finite_
ring_ signed_ area - Returns the finite signed shoelace area of projected ring vertices.
- triangulate_
finite_ rings - Triangulates a finite material ring with owned finite hole rings.
- try_
finite_ polyline_ vertex_ centroid - Returns the checked arithmetic centroid of finite polyline vertices.
- try_
finite_ ring_ signed_ area - Returns the checked finite signed shoelace area of projected ring vertices.
Type Aliases§
- Curve
Result - Result alias used by
hypercurve. - Finite
Triangle2 - A finite triangle emitted from a projected region profile.