topology.face_p1 green
- Layer
- 44
- Upstream lines
- 2,230
- Functions
- 14
- Rust module
topology::face::p1
Status history
- todo 2,171 lines
- partial 2,171 lines
- green 2,171 lines
Source: crates/solidcore/src/topology/face/p1.rs
Upstream: source/SMLib/src/SmFace.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
SmFace::DeleteInnerLoop ported (topology::face::p1::delete_inner_loop / delete_inner_loop_with_kernel_callbacks, 2026-10-30): difftest op delete_inner_loop on hand-built plates (fixtures/topology.face_p1: 1-3 holes, a hole touching the outer loop, a vertex loop, two holes sharing an edge) and upstream files, each loop alone and in turn, with and without attributes: 70 built-in cases pass, 0 deferred. SplitAtSeam merges on the face's own mutable B-rep (classification &mut Brep slice 5, 2026-10-26): MoveSeam / SplitAtSeam take &mut Kernel; MergeIntervals runs merge_intervals_mut over BrepSeamObjects::for_merge with the seam curves rebuilt from the face's surface and the editing / DoingBoolean flags set as upstream, so cone.smb_1_f5_op9 and torus.smb_1_f5_op9 pass. difftest 2315 cases, 2278 pass, 0 failed, 0 deferred, 37 rejected (UB-137): green. MoveSeam with split over handles that name topology (2026-10-24): the runner's classification handle names the B-rep's entities, surface, edge and trim curves and the seam temporaries, so the post-move HasSeamProblem (BrepSeamObjects) runs as upstream's instead of failing InvalidInput; cone.smb_1_f5_op9 and torus.smb_1_f5_op9 leave known_mismatches and defer in the split (cone: surface.surface_p2 trimmed surface cache history; torus: the split's merges get the caller geometry, which cannot borrow the mutated B-rep, reported as topology.edge GetTolerance; with B-rep geometry it reaches intersect.curve_class_p6 MergeInterval imprinting) (plan/findings.md 'topology.face_p1 MoveSeam split cases over handles that name topology'). difftest 2315 cases, 2276 pass, 0 failed, 2 deferred, 37 rejected, 0 known mismatches. UB-137 crash-trap cases rejected, not deferred (2026-10-24): a seam call whose forked child crashes (-4) or that the shim cannot fork for (-3) is an input undefined in C++ (plan/upstream-issues.md UB-137, AGENTS.md 5.6): run_cpp returns Output::rejected naming UB-137 and the trap, so the Rust side does not run and nothing is compared; the runner no longer accepts C++-side deferrals (plan/findings.md 'topology.face_p1 UB-137 crash-trap cases are rejected, not deferred'). difftest 2315 cases, 2276 pass, 0 failed, 0 deferred, 37 rejected (the 36 vase_rev review reproducers and vase_rev.smb_1_f5_op9), 2 known mismatches (cone.smb_1_f5_op9, torus.smb_1_f5_op9): partial because of the known mismatches; was 2276 pass, 37 deferred (cpp-crash-guard:UB-137), 2 known mismatches. main CI e33985411 (2026-10-23): PARTIAL topology.face_p1 cases=2315 passed=2217 failed=0 deferred=98 blocked_by=cpp-crash-guard:UB-137(98). Cone TrimWithDomain (PR #670, 2026-10-23): the Cone arm of Surface::trim_with_domain runs the inherited SmSurfOfRevolution::TrimWithDomain with the cone ConvertUVFromNURBSToSTEP and iso curves (Cone::trim_with_domain); difftest 2312 cases, 2214 pass, 0 failed, 98 deferred (cpp-crash-guard:UB-137 98); the 12 surface.surface_p2 deferrals pass. PR #637 (2026-10-23): SetSurface's SmFace::Notify(SM_NO_CHANGE_GEOMETRY) wired (set_surface: empty face environment, null data; set_surface_notified: caller's environment with the surfaces' identities); Surface::split_at makes a missing extrusion NURB (GetOrCreateGwNurbPointer). difftest 2312 cases, 2202 pass, 0 failed, 110 deferred (cpp-crash-guard:UB-137 98, surface.surface_p2 12); all 209 topology.face_p3 deferrals pass. PARTIAL (PR #148): difftest 2312 cases (2260 built-in on the 15 pt_TestFiles B-reps (every op, UV trim curves as read and rebuilt; seam ops with 7 face-property variants on the periodic files) + 36 review crash reproducers + 16 generated), 807 pass bit-identical (max_rel_err 0), 0 failed, 0 both-errored (real passes 807), 1505 deferred (topology.face_p3 1100: SmFace::Notify of every edit, CreateUVTrimCurves; topology.face_p4 307: GetUpwardLoopuses/GetBrep/HasSeamProblem; cpp-crash-guard:UB-137 98: seam calls the shim keeps from upstream's SplitAtSeam crash, never comparable; the guard skips ~99.5% valid MoveSeam+split calls and must be replaced when face_p4 lands); --perturb SENSITIVE 807/807. NormalizedEvaluate/GetOrCreateUVTrimCurve wired to topology.edgeuse_p3 in PR #117 (288 deferred cases now pass). No passing case for UvDomain (with surface), Flip, SetSurface, LoopRoundTrip, RemoveUv, SwapUv, Shrink (all behind face_p3/face_p4); passes are early returns, error paths and guards. The shim normalises analytic geometry to B-splines, so MoveSeam's CopyAndAddAnalytics branch and SwapUV's conic mirrors are not compared. Seam ops take HasSeamProblem's classifications from the C++ shim (Probe op); MergeIntervals wired to intersect.curve_class_p5 (#150); IsCrossedByEdge/HasNearMisses wired to intersect.curve_class_p7 (#65). Back-edges wired: trimming_tools (FlipFaceOrientation, SplitAtSeam), edge, face_p2 points_in_face, mass.integrator (CreateOrientedTrimBoundary); not wirable yet: surface.surface_p3 RemoveUVTrimCurves of owner face (no B-rep there), proto_topology_p2 (ProtoBrep handle). Was: 14 fns; largest: SmFace::MoveSeam, SmFace::SplitAtSeam, SmFace::CreateOrientedTrimBoundary, SmFace::CalculateUVDomainFromUVTrimCurves; cycle back-edges (call into later units; stub or co-port): heal.gap(1), topology.brep_p2(1); unit-SCC #22 (220 units); 317 upstream test entry points reach this unit CalculateUVDomainFromUVTrimCurves wired into boolean.topology_intersector_p1 (PR #146). [topology.face_p3 wired (PR #139): 2312 cases, 990 pass, 0 failed, 1322 deferred (topology.face_p4 1044, topology.face_p3 180 at the justified SetSurface CHANGE_GEOMETRY Notify stub, cpp-crash-guard UB-137 98)] UPDATE after topology.brep_p2 (PR #149): the UNPORTED(topology.brep_p2) SmBrep::ReplaceSurface stub of MoveSeam is wired to topology::brep::p2::replace_surface as SmFace.cpp:17602 (ReplaceSurface(this, pJoinedSurface, FALSE, NULL, FALSE): OldSurface::Delete, no modified list, no UV trim curves); still unreached (the preceding SmFace::GetBrep is topology.face_p4): re-run 2312 cases, 519 pass, 0 fail, 1793 deferred, unchanged. Re-run after merging #145 5b1b28ae (main through e1ae2640) into #149: 2312 cases, 807 pass, 0 fail, 1505 deferred (topology.face_p3 1100, topology.face_p4 307, cpp-crash-guard:UB-137 98); ReplaceSurface still unreached. Owner zone-tol cache (surface/owner-zone-tol): 2312 cases, 1967 pass, 0 fail, 345 deferred. UPDATE (PR #467, #294 row 13): the shim's UB-137 guard is a fork crash trap (fp1_trapped; skipped as before where the shim cannot fork). Rust runs every case; the C++ side defers the trapped crashes. Merged with main (stacked PR, 2026-10-23): 2315 cases, 2276 pass, 0 failed, 37 deferred (cpp-crash-guard:UB-137 37: the 36 vase_rev review reproducers and vase_rev.smb_1_f5_op9), 2 known mismatches (cone.smb_1_f5_op9, torus.smb_1_f5_op9: MoveSeam with split, the runner's null handles cannot run the post-move HasSeamProblem; plan/findings.md 'topology.face_p1 fork trap merged with main'); was 2217 pass, 98 deferred (all UB-137).
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,569
- 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.extent3d green geom.object green geom.periodic_extent1d green geom.tol green geom.vector2d green geom.vector3d green intersect.curve_class_p1 green nurbs.b_spline_curve_p1 green surface.surface_p1 green surface.surface_p2 partial topology.edgeuse_p1 green topology.face_p2 partial topology.face_p3 green topology.face_p4 green topology.loopuse green topology.vertexuse green
Soft dependencies: curve.line green geom.axis2_placement green geom.context green geom.geom_utility_p1 green intersect.curve_class_p5 green intersect.curve_class_p7 green intersect.point_class green nurbs.b_spline_curve_p2 green nurbs.b_spline_surface_n_lib_p1 green nurbs.b_spline_surface_p2 green surface.surface_p5 green surface.surface_p7 green topology.edge green topology.edgeuse_p3 green topology.proto_topology_p1 green topology.trimming_tools green topology.vertex green
Dependents: blend.feature_executive blocked mass.integrator partial topology.brep_mirror green topology.brep_p3 partial topology.brep_p4 green topology.brep_p9 green topology.brep_validation green
Soft dependents: blend.fillet_executive_p1 green blend.fillet_executive_p3 partial blend.fillet_geom_p1 green blend.hcr green boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green heal.heal_data_p3 green heal.stitch_p1 green offset.offset_executive_p2 partial topology.brep_p1 green topology.brep_p2 green topology.brep_p6 green topology.proto_topology_p2 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmFace::SmFace | SmFace.cpp:69 | 12 | [crate::topology::Face::new] |
SmFace::~SmFace | SmFace.cpp:87 | 16 | [destroy] |
SmFace::CalculateUVDomainFromUVTrimCurves | SmFace.cpp:1275 | 143 | [calculate_uv_domain_from_uv_trim_curves], [calculate_uv_domain_from_uv_trim_curves_into], [UvDomainFromTrim] |
SmFace::CreateOrientedTrimBoundary | SmFace.cpp:7333 | 232 | [create_oriented_trim_boundary], [OrientedTrimBoundary] |
SmFace::FindIfRectangularTrim | SmFace.cpp:9408 | 121 | [find_if_rectangular_trim], [RectangularTrim] |
SmFace::FlipFaceOrientation | SmFace.cpp:10171 | 28 | [flip_face_orientation] |
SmFace::SetSurface | SmFace.cpp:10206 | 34 | [set_surface], [set_surface_notified] |
SmFace::InsertLoop | SmFace.cpp:11411 | 13 | [insert_loop] |
SmFace::RemoveLoop | SmFace.cpp:12076 | 21 | [remove_loop] |
SmFace::RemoveUVTrimCurves | SmFace.cpp:13053 | 44 | [remove_uv_trim_curves] |
SmFace::SwapUV | SmFace.cpp:13983 | 113 | [swap_uv] |
SmFace::MoveSeam | SmFace.cpp:17022 | 896 | [move_seam], [move_seam_notified], [MoveSeamOptions], [MoveSeamResult], [SeamProblem] |
SmFace::SplitAtSeam | SmFace.cpp:18049 | 439 | [split_at_seam], [SeamSplit] |
SmFace::ShrinkGeometry | SmFace.cpp:18505 | 118 | [shrink_geometry], [shrink_geometry_with] |
Module file-header table (19 rows)
| Rust | Upstream |
|---|---|
[crate::topology::Face::new] | SmFace::SmFace |
[destroy] | SmFace::~SmFace |
[calculate_uv_domain_from_uv_trim_curves], [calculate_uv_domain_from_uv_trim_curves_into], [UvDomainFromTrim] | SmFace::CalculateUVDomainFromUVTrimCurves |
[create_oriented_trim_boundary], [OrientedTrimBoundary] | SmFace::CreateOrientedTrimBoundary |
[find_if_rectangular_trim], [RectangularTrim] | SmFace::FindIfRectangularTrim |
[trim_boundary_rectangle] | (none: FindIfRectangularTrim without its edge count) |
[flip_face_orientation] | SmFace::FlipFaceOrientation |
[turn_over] | (none: [swap_uv] on a face of one shell) |
[set_surface], [set_surface_notified] | SmFace::SetSurface |
[insert_loop] | SmFace::InsertLoop |
[remove_loop] | SmFace::RemoveLoop |
[remove_uv_trim_curves] | SmFace::RemoveUVTrimCurves |
[delete_inner_loop], [delete_inner_loop_with_kernel_callbacks] | SmFace::DeleteInnerLoop |
[swap_uv] | SmFace::SwapUV |
[move_seam], [move_seam_notified], [MoveSeamOptions], [MoveSeamResult], [SeamProblem] | SmFace::MoveSeam |
[split_at_seam], [SeamSplit] | SmFace::SplitAtSeam |
[complete_merged_face_seam] | (the fork's WR-599: HasSeamProblem, then SplitAtSeam, after a face merge) |
[shrink_geometry], [shrink_geometry_with] | SmFace::ShrinkGeometry |
[FixSeamPlanType] | SmFixSeamPlanType (SmTypes.h) |
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