topology.brep_p8 green
- Layer
- 40
- Upstream lines
- 1,768
- Functions
- 7
- Rust module
topology::brep::p8
Status history
- todo 1,768 lines
- partial 1,768 lines
- green 1,768 lines
Source: crates/solidcore/src/topology/brep/p8.rs
Upstream: source/SMLib/src/SmBrep.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
GREEN (PR #770): cases_total = 339, cases_passed = 339, cases_failed = 0, cases_deferred = 0, max_rel_err = 0e0. All 339 difftest cases pass with 0 deferred against upstream C++. Previously: main CI e33985411 (2026-10-23): PARTIAL topology.brep_p8 cases=339 passed=338 failed=0 deferred=1 blocked_by=topology.face_p2(1). PARTIAL (PR #72, builds on #204 topology.brep_p3, merged in; see plan/findings.md): all 7 fns ported in topology::brep::p8 (CreateFaceInRegionFromSurface's dead new-algorithm branch omitted). difftest 339 cases (323 built-in: in_region/from_surface on planes and B-spline patches incl. tiny/huge/creased/closed/pinched, natural/sub/outside/sliver domains; faces_from_surface at 6 continuities; planar_face(s) with squares, holes, two outer loops, 3-level nesting, arcs, shuffled/cw/open/non-planar/empty/degenerate-line/gap sets at 2 tolerances; faces_with_curves; make_faces 3D/UV on smooth and creased surfaces with holes and loop points; 16 generated), 41 pass, 0 failed, 298 deferred (topology.face_p3 298: SmFace::SetTolerance, the stop point of the unported remainder of MakeFaceTopology, owned by topology.brep_p6; every face construction reaches it), max_rel_err 0, with_values 41 no_values 0; outputs are the status plus the whole B-rep after the op (graph + geometry); --perturb SENSITIVE 41/41; --fuzz 2000 FUZZ-PASS (rejected 474, malformed 822, ran 704, 0 differs/crashes/panics/timeouts). Wired back-edges: topology.trimming_tools, heal.heal_data_p3, boolean.merge_p3, offset.offset_executive_p1 (CreateFaceFromSurface), primitive.api_primitives (pyramid); also the stale curve.curve_p2/curve_p6 stubs of geom.tools. Remaining UNPORTED(topology.brep_p8): offset_executive CreatePlanarFaceWith3DCurves (continuation needs Boolean2D, primitive.primitive_creation_p1) and the runner-side face constructions of mass.integrator / surface.trim_srf_cache. Callees still stubbed: DeleteEdge/DeleteVertex (topology.brep_p4). cycle back-edges (call into later units; stub or co-port): topology.trimming_tools(13), topology.brep_p1(11), topology.brep_p7(3), topology.brep_p3(2), topology.brep_p4(2), topology.brep_p5(2), topology.brep_p9(2), query.face_p1(1), topology.brep_p6(1), topology.face_p3(1); unit-SCC #22 (220 units); 186 upstream test entry points reach this unit UPDATE 2026-10-23 (claude/face-p1-hooks): SmFace::Point3DClassify wired (curve_class p7 ClassifyFaceInterval, topology_solver p1, topology.brep_p9 loop transfer): the 2 query.face_p1 deferrals now pass; cases=339 passed=338 failed=0 deferred=1 (curve.curve_p2 1), max_rel_err 0 (Mac Studio run; Linux CI is the gate).
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
- 355
- 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.extent1d green geom.extent2d green geom.object green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green surface.surface_p2 partial topology.loopuse green
Soft dependencies: curve.curve_p4 green curve.curve_p8 green curve.line green intersect.point_class green nurbs.b_spline_curve_p1 green surface.surface_p5 green surface.surface_p6 green surface.surface_p7 green surface.surface_p8 green topology.face_p2 partial topology.vertex green
Dependents: blend.feature_executive blocked primitive.api_trim_ops partial primitive.primitive_creation_p1 green primitive.primitive_creation_p2 green primitive.primitive_creation_p3 green
Soft dependents: blend.fillet_executive_p1 green boolean.merge_p3 green heal.heal_data_p3 green offset.offset_executive_p1 partial offset.offset_executive_p2 partial primitive.api_primitives green topology.trimming_tools green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmBrep::CreateFacesWithCurves | SmBrep.cpp:3439 | 261 | [create_faces_with_curves] |
SmBrep::CreatePlanarFacesWith3DCurves | SmBrep.cpp:3733 | 53 | [create_planar_faces_with_3d_curves], [create_planar_faces_with_3d_curves_and_edges] |
SmBrep::CreatePlanarFaceWith3DCurves | SmBrep.cpp:3834 | 104 | [create_planar_face_with_3d_curves] |
SmBrep::CreateFaceInRegionFromSurface | SmBrep.cpp:4236 | 375 | [create_face_in_region_from_surface] |
SmBrep::CreateFaceFromSurface | SmBrep.cpp:4618 | 14 | [create_face_from_surface] |
SmBrep::CreateFacesFromSurface | SmBrep.cpp:4762 | 148 | [create_faces_from_surface] |
SmBrep::MakeFacesWithCurves | SmBrep.cpp:17148 | 813 | [make_faces_with_curves] |
Module file-header table (9 rows)
| Rust | Upstream |
|---|---|
[create_faces_with_curves] | SmBrep::CreateFacesWithCurves |
[create_planar_faces_with_3d_curves], [create_planar_faces_with_3d_curves_and_edges] | SmBrep::CreatePlanarFacesWith3DCurves |
[create_planar_face_with_3d_curves] | SmBrep::CreatePlanarFaceWith3DCurves |
[create_face_in_region_from_surface] | SmBrep::CreateFaceInRegionFromSurface |
[create_face_from_surface] | SmBrep::CreateFaceFromSurface |
[create_faces_from_surface] | SmBrep::CreateFacesFromSurface |
[make_faces_with_curves] | SmBrep::MakeFacesWithCurves |
[FaceBuildEnv] | (the notification and mark state the Euler operators take) |
[NewFaces], [FaceInRegion] | (the out-parameters) |
Upstream tests reaching this unit
SM_API_test:TestSmCreatePlanarCircle, SM_API_test:TestIntersectionOutputStatus, SM_API_test:TestSmCreatePlane, SM_API_test:TestSmCreateSwungPrimitive, SM_API_test:TestSmCreatePlanarFaces, prog_test:my_test_tracks_nested_geometry_and_resets