solidcore

Units / topology

topology.face_p4 green

Layer
42
Upstream lines
2,273
Functions
19
Rust module
topology::face::p4

Status history

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

Source: crates/solidcore/src/topology/face/p4.rs

Upstream: source/SMLib/src/SmFace.cpp

Port-plan notes

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

#1419 WP2 (PR #1472): sm_GetLoopSampleUVPoint and sm_AssertTestFace37 -> topology::face::p4::assert_test_face37; difftest 5930 cases, 5930 passed, 0 deferred (424 new face37 cases incl. holed-face files). GREEN (port: topology.face_p4): difftest 5506 cases (810 zone-tolerance line cases from the review of PR #239, plus 4680 systematic over the 15 pt_TestFiles B-reps with and without rebuilt UV trim curves + 16 generated), 5506 pass bit-identical, 0 failed, 0 deferred, max_rel_err 0. Wired FindVertexSector on CurveClassification::classify_face_interval_mut via Mutable<'g, G>::find_vertex_sector. main CI e33985411 (2026-10-23): PARTIAL topology.face_p4 cases=5506 passed=5426 failed=0 deferred=80 blocked_by=topology.edge(80). CO-PORTED in topology.topology_traverser (PR #113): SmFace::GetEdges (default arguments) -> topology::topology_traverser::face_edges; 10 fns; largest: SmFace::HasSeamProblem, SmFace::FindVertexSector, SmFace::GlobalLineIntersect, SmFace::IsConnectedTo; cycle back-edges (call into later units; stub or co-port): heal.face_props(2), query.face_p2(2), query.face_p3(2); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit; CO-PORTED in query.face_p2 (PR #104): SmFace::GetVertices(SmTArray&, ULONG*, SmBoolean, const SmTArray<SmLoop*>) without attribute filter -> solidcore::query::face::p2::face_vertices PR #163: existing SmFace::GetEdges(defaults) co-port is public topology::topology_traverser::face_edges and reused by boolean.merge_p1; preserve repeats between loops. PARTIAL (port: topology.face_p4): difftest 5506 cases (810 zone-tolerance line cases from the review of PR #239, plus 4680 systematic over the 15 pt_TestFiles B-reps with and without rebuilt UV trim curves + 16 generated), 3957 pass bit-identical, 0 failed, 1549 deferred (geom.tol 1118: SmTol::GetZoneTol3d(const SmObject) of the face-owned surface in the surface cache's subdivision test (the stub sits in surface.surface_cache_p2's code; main tags it geom.tol), deferred since #147's cache copy keeps the surface's owner (4136 passed before, matching the system tolerance by coincidence); topology.face_p2 292: SmFace::GetTolerance of a face-owned surface in IsClosed / the surface line intersection; intersect.curve_class_p2 50: periodic HasSeamProblem, past part 5's vertex/face gap (the runner's classification objects answer it from a copy of the B-rep) and GetLoopCrossings (intersect.curve_class_p4, wired), at curve_class_p4's own curve_class_p2 stubs; curve.crv_on_surf 80: inside query.face_p3's SectorClassifyCurveOn (sm_FaceClassifyUVLine and SectorClassifyCurveOn are wired since #132 merged; ClassifyProblem is query.face_p1's co-port, re-exported); intersect.surface_drop_lib_p3 9: SmSurface::DropCurve), max_rel_err 0, perturb SENSITIVE. Wired: GetEdges (brep_cache, trimming_tools, face_p1, heal_data_p3, geom.tol, query.face_p2; topology_traverser::face_edges and query::face::p2::face_vertices now delegate to face::p4), GetVertices (heal_data_p3), GetBrep / GetVertices / GetEdges (heal.stitch_p1, 2 cases now pass), GetBrep / GetEdges (topology.brep_p7) and GetVertices / GetEdges (topology.brep_p10, both latent: no case reaches them yet), GetUpwardLoopuses / GetUpwardEdgeuses / GetUpwardVertexuses / GetEdges(outer loop) / GetBrep (topology.face_p3: 823 pass, 654 without), GetEdges / GetVertices (topology.brep_p5) and FindVertexSector (topology.brep_p9, both latent), GetBrep / GetUpwardLoopuses / GetUpwardVertexuses (face_p1), GlobalLineIntersect (topology_traverser::is_inner_shell, on a B-rep copy). Kept UNPORTED(topology.face_p4) markers where the caller has no B-rep or classification-object mapper (generic handles): brep_p5 (FindVertexSector: its FaceEdgeBackend has no kernel), boolean.topology_intersector_p1 (FindVertexSector), point_class (GetBrep, IsConnectedTo), curve_class_p7 (FindVertexSector), trim_srf_cache / surface_p7 / boolean.topology_intersector_p1 (GetBrep, GetVertices, GetEdges), proto_topology_p1 (GetEdges of a ProtoTopology face), and HasSeamProblem in face_p1 (MoveSeam/SplitAtSeam), trimming_tools and heal.face_props::set_props_stage2 (callers with a mapper use FaceProps::set_props_stage2_with). upstream-issues UB-180, WR-176 (HasSeamProblem returns SM_SUCCESS as TRUE), WR-177. Owner zone-tol cache (surface/owner-zone-tol): 5506 cases, 4222 pass, 0 fail, 1284 deferred. UPDATE (wire/brep-p5-find-vertex-sector): topology.brep_p5 MakeEdgeInFace calls find_vertex_sector (and topology.brep_p9 MakeEdgeInFaceWithVU), so partial sphere/cylinder/cone/torus now run past FindVertexSector and defer at topology.brep_p4 SmBrep::DeleteEdge. The generic-handle stubs (intersect.curve_class_p7, boolean.topology_intersector_p1) remain. GlobalLineIntersect over the owning face's trimmed cache (surface/face-line-intersect): 5506 cases, 5141 pass, 0 fail, 365 deferred (the face_p4 shim keeps exactly exported analytic surfaces; analytic polar boxes; sm_IsPointValid via the trimmed cache's PointTest; see findings). [PR #1478 (#1419 WP4a): SmFace::HasCoincidentVertices, HasCoincidentEdges, sm_FindCoincidentVerts, sm_AssertTestFace32/33/38, sm_DoLoopsIntersectInUV -> topology::face::assert_tests (unit tests there); compared per face by topology.assert_valid shim op 2 (202 cases, fixtures/topology.assert_valid/level2_tests.json). Unit difftest unchanged: PASS topology.face_p4 cases=5506 passed=5506 failed=0 deferred=0]

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
5,930
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.crv_on_surf green 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 intersect.curve_class_p1 green intersect.curve_class_p7 green intersect.point_class green topology.edgeuse_p1 green topology.face_p2 partial topology.loopuse green topology.topology green topology.vertex green topology.vertexuse green

