solidcore

Units / curve

curve.curve_p5 partial

Layer
22
Upstream lines
2,299
Functions
19
Rust module
curve::curve::p5

Status history

Oct 12Nov 25
  1. todo 2,299 lines
  2. partial 2,299 lines
  3. green 2,299 lines
  4. partial 2,299 lines

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

Upstream: source/SMLib/inc/SmCurve.h, 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: difftest 3097 cases, 3097 passed, 0 deferred: the 2 cases deferred on SmCurve::GetNaturalInterval (CrvsCleanup -> TrimGap's GlobalCurveIntersect handles) pass since the handles carry the curves' natural intervals; PARTIAL: difftest 3097 cases (97 upstream-derived + edge-case fixtures: TestSmCreateRectangle/RegularPolygon edges, my_test_reversed_line_join lines, closest-point inversions, Newton Jacobians; plus 3000 generated over 16 ops), 3095 pass bit-identical, 2 deferred (curve.curve_p2 2: GetNaturalInterval through a solution handle); mass.integrator wired in PR #119: all 28 curved Length cases now pass; 20000-seed run clean; --perturb detects all; wired all 13 UNPORTED(curve.curve_p5) stubs, promoting 12 units to green; upstream CrvsCleanup/TrimGap crash next to a closed curve not generated (see findings); 19 fns; largest: SmFindCCNormalENFO::Evaluate, SmCCIntersectENFO::Evaluate, SmCurve::IsArc, SmCurve::LocalPropertyAnalysis; cycle back-edges (call into later units; stub or co-port): curve.ellipse_p1(2), mass.integrator(2); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit

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,140
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_cache green curve.curve_p2 green curve.curve_p4 green geom.a_object green geom.extent1d green geom.extent2d green geom.geom_utility_p1 green geom.local_solve1d green geom.matrix green geom.object green geom.tol green geom.vector3d green nurbs.b_spline_curve_p1 green

Soft dependencies: curve.composite_curve_p1 green curve.conic green curve.crv_in_volume green curve.crv_on_surf green curve.ellipse_p2 green curve.hermite_curve green curve.hyperbola green curve.iso_curve green curve.line green curve.offset_curve green curve.parabola green curve.projected_curve green curve.tangent_field green geom.axis2_placement green geom.solution_array green geom.vector2d green nurbs.b_spline_curve_p3 green

Dependents: blend.identify_fillet green curve.curve_p9 green surface.surf_of_revolution_p3 green

Soft dependents: blend.fillet_corner_p1 green blend.fillet_custom_solver green blend.fillet_geom_p4 partial blend.fillet_solver_p2 green blend.fillet_solver_p4 green blend.fillet_standard_solver_p1 green blend.fillet_standard_solver_p2 green blend.hcr green mass.integrator partial offset.offset_executive_p1 partial offset.offset_geometry_creation partial primitive.primitive_creation_p1 green primitive.primitive_creation_p2 green primitive.primitive_creation_p3 green query.loop green surface.cone_p2 green surface.plane_p1 partial surface.surf_of_extrusion_p1 green surface.surf_of_revolution_p1 green surface.surf_of_revolution_p2 green surface.surface_cache_p2 green surface.surface_p9 green surface.surface_point_solve_p3 green topology.brep_p1 green topology.brep_p3 partial topology.brep_p5 green topology.brep_p9 green topology.vertex green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmCurve::SmCurveSmCurve.h:122712[Curve] (construction, [Clone])
SmCurve::SmCurveSmCurve.h:124512[Curve] (construction, [Clone])
SmCurve::CrvsCleanupSmCurve.cpp:111060[crvs_cleanup], [CleanedCurves]
SmCurve::RemoveDuplicateCurvesSmCurve.cpp:133355[remove_duplicate_curves]
SmCurve::EvaluateSTEPPointSmCurve.cpp:355811[Curve::evaluate_step_point]
sm_IsPointSolutionAcrossClosedSeamBoundarySmCurve.cpp:426345[is_point_solution_across_closed_seam_boundary]
sm_FindAdditionalCcTangentGuessSmCurve.cpp:4314134[find_additional_cc_tangent_guess]
SmCurve::CacheMakeOrValidateSmCurve.cpp:9821153[make_curve_cache], [validate_curve_cache]
sm_FindAdditionalCpGuessSmCurve.cpp:1240277[find_additional_cp_guess]
SmCurve::IsArcSmCurve.cpp:13390217[is_arc_base], [Curve::is_arc]
SmCurve::IsLineSmCurve.cpp:1366975[is_line_base], [Curve::is_line]
SmCurve::IsLinearSmCurve.cpp:13758116[Curve::is_linear], [Linearity]
SmCurve::IsDomainBoundarySmCurve.cpp:1446464[Curve::is_domain_boundary]
SmCurve::IsPeriodicSmCurve.cpp:1454422[is_periodic], [Curve::is_periodic]
SmCurve::LengthSmCurve.cpp:14615104[Curve::length], [Curve::length_base]
SmCurve::LocalPropertyAnalysisSmCurve.cpp:15889179[local_property_analysis]
SmCCTangentIntENFO::EvaluateSmCurve.cpp:1618215[CcTangentIntEnfo] (EvalNFunctions)
SmCCIntersectENFO::EvaluateSmCurve.cpp:16593254[CcIntersectEnfo::evaluate_equations]
SmFindCCNormalENFO::EvaluateSmCurve.cpp:17174694[FindCcNormalEnfo::evaluate_equations]
Module file-header table (21 rows)
RustUpstream
[Curve] (construction, [Clone])SmCurve::SmCurve (dimension, copy constructors)
[crvs_cleanup], [CleanedCurves]SmCurve::CrvsCleanup (static)
[remove_duplicate_curves]SmCurve::RemoveDuplicateCurves (static)
[Curve::evaluate_step_point]SmCurve::EvaluateSTEPPoint (virtual)
[is_point_solution_across_closed_seam_boundary]sm_IsPointSolutionAcrossClosedSeamBoundary (static)
[find_additional_cc_tangent_guess]sm_FindAdditionalCcTangentGuess (static)
[make_curve_cache], [validate_curve_cache]SmCurve::CacheMakeOrValidate
[make_curve_cache_with_zone_tol]SmCurve::CacheMakeOrValidate (edge curve)
[find_additional_cp_guess]sm_FindAdditionalCpGuess (static)
[is_arc_base], [Curve::is_arc]SmCurve::IsArc (virtual: base, circle, line, parabola, hyperbola)
[is_line_base], [Curve::is_line]SmCurve::IsLine (virtual: base, B-spline, line)
[Curve::is_linear], [Linearity]SmCurve::IsLinear
Curve::is_linear_after_ends (crate helper)general IsLinear branch after virtual GetEnds
[Curve::is_domain_boundary]SmCurve::IsDomainBoundary (virtual: base, ellipse, line)
[is_periodic], [Curve::is_periodic]SmCurve::IsPeriodic
[Curve::length], [Curve::length_base]SmCurve::Length (virtual: base, line)
Curve::length_with_zone_tol (crate helper)SmCurve::Length (edge-owned curve)
[local_property_analysis]SmCurve::LocalPropertyAnalysis
[CcTangentIntEnfo] (EvalNFunctions)SmCCTangentIntENFO::Evaluate (in p3)
[CcIntersectEnfo::evaluate_equations]SmCCIntersectENFO::Evaluate
[FindCcNormalEnfo::evaluate_equations]SmFindCCNormalENFO::Evaluate

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