surface.volume_p2 green
- Layer
- 25
- Upstream lines
- 1,490
- Functions
- 18
- Rust module
surface::volume::p2
Status history
- todo 1,490 lines
- partial 1,490 lines
- green 1,490 lines
Source: crates/solidcore/src/surface/volume/p2.rs
Upstream: source/SMLib/src/SmVolume.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
main CI e33985411 (2026-10-23): PASS surface.volume_p2 cases=11220 passed=11220 failed=0 deferred=0. UPDATE after PR #437 (Kernel through Curve::knots, CrvInVolume GetKnots wired): difftest 11220 cases, all pass, 0 deferred (the 162 intersect.curve_class_p4 deferrals are gone); counts below are from before. difftest partial: 11220 cases (9220 fixtures incl. 5014 bend and 2290 unbend cases + 2000 generated), 10922 pass, 298 deferred (intersect.curve_class_p4 162: bend IsCurveInParamDomainSimple -> SmCurve::IsOnPositiveSideOfPlanes; surface.surface_p8 136: unbend IsCurveInParamDomainSimple -> SmCurve::HasPlaneCrossings), max_rel_err 0; 100k-seed run clean; --perturb SENSITIVE; after surface.bend_volume (PR #22): bend overrides (EvaluateBoundingBoxSimple, GlobalPointSolveSimple, LocalPointSolveSimple, ReadFromDB) dispatched, SmBendVolume::ReadFromDB reads the base data (removes the bend unit's deferred read_db case), shim builds default and component bends (kinds 6, 7); the bend and unbend ReadDb FFI guards reuse this unit's strict text grammar; after surface.unbend_volume (PR #20): its CO-PORTED SmVolume::EvaluatePoint / IsPointInParamDomain replaced by this unit's, unbend overrides and SmUnbendVolume::ReadFromDB wired (shim builds component unbends); wired UNPORTED(surface.volume_p2) in geom.transform, surface.twist_volume, curve.crv_in_volume, geom.tol, intersect.point_class (volume branch; not exercised) (geom.transform and surface.twist_volume promoted to green). 18 fns; largest: SmVolume::EvaluateBoundingBoxSimple, SmVolume::EvaluateBoundingBox, SmVolume::EvaluatePseudoBoxSimple, SmVolume::InvMapPoint; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit Re-run (PR #118, GlobalCurveIntersect wired; HasPlaneCrossings ignores its status): 11220 cases, 11058 pass, 162 deferred (intersect.curve_class_p4), 0 failed.
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
- 11,219
- Stored error outcomes
- 0
- Stored deferrals
- 0
- Stored harness rejections
- 0
- Known-failure entries
- 1
Metadata counts describe fields in the stored records; they are not passes or live failures.
Known failures (not blessed)
gen0106: tangency-labs/solidcraft#16502: the unbend pseudo box (unexpanded boxes of the 12 mapped box edges, through a twist) is not an enclosure: 200k samples per mapped edge reach 3.3e-4 below its interval 1 and 1.3e-6 above its interval 2, before and after the twist Duw sign fix, which moves the box by up to 1.07e-6
Source at f9704ee3b:
golden JSONL ·
known-failure list.
Dependencies
Depends on: geom.extent1d green geom.extent3d green geom.local_solve_nd green geom.pseudo_box green geom.solution_array green geom.vector3d green surface.volume_p1 green topology.database_io green
Soft dependencies: geom.transform green surface.b_spline_volume green surface.bend_volume green surface.twist_volume green surface.unbend_volume green
Dependents: surface.srf_in_volume green
Soft dependents: intersect.curve_class_p8 green intersect.point_class green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmVolume::IsPointInParamDomain | SmVolume.cpp:919 | 25 | [Volume::is_point_in_param_domain] |
SmVolume::IsLineInInSpaceDomain | SmVolume.cpp:1097 | 39 | [Volume::is_line_in_in_space_domain] |
SmVolume::IsBoxInParamDomain | SmVolume.cpp:1183 | 30 | [Volume::is_box_in_param_domain] |
SmVolume::IsPseudoBoxInInSpaceDomain | SmVolume.cpp:1388 | 53 | [Volume::is_pseudo_box_in_in_space_domain] |
SmVolume::EvaluateBoundingBox | SmVolume.cpp:1692 | 176 | [Volume::evaluate_bounding_box] |
SmVolume::MapPseudoBox | SmVolume.cpp:2058 | 103 | [Volume::map_pseudo_box] |
SmVolume::EvaluatePoint | SmVolume.cpp:3263 | 13 | [Volume::evaluate_point] |
SmVolume::Evaluate1stDerivatives | SmVolume.cpp:3283 | 31 | [Volume::evaluate_1st_derivatives] |
SmVolume::InvEvaluatePoint | SmVolume.cpp:3411 | 99 | [Volume::inv_evaluate_point] |
SmVolume::InvMapPoint | SmVolume.cpp:3907 | 132 | [Volume::inv_map_point] |
SmVolume::GlobalPointSolve | SmVolume.cpp:4512 | 95 | [Volume::global_point_solve] |
SmVolume::HasDiscontinuities | SmVolume.cpp:5220 | 54 | [Volume::has_discontinuities] |
SmVolume::EvaluateBoundingBoxSimple | SmVolume.cpp:5865 | 180 | [Volume::evaluate_bounding_box_simple] |
SmVolume::EvaluatePseudoBoxSimple | SmVolume.cpp:6057 | 159 | [Volume::evaluate_pseudo_box_simple] |
SmVolume::InvEvaluatePointSimple | SmVolume.cpp:6665 | 59 | [Volume::inv_evaluate_point_simple] |
SmVolume::GlobalPointSolveSimple | SmVolume.cpp:6788 | 45 | [Volume::global_point_solve_simple] |
SmVolume::LocalPointSolveSimple | SmVolume.cpp:6857 | 108 | [Volume::local_point_solve_simple] |
SmVolume::ReadFromDB | SmVolume.cpp:8104 | 89 | [Volume::read_from_db] |
Module file-header table (20 rows)
| Rust | Upstream |
|---|---|
[Volume::is_point_in_param_domain] | IsPointInParamDomain |
[Volume::is_line_in_in_space_domain] | IsLineInInSpaceDomain |
[Volume::is_box_in_param_domain] | IsBoxInParamDomain |
[Volume::is_pseudo_box_in_in_space_domain] | IsPseudoBoxInInSpaceDomain |
[Volume::evaluate_bounding_box] | EvaluateBoundingBox |
[Volume::map_pseudo_box] | MapPseudoBox |
[Volume::evaluate_point] | EvaluatePoint |
[Volume::evaluate_1st_derivatives] | Evaluate1stDerivatives |
[Volume::inv_evaluate_point] | InvEvaluatePoint |
[Volume::inv_map_point] | InvMapPoint |
[Volume::global_point_solve] | GlobalPointSolve |
[Volume::has_discontinuities] | HasDiscontinuities |
[Volume::evaluate_bounding_box_simple] | EvaluateBoundingBoxSimple (virtual) |
[Volume::evaluate_pseudo_box_simple] | EvaluatePseudoBoxSimple |
[Volume::inv_evaluate_point_simple] | InvEvaluatePointSimple |
[Volume::global_point_solve_simple] | GlobalPointSolveSimple (virtual) |
[Volume::local_point_solve_simple] | LocalPointSolveSimple (virtual) |
[Volume::read_from_db] | ReadFromDB (static, by type) |
[Volume::read_base_from_db] | ReadFromDB(SmVolume_TYPE, ..) (base data of an existing volume) |
[Volume::write_to_db] | WriteToDB of the volume kinds and SmVolume::WriteToDB (the base data) |
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