solidcore

Units / query

query.face_p1 green

Layer
45
Upstream lines
465
Functions
6
Rust module
query::face::p1

Status history

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

Source: crates/solidcore/src/query/face/p1.rs

Upstream: source/SMLib/src/SmFace.cpp, source/SMLib/src/SmRegion.cpp, source/SMLib/src/SmShell.cpp, source/SM_API/src/SmApiCurves.cpp

Port-plan notes

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

EXACT SmSurfOfRevolution EXPORT (shared graph exports carry revolution faces exactly, 2026-10-20): difftest 2224 cases, 1598 pass, 0 failed, 626 deferred (topology.face_p2 400, surface.surf_of_extrusion_p2 59, surface.surface_cache_p2 57, surface.cone_p1 41, intersect.surface_drop_lib_p3 36, curve.crv_on_surf 19, surface.sphere 12, topology.face_p3 2), max_rel_err 0; 1570 -> 1598 pass; harness:analytic-geometry-export 31 -> 0 (28 pass, 3 defer on topology.face_p2). Earlier: PARTIAL (PR #238, takeover of #105 by @0xlillith, whose SmApiEvaluateCurve port and fixtures it builds on): difftest 2224 cases (1024 fixture + 1200 generated), 1535 pass bit-identical, 0 failed, 689 deferred (topology.face_p2 373 + surface.surface_cache_p2 57: every SmFace::Point3DClassify case reaches the face-owned-surface point-solve stubs, surface::surface::p1::zone_tol_3d SmFace::GetTolerance and, for the 57 (labelled query.face_p2 before main's #269), surface::surface_cache::p2's SmTol::GetZoneTol3d of the face ahead of surface::surface::p4 trim containment, which cannot be wired while a Surface cannot reach its face's Brep; query.face_p3 97: SmFace::SectorClassifyCurveOn and CalculateTightBoundingBox; curve.crv_on_surf 19: SmCrvOnSurf over a non-B-spline face surface; surface.cone_p1 41, surface.surf_of_extrusion_p2 59, surface.sphere 12, harness:analytic-geometry-export 31: geometry the edge-use import holds only as B-splines; labelled topology.brep_p7 before that unit landed), max_rel_err 0, no absolute floors, --perturb SENSITIVE 1535/1535. Compared: SmApiEvaluateCurve (1015), face boxes (91), shell boxes (255), region boxes (152), EdgeCurveOnClassify null-edge/off-face (22). The runner patches each face's m_pFU into the topology.edgeuse_p1 import (shim FaceFu op) and owns face surfaces by their faces as upstream does (see plan/findings.md). Wired UNPORTED(query.face_p1): topology::shell degeneracy boxes (co-port replaced), topology::brep_cache, mass::integrator, query::api_queries, blend::fillet_geom::p1 (sm_ClassifyFacePoint calls SmFace::Point3DClassify). Not wired, marked DISPATCH GAP instead of UNPORTED (opaque handles without a Brep): intersect::curve_class::p7 (Point3DClassify, EdgeCurveOnClassify), intersect::topology_solver::p1, boolean::topology_intersector::p1, boolean::topology_intersector::p2, geom::object; (holding &Brep where Point3DClassify takes &mut Brep): topology::brep::p9, topology::face::p3; geom::tol GetScaledZero(SmRegion/SmShell) is unported. CO-PORTED: SmClassifyProblem -> query::face::p1::ClassifyProblem (same discriminants as the copies in PR #132 query::face::p3 and PR #239 topology::face::p4; whichever lands later keeps one and re-exports it). 6 fns; largest: SmFace::Point3DClassify, SmFace::EdgeCurveOnClassify, SmFace::CalculateBoundingBox, SmShell::CalculateBoundingBox; entry points: SmApiEvaluateCurve; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; CO-PORTED in topology.shell (PR #80, finished in PR #154): default-tight SmShell::CalculateBoundingBox vertex, wire (edge boxes of GetWireEdges, through query::edge::calculate_bounding_box), face-use (SmFace::CalculateBoundingBox: wired to query::face::p1 in PR #238) and unknown branches and SmRegion::CalculateBoundingBox aggregation -> topology::shell::{shell_bounds_for_degeneracy,region_bounds_for_degeneracy}; native status retained beside partial bounds; only the face call remains an explicit stub Re-run after query.face_p3 (PR #132) wired SectorClassifyCurveOn and CalculateTightBoundingBox (2026-10-20): 2224 cases, 1570 pass, 0 failed, 654 deferred, max_rel_err 0. Main since: PARTIAL (PR #238, takeover of #105 by @0xlillith, whose SmApiEvaluateCurve port and fixtures it builds on): difftest 2224 cases (1024 fixture + 1200 generated), 1535 pass bit-identical, 0 failed, 689 deferred (topology.face_p2 373 + surface.surface_cache_p2 57: every SmFace::Point3DClassify case reaches the face-owned-surface point-solve stubs, surface::surface::p1::zone_tol_3d SmFace::GetTolerance and, for the 57 (labelled query.face_p2 before main's #269), surface::surface_cache::p2's SmTol::GetZoneTol3d of the face ahead of surface::surface::p4 trim containment, which cannot be wired while a Surface cannot reach its face's Brep; query.face_p3 97: SmFace::SectorClassifyCurveOn and CalculateTightBoundingBox; curve.crv_on_surf 19: SmCrvOnSurf over a non-B-spline face surface; surface.cone_p1 41, surface.surf_of_extrusion_p2 59, surface.sphere 12, harness:analytic-geometry-export 31: geometry the edge-use import holds only as B-splines; labelled topology.brep_p7 before that unit landed), max_rel_err 0, no absolute floors, --perturb SENSITIVE 1535/1535. Compared: SmApiEvaluateCurve (1015), face boxes (91), shell boxes (255), region boxes (152), EdgeCurveOnClassify null-edge/off-face (22). The runner patches each face's m_pFU into the topology.edgeuse_p1 import (shim FaceFu op) and owns face surfaces by their faces as upstream does (see plan/findings.md). Wired UNPORTED(query.face_p1): topology::shell degeneracy boxes (co-port replaced), topology::brep_cache, mass::integrator, query::api_queries, blend::fillet_geom::p1 (sm_ClassifyFacePoint calls SmFace::Point3DClassify). Not wired, marked DISPATCH GAP instead of UNPORTED (opaque handles without a Brep): intersect::curve_class::p7 (Point3DClassify, EdgeCurveOnClassify), intersect::topology_solver::p1, boolean::topology_intersector::p1, boolean::topology_intersector::p2, geom::object; (holding &Brep where Point3DClassify takes &mut Brep): topology::brep::p9, topology::face::p3; geom::tol GetScaledZero(SmRegion/SmShell) is unported. CO-PORTED: SmClassifyProblem -> query::face::p1::ClassifyProblem (same discriminants as the copies in PR #132 query::face::p3 and PR #239 topology::face::p4; whichever lands later keeps one and re-exports it). 6 fns; largest: SmFace::Point3DClassify, SmFace::EdgeCurveOnClassify, SmFace::CalculateBoundingBox, SmShell::CalculateBoundingBox; entry points: SmApiEvaluateCurve; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; CO-PORTED in topology.shell (PR #80, finished in PR #154): default-tight SmShell::CalculateBoundingBox vertex, wire (edge boxes of GetWireEdges, through query::edge::calculate_bounding_box), face-use (SmFace::CalculateBoundingBox: wired to query::face::p1 in PR #238) and unknown branches and SmRegion::CalculateBoundingBox aggregation -> topology::shell::{shell_bounds_for_degeneracy,region_bounds_for_degeneracy}; native status retained beside partial bounds; only the face call remains an explicit stub Re-run after query.face_p3 (PR #132) wired SectorClassifyCurveOn and CalculateTightBoundingBox (2026-10-20): 2224 cases, 1570 pass, 0 failed, 654 deferred, max_rel_err 0. Owner zone-tol cache (surface/owner-zone-tol): 2224 cases, 1580 pass, 0 fail, 644 deferred. Point3DClassify now builds the trimmed surface cache first (smsurf_GetSurfaceCache, SmFace.cpp:12792) and hands it to PointClassify (gen0160: C++ FACE from an inside leaf, confirmed by a C++ probe); its face walk is unported, so all 289 Point3DClassify cases on face-owned surfaces defer (topology.face_p2 'SmFace handle of a surface's face'); plan/findings.md. GREEN (2026-10-23, PR #600): difftest PASS query.face_p1 cases=2266 passed=2266 failed=0 deferred=0 max_rel_err=0e0 with_values=2266 no_values=0 vacuous=0; the former 626 query.face_p1 deferrals (last recorded count, at 2224 cases; the unit now has 2266 cases) no longer occur on main 38b0745b3; local rerun and CI run 39935703236 agree.

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
2,266
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.extent3d green geom.object green geom.solution_array green geom.tol green geom.vector3d green intersect.point_class green query.face_p2 green query.face_p3 green surface.surface_p2 partial topology.edge green topology.edgeuse_p1 green topology.face_p2 partial topology.face_p4 green topology.shell green

Soft dependencies: curve.crv_on_surf green curve.curve_p6 green geom.extent1d green geom.extent2d green geom.vector2d green query.edge green surface.surface_p1 green surface.surface_p4 green surface.surface_p5 green topology.vertex green

Dependents: blend.feature_executive blocked topology.brep_validation green

Soft dependents: blend.fillet_geom_p1 green blend.fillet_solver_p5 green boolean.merge_p2 green boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green boolean.topology_intersector_p3 green primitive.primitive_creation_p3 green query.api_queries green query.brep green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmFace::CalculateBoundingBoxSmFace.cpp:84886[calculate_bounding_box]
SmFace::EdgeCurveOnClassifySmFace.cpp:9137123[edge_curve_on_classify], [EdgeCurveOnOptions], [CurveOnClassification]
SmFace::Point3DClassifySmFace.cpp:12897147[point_3d_classify], [Point3dClassifyOptions]
SmRegion::CalculateBoundingBoxSmRegion.cpp:4326[calculate_region_bounding_box_into], [calculate_region_bounding_box]
SmShell::CalculateBoundingBoxSmShell.cpp:6651[calculate_shell_bounding_box_into], [calculate_shell_bounding_box]
SmApiEvaluateCurveSmApiCurves.cpp:104332[evaluate_curve]
Module file-header table (7 rows)
RustUpstream
[evaluate_curve]SmApiEvaluateCurve
[calculate_bounding_box]SmFace::CalculateBoundingBox
[calculate_shell_bounding_box_into], [calculate_shell_bounding_box]SmShell::CalculateBoundingBox
[calculate_region_bounding_box_into], [calculate_region_bounding_box]SmRegion::CalculateBoundingBox
[point_3d_classify], [Point3dClassifyOptions]SmFace::Point3DClassify
[edge_curve_on_classify], [EdgeCurveOnOptions], [CurveOnClassification]SmFace::EdgeCurveOnClassify
[ClassifyProblem]SmClassifyProblem (CO-PORTED; re-exported by query::face::p3)

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