curve.curve_p1 green
- Layer
- 18
- Upstream lines
- 2,097
- Functions
- 8
- Rust module
curve::curve::p1
Status history
- todo 2,097 lines
- partial 2,097 lines
- green 2,097 lines
Source: crates/solidcore/src/curve/curve/p1.rs
Upstream: source/SMLib/src/SmCurve.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
PARTIAL: difftest 3083 cases (83 fixture re-expressing the smCurveTest my_test_point_extrema / my_test_drop_point line and circle solves, the SmApiCreateRectangle / SmApiCreateRegularPolygon edges through Tessellate / TessellateByBisection / GlobalPointSolve / ApproximateCurve and edge cases + 3000 generated), 2493 pass bit-identical (max_rel_err 0), 590 deferred (curve.curve_p5 590: LocalPropertyAnalysis 310, SmFindCCNormalENFO::Evaluate 163, SmCCIntersectENFO::Evaluate 73, IsArc 44); --perturb SENSITIVE; 12,083-case run clean; co-ported SmCurve::IsLine dispatch and CacheMakeOrValidate cache build (curve.curve_p5); SolutionObject::natural_interval added for IdenticalSolutions; wired UNPORTED(curve.curve_p1) in nurbs.b_spline_curve_p1 (TessellateByBisection: unit now green), nurbs.b_spline_curve_p2 (ApproximateCurve), curve.hyperbola (GlobalPointSolveSTEP: 70 -> 0 curve_p1 deferred), curve.ellipse_p2 (line GlobalPointSolve; the ellipse one now waits on curve.ellipse_p1); curve.curve_p4 / curve.ellipse_p2 curve_p1 deferrals now pass or wait on curve.ellipse_p1 (findings.md). 8 fns; largest: SmCPGlobalSolver::LocalSolve, SmCurve::TessellateByBisection, SmCurve::ClassifyIntersectingRangeSolution, SmCurve::GlobalPointSolve; cycle back-edges (call into later units; stub or co-port): curve.curve_p5(2); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit UPDATE after topology.brep_p1 (PR #145): re-run 3083 cases, 3057 pass, 0 fail, 26 deferred (geom.solution_array 26: its SmTol::GetZoneTol3d(SmObject*) stub, formerly tagged topology.brep_p1, now self-tagged: the tolerance arms are ported but need a &Brep the array does not hold). UPDATE (fix/tolerance-on-object-handles): GlobalPointSolveOptions::zone_tol_3d carries the caller's SmTol::GetZoneTol3d(const SmObject*) for the solution handles (CpGlobalSolver overrides GlobalSolve::object_zone_tol_3d); the difftest passes the unowned curve's system zone tolerance; re-run 3091 cases, 3091 pass, 0 fail, 0 deferred: GREEN.
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,096
- 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_p3 partial curve.curve_p4 green geom.a_object green geom.extent1d green geom.global_solver green geom.object green geom.solution_array green geom.tol green geom.tree green geom.vector3d green nurbs.b_spline_curve_p1 green
Soft dependencies: curve.hermite_curve green geom.extent3d green geom.geom_utility_p1 green geom.pseudo_box green
Dependents: curve.composite_curve_p1 green curve.composite_curve_p2 green curve.curve_p8 green curve.ellipse_p1 green
Soft dependents: blend.fillet_corner_p1 green blend.fillet_corner_p2 partial blend.fillet_custom_solver green blend.fillet_geom_p1 green blend.fillet_geom_p3 green blend.fillet_geom_p5 green blend.fillet_solver_p2 green blend.fillet_solver_p3 green blend.fillet_solver_p4 green blend.fillet_solver_p5 green blend.fillet_standard_solver_p1 green blend.fillet_standard_solver_p2 green blend.hcr green intersect.curve_class_p5 green intersect.surface_intersector_p3 green intersect.topology_solver_p1 green offset.offset_geometry_creation partial primitive.primitive_creation_p3 green query.api_queries green query.edge green surface.surf_of_extrusion_p1 green surface.surf_of_revolution_p3 green surface.surface_p5 green surface.surface_p9 green topology.brep_p1 green topology.brep_p3 partial topology.proto_topology_p1 green topology.proto_topology_p2 green topology.trimming_tools green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
sm_RefineCCSolutions | SmCurve.cpp:96 | 111 | [refine_cc_solutions] |
sm_TestSpanAccuracy | SmCurve.cpp:235 | 116 | [test_span_accuracy], [SpanAccuracy] |
SmCurve::ApproximateCurve | SmCurve.cpp:1582 | 222 | [Curve::approximate_curve], [Curve::approximate_curve_base], [CurveApproximation], [ApproximateCurveOptions] |
SmCurve::ClassifyIntersectingRangeSolution | SmCurve.cpp:7860 | 316 | [Curve::classify_intersecting_range_solution], [TangentPoint] |
SmCPGlobalSolver::LocalSolve | SmCurve.cpp:10951 | 657 | CpGlobalSolver::local_solve_branch ([GlobalSolve::local_solve] of [CpGlobalSolver]) |
SmCurve::GlobalPointSolve | SmCurve.cpp:11639 | 269 | [Curve::global_point_solve], [GlobalPointSolveOptions] |
SmCurve::TessellateByBisection | SmCurve.cpp:21166 | 380 | [Curve::tessellate_by_bisection] |
SmCurve::Tessellate | SmCurve.cpp:21750 | 26 | [Curve::tessellate], [Curve::tessellate_base] |
Module file-header table (9 rows)
| Rust | Upstream |
|---|---|
[refine_cc_solutions] | sm_RefineCCSolutions (static) |
[test_span_accuracy], [SpanAccuracy] | sm_TestSpanAccuracy (static) |
[Curve::approximate_curve], [Curve::approximate_curve_base], [CurveApproximation], [ApproximateCurveOptions] | ApproximateCurve (virtual: the SmCrvOnSurf override), SmCurve::ApproximateCurve |
[Curve::classify_intersecting_range_solution], [TangentPoint] | SmCurve::ClassifyIntersectingRangeSolution |
CpGlobalSolver::local_solve_branch ([GlobalSolve::local_solve] of [CpGlobalSolver]) | SmCPGlobalSolver::LocalSolve |
[Curve::global_point_solve], [GlobalPointSolveOptions] | SmCurve::GlobalPointSolve |
Curve::global_point_solve_cached (crate) | SmCurve::GlobalPointSolve (caller's cache) |
[Curve::tessellate_by_bisection] | SmCurve::TessellateByBisection |
[Curve::tessellate], [Curve::tessellate_base] | Tessellate (virtual), SmCurve::Tessellate |
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