solidcore

Units / curve

curve.curve_p3 partial

Layer
17
Upstream lines
2,072
Functions
9
Rust module
curve::curve::p3

Status history

Oct 12Nov 25
  1. todo 2,072 lines
  2. claimed 2,072 lines
  3. partial 2,072 lines
  4. green 2,072 lines
  5. partial 2,072 lines

Source: crates/solidcore/src/curve/curve/p3.rs

Upstream: source/SMLib/src/SmCurve.cpp

Port-plan notes

These notes preserve historical port measurements and limitations, not current CI results.

PARTIAL (2026-11-05): curve length cases moved by span ends from their own knot span and the quadrature step estimate, known mismatches with errors against a Gauss-Legendre reference (plan/findings/curve.curve_p5--curve-length-honest-acceptance-moves-cases-2026-11-05.md); GREEN (PR #119): difftest 3076 cases (76 fixtures plus 3000 generated), all pass bit-identically, zero deferred. Wiring mass.integrator resolves the remaining 85 FindParameterAtArcLength / curved Length cases. Co-ported SmCurve::IsLinear (curve.curve_p5) and SmCCTangentIntENFO::Evaluate; curve.curve_p5 calls are wired. 9 fns; largest: SmCurvePropertyGS::LocalSolve, SmCurve::LocalPointSolve, SmCurve::LocalCurveSolve, SmCurve::LocalCurveIntersect; cycle back-edges (call into later units; stub or co-port): curve.curve_p5(7); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; WR-587: ComputeCrvsNormal always uses the sampled polygon area so reflex corners cannot reverse its normal (the curve_loop_normal_from_area flag is retired). Default difftest: 3085/3085 value-bearing passes, zero differences/deferred; perturbation detects 3085/3085. Normal and analytic taper-volume regressions cover the fix.

Goldens

This is committed inventory, not a runtime result or a correctness proof. A golden records what solidcore produced when blessed. Current results require the canonical CI gate, not these counts.

Golden records
3,085
Stored error outcomes
0
Stored deferrals
0
Stored harness rejections
0
Known-failure entries
0

Metadata counts describe fields in the stored records; they are not passes or live failures.

Source at f9704ee3b: golden JSONL · known-failure list.

Dependencies

Depends on: curve.curve_p2 green curve.curve_p4 green geom.extent1d green geom.global_solver green geom.local_solve1d green geom.local_solve_nd green geom.matrix green geom.object green geom.solution_array green geom.vector3d green nurbs.b_spline_curve_p1 green

Soft dependencies: curve.curve_cache green curve.projected_curve green geom.geom_utility_p1 green geom.pseudo_box green geom.tol green geom.tree green nurbs.b_spline_curve_p2 green

Dependents: curve.composite_curve_p1 green curve.crv_on_surf green curve.curve_p1 green curve.curve_p6 green curve.curve_p7 green curve.curve_p9 green primitive.api_curve_ops green

Soft dependents: blend.fillet_geom_p2 green blend.fillet_geom_p4 partial blend.fillet_intersector green intersect.curve_class_p1 green intersect.curve_class_p2 green intersect.surface_intersector_p1 green intersect.surface_tracer green primitive.primitive_creation_p1 green primitive.primitive_creation_p2 green primitive.primitive_creation_p3 green query.loop green surface.surface_p10 green surface.surface_p2 partial surface.surface_p5 green surface.surface_p6 green surface.surface_p9 green surface.surface_point_solve_p3 green topology.brep_p1 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmCurve::ComputeCrvsNormalSmCurve.cpp:74383[compute_crvs_normal]
SmCurve::CrvsFixGapsSmCurve.cpp:118893[crvs_fix_gaps], [FixedGaps]
SmCurve::FindParameterAtArcLengthSmCurve.cpp:3932227[Curve::find_parameter_at_arc_length], [ArcLengthParameter]
SmCurvePropertyGS::LocalSolveSmCurve.cpp:12485398[CurvePropertyGs::local_solve_branch_with_note], [CurvePropertyNote]
SmCurve::LocalCurveIntersectSmCurve.cpp:16859269[local_curve_intersect], [CurveIntersection]
SmCurve::LocalCurveSolveSmCurve.cpp:17881297[Curve::local_curve_solve], [local_curve_solve]
SmFindPCExtremaEFO::EvaluateSmCurve.cpp:18262156EvalFunction for [FindPcExtremaEfo]
SmBestLineFitENFO::EvaluateSmCurve.cpp:18754247EvalFunction for [FindPcExtremaEfo]
SmCurve::LocalPointSolveSmCurve.cpp:19020302[Curve::local_point_solve], [PointSolveOptions]
Module file-header table (13 rows)
RustUpstream
[compute_crvs_normal]SmCurve::ComputeCrvsNormal (static)
[crvs_fix_gaps], [FixedGaps]SmCurve::CrvsFixGaps (static)
[Curve::find_parameter_at_arc_length], [ArcLengthParameter]SmCurve::FindParameterAtArcLength
[Curve::find_parameter_at_arc_length_within] (a caller's accuracy, with its bound)(none: solidcore)
Curve::find_parameter_at_arc_length_with_zone_tol (crate helper)SmCurve::FindParameterAtArcLength (edge-owned curve)
[Curve::local_point_solve], [PointSolveOptions]SmCurve::LocalPointSolve
[Curve::local_curve_solve], [local_curve_solve]SmCurve::LocalCurveSolve
[local_curve_intersect], [CurveIntersection]SmCurve::LocalCurveIntersect
[CurvePropertyGs::local_solve_branch_with_note], [CurvePropertyNote]SmCurvePropertyGS::LocalSolve
[CurvePropertyGs::local_solve_branch] ([GlobalSolve::local_solve] of [CurvePropertyGs])SER(LocalSolve(...)) in SmGlobalSolver::SolveIt
EvalFunction for [FindPcExtremaEfo]SmFindPCExtremaEFO::Evaluate
[BestLineFitEnfo]SmBestLineFitENFO (class, constructor, HasIntervals, SetIntervals, Evaluate)
EvalNFunctions for [CcTangentIntEnfo]SmCCTangentIntENFO::Evaluate (co-ported, unit curve.curve_p5)

Upstream tests reaching this unit

prog_test:my_test_surface_closest_point, prog_test:my_test_drop_point, prog_test:my_test_matrix, prog_test:my_test_reversed_line_join, SM_API_test:TestSmCreateRectangle, SM_API_test:TestSmCreateRegularPolygon