surface.cone_p2 green
- Layer
- 25
- Upstream lines
- 1,687
- Functions
- 5
- Rust module
surface::cone::p2
Status history
- todo 1,656 lines
- green 1,656 lines
Source: crates/solidcore/src/surface/cone/p2.rs
Upstream: source/SMLib/src/SmCone.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
#1433: SmCylinder::IsNurbSurfaceCylinder (SmCylinder.cpp, surface.cone_p1's file; ported in surface::cone::p2 as Cone::is_nurb_surface_cylinder next to IsNurbSurfaceCone, whose iso-arc helper it shares) with 77 fixture cases (fixtures/surface.cone_p2/issue1433_cylinder.json: 59 find a cylinder, 18 non-matching), all pass at max_rel_err=0. #724: completes the existing opt-in Kernel::fixes.cylinder_rebuild_mean_radius (WR-385) by clearing stale angles; #713 was closed by #1077. Official 1.0.1 (3fd5b95): 1596/1596 pass, max_rel_err=0, 0 failed/deferred, 1596/1596 perturbations detected; all 1572 exact-base case records retained, 24 added. Rebuild source is identical at the old and current official pins; no additional rebuild port required. See plan/findings/surface.cone_p2--cylinder-nurb-rebuild-issue713--addendum-2026-10-27-v101.md. main CI e33985411 (2026-10-23): PASS surface.cone_p2 cases=1570 passed=1570 failed=0 deferred=0. GREEN (PR #153): difftest 1550 cases (42 fixture + 308 review adversarial fixture + 1200 generated), 1550 pass bit-identical, 0 failed, 0 deferred, max_rel_err 0, no absolute floors; --perturb SENSITIVE 1550/1550. Real SmCone/SmCylinder inputs (all surface.cone_p1 constructions), offsets on all three branches (no surface, apex truncation, moved copy incl. apex control points), recognition and rebuild after NURB edits (moves, twists, homogeneous rescale, flattening), trims of section circles/ellipses (sub-domains, arcs, off-cone). Back-edges wired: sm_GetEllipseTrimIntervals in surface::cone::p3 (surface.cone_p3 deferred 121 -> 30), SmCone::IsNurbSurfaceCone in BSplineSurface::copy_and_add_analytics (now takes the kernel; a recognised cone returns Unported at a DISPATCH GAP (no SurfaceKind::Cone yet, issue #76 / PR #133), the rest defers on surface.sphere). The prior closed attempt (PR #71) was not reused. 4 fns; largest: SmCone::CreateOffsetSurface, SmCone::IsNurbSurfaceCone, sm_GetEllipseTrimIntervals, SmCone::RebuildSTEPFromNURBParameters; cycle back-edges (call into later units; stub or co-port): surface.surface_p1(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
- 1,713
- 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: geom.axis2_placement green geom.extent1d green geom.extent2d green geom.geom_utility_p1 green geom.object green geom.tol green geom.vector3d green nurbs.b_spline_curve_p1 green nurbs.b_spline_surface_n_lib_p1 green nurbs.b_spline_surface_p1 green nurbs.b_spline_surface_p2 green surface.cone_p1 green surface.surf_of_revolution_p1 green surface.surf_of_revolution_p3 green surface.surface_p2 partial
Soft dependencies: curve.curve_p2 green curve.curve_p5 partial curve.ellipse_p1 green curve.ellipse_p2 green curve.line green geom.geom_utility_p2 green geom.vector2d green nurbs.b_spline_curve_p2 green
Dependents: surface.cone_p3 green
Soft dependents: blend.fillet_solver_p1 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmCone::CreateOffsetSurface | SmCone.cpp:533 | 680 | [Cone::create_offset_surface] |
SmCone::IsNurbSurfaceCone | SmCone.cpp:4306 | 383 | [Cone::is_nurb_surface_cone] |
SmCone::RebuildSTEPFromNURBParameters | SmCone.cpp:4699 | 258 | [Cone::rebuild_step_from_nurb_parameters] |
sm_IsConePointInTrimDomain | SmCone.cpp:5287 | 20 | is_cone_point_in_trim_domain (private) |
sm_GetEllipseTrimIntervals | SmCone.cpp:5315 | 346 | [ellipse_trim_intervals] |
Module file-header table (9 rows)
| Rust | Upstream |
|---|---|
[Cone::create_offset_surface] | SmCone::CreateOffsetSurface |
[Cone::is_nurb_surface_cone] | SmCone::IsNurbSurfaceCone |
[Cone::is_nurb_surface_cylinder] | SmCylinder::IsNurbSurfaceCylinder (SmCylinder.cpp) |
[Cone::rebuild_step_from_nurb_parameters] | SmCone::RebuildSTEPFromNURBParameters |
[ellipse_trim_intervals] | sm_GetEllipseTrimIntervals (file static) |
is_cone_point_in_trim_domain (private) | sm_IsConePointInTrimDomain (file static) |
[Cone::reparameterize] | SmSurfOfRevolution::Reparameterize (inherited; its polar converter rebuild calls the cone's iso curves) |
[Cone::trim_with_domain] | SmSurfOfRevolution::TrimWithDomain (inherited; its conversions and NURB rebuilds call the cone's virtuals) |
[Cone::base_mut] | GetGwNurbPointer (non-const, inherited) |
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