solidcore

Units / curve

curve.curve_p4 green

Layer
16
Upstream lines
2,381
Functions
20
Rust module
curve::curve::p4

Status history

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

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

Upstream: source/SMLib/src/SmCurve.cpp

Port-plan notes

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

GREEN: difftest 3259 cases, 3259 passed, 0 deferred: the 13 cases deferred on SmCurve::GetNaturalInterval (solution handles of the curve's global solves that reported no natural interval: HasPlaneCrossings' plane intersection, TrimGap's curve/curve intersection) pass since the handles carry the curves' natural intervals and the plane's UV domain; PARTIAL: difftest 3259 cases (259 fixture: TestSmCreateRectangle / far 1e-9 rectangle and TestSmCreateRegularPolygon / far 1.5e-6 pentagon edges through FixChainCurvesList, IsClosed, IsDegenerate, polar box, snap; my_test_reversed_line_join line pairs (chain, AnalyticCurveIntersect, AssertValid); my_test_drop_point unit circle through every SmCurvePropertyEFO property, SmCPDistAtENFO, sm_GetProjDist; tangent/extrema equations; filter cases + 3000 generated), 3210 pass bit-identical (max_rel_err 0), 49 deferred (surface.surface_p8 49: SmSurface::GlobalCurveIntersect in HasPlaneCrossings; curve.ellipse_p1 wiring cleared the 25 ellipse intersections); 30,259-case run clean; --perturb SENSITIVE; FixChainCurvesList duplicate deletion is a use after free upstream (not difftested, findings.md); SmFindCurveDistanceExtremaEFO::Evaluate co-ported earlier by curve.curve_cache; wired UNPORTED(curve.curve_p4) in nurbs.b_spline_curve_p2 (IsDegenerate, IsClosed: 94 -> 10 deferred) and nurbs.b_spline_curve_p3 (SmCurve::AssertValid: 200 -> 172 deferred); 20 fns; largest: SmCurvePropertyEFO::Evaluate, SmCCTangentIntENFO::StaticEvaluate, sm_FilterSolution, SmCurve::FixChainCurvesList; cycle back-edges (call into later units; stub or co-port): surface.surface_p8(1); 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,260
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 geom.a_object green geom.assert_array green geom.extent1d green geom.matrix green geom.object green geom.solution_array green geom.tol green geom.vector3d green

Soft dependencies: curve.ellipse_p2 green curve.line green geom.geom_utility_p1 green geom.polar_box green nurbs.b_spline_surface_p1 green

Dependents: blend.feature_executive blocked blend.identify_fillet green curve.composite_curve_p2 green curve.curve_p1 green curve.curve_p3 partial curve.curve_p5 partial curve.curve_p6 green curve.curve_p7 green curve.curve_p8 green curve.curve_p9 green curve.ellipse_p1 green topology.brep_constructor green

Soft dependents: blend.fillet_custom_solver green blend.fillet_geom_p1 green blend.fillet_geom_p3 green blend.fillet_geom_p4 partial blend.fillet_geom_p5 green blend.fillet_solver_p2 green blend.fillet_solver_p4 green blend.fillet_standard_solver_p1 green blend.fillet_standard_solver_p2 green boolean.topology_intersector_p2 green boolean.topology_intersector_p3 green heal.heal_data_p2 green intersect.curve_class_p5 green intersect.curve_class_p7 green intersect.curve_class_p8 green intersect.surface_drop_curve green intersect.surface_drop_lib_p3 green intersect.surface_intersector_p1 green intersect.surface_intersector_p3 green intersect.surface_intersector_p5 green intersect.surface_tracer green offset.offset_geometry_creation partial primitive.primitive_creation_p2 green query.face_p2 green surface.b_spline_volume_n_lib green surface.cone_p3 green surface.plane_p1 partial surface.sphere green surface.surf_of_extrusion_p1 green surface.surf_of_extrusion_p2 green surface.surf_of_revolution_p1 green surface.surf_of_revolution_p2 green surface.surf_of_revolution_p3 green surface.surface_p10 green surface.surface_p11 green surface.surface_p5 green surface.surface_p6 green surface.surface_p8 green surface.surface_p9 green surface.unbend_volume green sweep.rotational_sweep_geometry green topology.brep_p7 green topology.brep_p8 green topology.face_p2 partial topology.face_p3 green topology.proto_topology_p3 green topology.trimming_tools green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmCurve::FixChainCurvesListSmCurve.cpp:854246[fix_chain_curves_list], [ChainedCurves]
sm_FilterSolutionSmCurve.cpp:4624255[filter_solution]
SmCurve::AnalyticCurveIntersectSmCurve.cpp:607793[analytic_curve_intersect], [AnalyticOperand], [Curve::analytic_curve_intersect]
sm_GetProjDistSmCurve.cpp:839940[proj_dist]
SmCurve::ApproximatePolarBoxSmCurve.cpp:1038170[approximate_polar_box], [Curve::approximate_polar_box]
SmCurve::IsClosedSmCurve.cpp:1362130[is_closed_base], [Curve::is_closed]
SmCurve::HasPlaneCrossingsSmCurve.cpp:1426248[has_plane_crossings]
SmCurve::IsDegenerateSmCurve.cpp:1437969[is_degenerate_base], [Curve::is_degenerate]
SmCurvePropertyEFO::SmCurvePropertyEFOSmCurve.cpp:1483412[CurvePropertyEfo]
SmCurvePropertyEFO::EvaluateSmCurve.cpp:14911935[CurvePropertyEfo]
SmCCTangentIntENFO::SmCCTangentIntENFOSmCurve.cpp:1615712[CcTangentIntEnfo], [CcTangentIntEnfo::static_evaluate]
SmCCTangentIntENFO::StaticEvaluateSmCurve.cpp:16204274[CcTangentIntEnfo], [CcTangentIntEnfo::static_evaluate]
SmCCIntersectENFO::SmCCIntersectENFOSmCurve.cpp:1654915[CcIntersectEnfo]
SmFindCCNormalENFO::SmFindCCNormalENFOSmCurve.cpp:1714614[FindCcNormalEnfo]
SmFindPCExtremaEFO::SmFindPCExtremaEFOSmCurve.cpp:1821813[FindPcExtremaEfo]
SmCPDistAtENFO::SmCPDistAtENFOSmCurve.cpp:1843910[CpDistAtEnfo]
SmCPDistAtENFO::EvaluateSmCurve.cpp:18489122[CurvePropertyEfo]
SmCurve::SnapToKnotsSmCurve.cpp:2081937[Curve::snap_to_knots]
SmCurve::AssertValidSmCurve.cpp:2386959[assert_valid_base], [Curve::assert_valid]
SmFindCurveDistanceExtremaEFO::EvaluateSmCurve.cpp:2402827EvalFunction for [FindCurveDistanceExtrema]
Module file-header table (17 rows)
RustUpstream
[fix_chain_curves_list], [ChainedCurves]SmCurve::FixChainCurvesList (static)
[filter_solution]sm_FilterSolution (static)
[analytic_curve_intersect], [AnalyticOperand], [Curve::analytic_curve_intersect]SmCurve::AnalyticCurveIntersect
[proj_dist]sm_GetProjDist (static)
[approximate_polar_box], [Curve::approximate_polar_box]SmCurve::ApproximatePolarBox
[is_closed_base], [Curve::is_closed]SmCurve::IsClosed
[has_plane_crossings]SmCurve::HasPlaneCrossings
[is_degenerate_base], [Curve::is_degenerate]SmCurve::IsDegenerate
[Curve::snap_to_knots]SmCurve::SnapToKnots
[assert_valid_base], [Curve::assert_valid]SmCurve::AssertValid
[CurvePropertyEfo]SmCurvePropertyEFO (constructor, Evaluate)
[CcTangentIntEnfo], [CcTangentIntEnfo::static_evaluate]SmCCTangentIntENFO (constructor, StaticEvaluate)
[CcIntersectEnfo]SmCCIntersectENFO (constructor, HasIntervals, SetIntervals)
[FindCcNormalEnfo]SmFindCCNormalENFO (constructor)
[FindPcExtremaEfo]SmFindPCExtremaEFO (constructor)
[CpDistAtEnfo]SmCPDistAtENFO (constructor, Evaluate)
EvalFunction for [FindCurveDistanceExtrema]SmFindCurveDistanceExtremaEFO::Evaluate (co-ported in [crate::curve::curve_cache])

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