curve.curve_p6 green
- Layer
- 18
- Upstream lines
- 2,376
- Functions
- 8
- Rust module
curve::curve::p6
Status history
- todo 2,376 lines
- green 2,376 lines
Source: crates/solidcore/src/curve/curve/p6.rs
Upstream: source/SMLib/src/SmCurve.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
2026-10-24 platform note (#449, PR #793): macOS arm64 gen0161/gen0953/gen2879 use skipped(platform), never passes, for upstream deform use-after-free UB-251. Verdict aggregation ignores platform skips as CI does; failures, deferred cases and known mismatches retain their gates. Following #749, canonical status stays green (Linux/libstdc++). GREEN (promoted by curve.curve_p5: 3136 cases, 0 deferred after its stubs were wired); PARTIAL: difftest 3136 cases (136 fixture: SM_API_test rectangle/hexagon edges (boxes, planarity, simple/global coincidence, gaps, drops), my_test_reversed_line_join line pairs x16 (simple coincidence, gaps, drops, GlobalPointSolveSTEP), smCurveTest DeformToEndPointTargets B-spline and line steps, my_test_drop_point-style drops, circle boxes, edge cases + 3000 generated), 3048 pass bit-identical (max_rel_err 0), 88 deferred (curve.curve_p5 88: SmFindCCNormalENFO::Evaluate in precise gaps, sm_IsPointSolutionAcrossClosedSeamBoundary in split recombination, LocalPropertyAnalysis/IsArc inside global solves); 30k-seed run clean; --perturb SENSITIVE; wired curve.curve_p1 (GlobalPointSolve, Tessellate, ApproximateCurve) at merge; ellipse GlobalCoincidenceChecker stub retagged UNPORTED(curve.ellipse_p1) (SmEllipse not a CurveKind; curve.ellipse_p2 stays partial, 1 case moved to ellipse_p1); geom.tools stubs kept (opaque handles, findings.md); GlobalCoincidenceChecker recursion bounded at 200 splits. 8 fns; largest: SmCurve::GlobalCoincidenceChecker, SmCurve::SimpleCoincidenceChecker, SmCurve::CurveMaxDistanceBetween, SmCurve::CalculateBoundingBox; cycle back-edges (call into later units; stub or co-port): curve.curve_p1(5), curve.crv_on_surf(3), curve.curve_p5(2), surface.surface_p1(1), surface.surface_p2(1), surface.surface_p5(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; GAP (PR #155): DeformToEndPointTargets dropped the pOptSurfCrvOnSurf / pOptCrvOrientation branch (it needs SmSurface::DropPoint); callers defer a curve on surface with a gap target as UNPORTED(curve.curve_p6) (topology.brep_p7 MakeFaceWithCurves) RESOLVED optional-surface endpoint gap: deform_to_end_point_targets_on_surface preserves matching CrvOnSurf geometry by dropping targets to UV, retaining default UV tangents and optional opposite orientation; the legacy API retains its no-surface behavior. Native curve.curve_p6: 3,138/3,138 pass, max_rel_err = 0; CrvOnSurf: 1,800 pass / 307 deferred, unchanged. Native BSpline and derived-Line UV endpoint samples match Rust for None/Same/Opposite orientation. ADDED in topology.brep_planar_section (PR #1534): Curve::global_coincidence_checker_with_partial (SmCurve::GlobalCoincidenceChecker for callers that ignore its status and read the solutions it had added before failing; the check body now writes into its output, global_coincidence_checker_into).
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,138
- 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_p3 partial curve.curve_p4 green geom.extent1d green geom.extent3d green geom.global_solver green geom.object green geom.polar_box green geom.pseudo_box green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p1 green
Soft dependencies: curve.line green geom.extent2d green nurbs.b_spline_curve_n_lib green
Dependents: blend.feature_executive blocked blend.fillet_removal green blend.identify_fillet green curve.composite_curve_p1 green curve.crv_on_surf green curve.curve_p7 green curve.curve_p8 green curve.curve_p9 green heal.stitch_p1 green heal.stitch_p2 green topology.brep_constructor green topology.brep_planar_section partial
Soft dependents: blend.fillet_corner_p3 partial blend.fillet_custom_solver green blend.fillet_geom_p2 green blend.fillet_geom_p3 green blend.fillet_geom_p4 partial blend.fillet_geom_p5 green blend.fillet_geom_p6 green blend.fillet_solver_p1 green 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 boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green boolean.topology_intersector_p3 green heal.gap green intersect.curve_class_p1 green intersect.curve_class_p3 green intersect.curve_class_p6 green intersect.curve_class_p7 green intersect.curve_class_p9 green intersect.point_class green intersect.surface_drop_curve green intersect.surface_intersector_p1 green intersect.surface_intersector_p3 green intersect.surface_tracer green intersect.topology_solver_p2 green 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.edge green query.face_p1 green query.loop green surface.b_spline_volume_n_lib green surface.cone_p1 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_p6 green surface.surface_p8 green surface.surface_p9 green surface.surface_point_solve_p1 green surface.unbend_volume green topology.brep_cache green topology.brep_p1 green topology.brep_p2 green topology.brep_p5 green topology.brep_p7 green topology.edgeuse_p2 green topology.face_p2 partial topology.face_p3 green topology.proto_topology_p1 green topology.proto_topology_p3 green topology.trimming_tools green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmCurve::CurveMaxDistanceBetween | SmCurve.cpp:2511 | 395 | [Curve::curve_max_distance_between], [MaxDistance] |
SmCurve::DropPoint | SmCurve.cpp:3294 | 187 | [Curve::drop_point], [Curve::drop_point_base], [DroppedPoint] |
SmCurve::CalculateBoundingBox | SmCurve.cpp:10001 | 229 | [Curve::calculate_bounding_box], [calculate_bounding_box_base] |
SmCurve::GlobalPointSolveSTEP | SmCurve.cpp:11931 | 26 | [Curve::global_point_solve_step] |
SmCurve::IsPlanar | SmCurve.cpp:13884 | 16 | [Curve::is_planar] |
SmCurve::SimpleCoincidenceChecker | SmCurve.cpp:19417 | 495 | [Curve::simple_coincidence_checker] |
SmCurve::GlobalCoincidenceChecker | SmCurve.cpp:19954 | 857 | [Curve::global_coincidence_checker], [Curve::global_coincidence_checker_with_partial], [Coincidence] |
SmCurve::DeformToEndPointTargets | SmCurve.cpp:21567 | 171 | [Curve::deform_to_end_point_targets] |
Module file-header table (9 rows)
| Rust | Upstream |
|---|---|
[Curve::calculate_bounding_box], [calculate_bounding_box_base] | SmCurve::CalculateBoundingBox (and its dispatch, with the SmCrvOnSurf override) |
[Curve::certified_bounding_box] | not upstream: a box that bounds the curve, never a sampled one |
[Curve::is_planar] | SmCurve::IsPlanar |
[Curve::drop_point], [Curve::drop_point_base], [DroppedPoint] | DropPoint (virtual: the SmCrvOnSurf override), SmCurve::DropPoint |
[Curve::global_point_solve_step] | SmCurve::GlobalPointSolveSTEP (and its dispatch) |
[Curve::curve_max_distance_between], [MaxDistance] | SmCurve::CurveMaxDistanceBetween |
[Curve::simple_coincidence_checker] | SmCurve::SimpleCoincidenceChecker |
[Curve::global_coincidence_checker], [Curve::global_coincidence_checker_with_partial], [Coincidence] | SmCurve::GlobalCoincidenceChecker |
[Curve::deform_to_end_point_targets] | SmCurve::DeformToEndPointTargets |
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