Soft dependencies: geom.context green intersect.curve_class_p2 green intersect.curve_class_p4 green surface.surface_p1 green surface.surface_p2 partial surface.surface_p3 green surface.surface_p4 green surface.surface_p5 green surface.surface_p7 green surface.surface_p8 green topology.edge green topology.edgeuse_p3 green topology.shell green

Dependents: blend.feature_executive blocked blend.fillet_removal green boolean.merge_p2 green boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green heal.stitch_p1 green query.face_p1 green query.face_p2 green query.face_p3 green sweep.topology_sweep green topology.brep_constructor green topology.brep_p5 green topology.brep_planar_section partial topology.brep_validation green topology.face_p1 green topology.face_p3 green

Soft dependents: blend.fillet_geom_p4 partial blend.hcr green boolean.merge_p1 green boolean.merge_p4 green boolean.topology_intersector_p3 green heal.face_props green heal.heal_data_p3 green offset.offset_executive_p1 partial offset.offset_geometry_creation partial primitive.primitive_creation_p1 green primitive.primitive_creation_p2 green primitive.primitive_creation_p3 green query.api_queries green topology.brep_cache green topology.brep_p10 green topology.brep_p2 green topology.brep_p3 partial topology.brep_p4 green topology.brep_p7 green topology.brep_p9 green topology.topology_traverser green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmFace::FindVertexSectorSmFace.cpp:9549611[find_vertex_sector], [VertexSector], [FindVertexSectorArgs]
SmFace::GetBrepSmFace.cpp:1030613[brep]
SmFace::GetEdgesSmFace.cpp:1036834[edges]
SmFace::GetVerticesSmFace.cpp:1040837[vertices]
SmFace::GetUpwardLoopusesSmFace.cpp:1060421[upward_loopuses]
SmFace::GetUpwardVertexusesSmFace.cpp:1063132[upward_vertexuses]
SmFace::GetUpwardEdgeusesSmFace.cpp:1066933[upward_edgeuses]
SmFace::GlobalLineIntersectSmFace.cpp:11833153[global_line_intersect], [global_line_intersect_held]
SmFace::IsConnectedToSmFace.cpp:1560651[is_connected_to]
SmFace::HasSeamProblemSmFace.cpp:15733865[has_seam_problem], [SeamCheck], [HasSeamProblemOptions]
SmFace::HasCoincidentVerticesSmFace.cpp:1664683
sm_FindCoincidentVertsSmFace.cpp:1675640
SmFace::HasCoincidentEdgesSmFace.cpp:16807103
sm_DoLoopsIntersectInUVSmFace.cpp:2004651
sm_AssertTestFace38SmFace.cpp:2012836
sm_GetLoopSampleUVPointSmFace.cpp:2017525loop_sample_uv_point (private)
sm_AssertTestFace37SmFace.cpp:2022655[assert_test_face37]
sm_AssertTestFace33SmFace.cpp:2034116
sm_AssertTestFace32SmFace.cpp:2050114
Module file-header table (15 rows)
RustUpstream
[brep]SmFace::GetBrep
[edges]SmFace::GetEdges
[vertices]SmFace::GetVertices
[upward_loopuses]SmFace::GetUpwardLoopuses
[has_loopuses](solidcore) GetUpwardLoopuses not empty
[upward_vertexuses]SmFace::GetUpwardVertexuses
[upward_edgeuses]SmFace::GetUpwardEdgeuses
[is_connected_to]SmFace::IsConnectedTo
[global_line_intersect], [global_line_intersect_held]SmFace::GlobalLineIntersect
[find_vertex_sector], [VertexSector], [FindVertexSectorArgs]SmFace::FindVertexSector
[has_seam_problem], [SeamCheck], [HasSeamProblemOptions]SmFace::HasSeamProblem
[BrepSeamObjects], merge_seam_intervals (crate)the SmObjects of HasSeamProblem / SplitAtSeam's MergeIntervals
[ClassifyProblem]SmClassifyProblem (SmCurveClass.h)
[assert_test_face37]sm_AssertTestFace37 (file static)
loop_sample_uv_point (private)sm_GetLoopSampleUVPoint (file static)

Upstream tests reaching this unit

prog_test:my_test_extent3d, prog_test:my_test_vector2d, 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