topology.proto_topology_p3 green
- Layer
- 49
- Upstream lines
- 1,581
- Functions
- 7
- Rust module
topology::proto_topology::p3
Status history
- todo 1,577 lines
- partial 1,577 lines
- green 1,577 lines
Source: crates/solidcore/src/topology/proto_topology/p3.rs
Upstream: source/SMLib/src/SmProtoTopology.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
Current native gate: 3013/3013 pass with values, 0 deferred/failed, max_rel_err 0. The shared runner retains the same two default B-reps and their actual infinite regions as C++; all 77 former pool-context deferrals now compare. Existing native refusal guards remain unchanged; green does not extend coverage to the glue/squeeze paths described below. Historical evidence: PARTIAL: difftest 3013 cases (12 fixtures edge_proto_p3*, 3001 generated proto scripts rich in ops 120-126 of the shared proto-script engine of topology.proto_topology_p1), 2636 pass bit-identical (max_rel_err 0), 377 deferred (query.brep 69, topology.edge 96, topology.face_p2 94, topology.vertex 118); --perturb SENSITIVE. All 7 fns ported in topology::proto_topology::p3; the callees of topology.proto_topology_p2 (merged) are wired to its manager methods (CreateProtoVertex, AddVertexDefinition(PC,PC), FindOrCreateProtoVertex(position), FindProtoEdge, CreateProtoEdge, AddEdgeDefinition x2, CombineProtoEdge, RemoveEdgeDefinition) with the ignored statuses of upstream; B-rep reads go through p2's ProtoBrep trait (which gained vertex_point, edge_faces, vertex_common_edges, edge_other_vertex and face_curve_on_classify for p3); the remaining private stubs are tagged UNPORTED(<unit>): query.brep (Point3DClassify), topology.brep_p3/p4/p5 (SqueezeEdge/DeleteEdge/GlueVertices), intersect.curve_class_p4/p5 (constructor, ExtractGeometry; GetOtherMate/RemoveRelationship of GlueCoincidentBrepVertices are wired through the Mates trait by boolean.topology_intersector_p2, PR #203, reached only after the unported SqueezeEdge/DeleteEdge succeed). The engine's stand-in topology has no edge faces: GlueCoincidentBrepVertices runs only where no gluing happens (final vertices that are one vertex or far apart, on stand-in vertices with a point and a tolerance) and ResolveOverlappingProtoEdges only for definition-less face/face groups whose overlaps are symmetric and duplicate-free (the shim refuses the rest: a one-way or repeated overlap, or a proto edge listed twice in the manager, crashes the C++: UB-132), so their glue/squeeze/edge-source paths are ported but not compared; FindOrCreateProtoVertex/Edge inputs whose creation would read an uninitialised position are refused. Upstream defects WR-101 (SmProtoEdge::Split upper child interval) and UB-132 (duplicate manager proto edge). No CO-PORTED. CurveOnClassify is wired through ProtoBrep::face_curve_on_classify (the B-rep owner calls query::face::p2::curve_on_classify). Plan notes: 7 fns; largest: SmProtoTopologyManager::ResolveOverlappingProtoEdges, SmProtoTopologyManager::GlueCoincidentBrepVertices, SmProtoTopologyManager::SplitIntersectingProtoEdges, SmProtoTopologyManager::FindOrCreateProtoEdge; cycle back-edges (call into later units; stub or co-port): boolean.topology_intersector_p1(2), boolean.topology_intersector_p2(1), query.brep(1), query.face_p2(1); unit-SCC #22 (220 units); 112 upstream test entry points reach this unit [PR #144: vertex_point / edge_faces / edge_other_vertex now come from the p1 ProtoTopology supertrait (B-rep walks wired); re-run: cases=3013 passed=2638 failed=0 deferred=375 (query.brep 70, topology.edge 95, topology.face_p2 94, topology.vertex 116), --perturb SENSITIVE] UPDATE (PR #204, topology.brep_p3): SmBrep::SqueezeEdge wired through the new hook ProtoBrep::brep_squeeze_edge (on GetWhichBrep(which); glue_coincident_brep_vertices now takes k: &mut Kernel and brep: &mut impl ProtoBrep): the intersector adapter calls topology::brep::p3::squeeze_edge, the proto_topology_p1 runner's bare-stand-in Pool defers under harness:proto-pool-brep-edit; no case reaches it: 3013 cases, 2638 pass, 0 failed, 375 deferred, case-by-case unchanged. Shim batch 2 (topology stand-ins are records of one B-rep in the runner (TopoRecords; ClassGeometry topology_entity/handle, vertex point, zone tol hooks), point_class FindObjPoint3d resolves vertex/edge (#285 hunk) and face handles through them (stacked on #295)): 3013 cases, 2936 pass, 77 deferred (query.brep 77), --perturb SENSITIVE 2936/2936 (was 2638/375).
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
- 3,013
- 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.object green geom.solution_array green geom.tol green geom.vector3d green intersect.curve_class_p1 green topology.edge green topology.proto_topology_p1 green topology.proto_topology_p2 green topology.topology green
Soft dependencies: curve.curve_p4 green curve.curve_p6 green curve.curve_p8 green intersect.curve_class_p4 green intersect.curve_class_p5 green intersect.curve_class_p7 green intersect.point_class green topology.brep_p3 partial topology.brep_p4 green topology.brep_p5 green topology.vertex green
Dependents: boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmEdgeDefinition::Split | SmProtoTopology.cpp:1636 | 106 | [ProtoTopologyManager::edge_definition_split] |
SmProtoEdge::Split | SmProtoTopology.cpp:2993 | 123 | [ProtoTopologyManager::proto_edge_split] |
SmProtoTopologyManager::FindOrCreateProtoVertex | SmProtoTopology.cpp:4115 | 54 | [ProtoTopologyManager::find_or_create_proto_vertex_pcs] |
SmProtoTopologyManager::FindOrCreateProtoEdge | SmProtoTopology.cpp:4773 | 175 | [ProtoTopologyManager::find_or_create_proto_edge] |
SmProtoTopologyManager::GlueCoincidentBrepVertices | SmProtoTopology.cpp:5902 | 426 | [ProtoTopologyManager::glue_coincident_brep_vertices] |
SmProtoTopologyManager::SplitIntersectingProtoEdges | SmProtoTopology.cpp:6706 | 190 | [ProtoTopologyManager::split_intersecting_proto_edges] |
SmProtoTopologyManager::ResolveOverlappingProtoEdges | SmProtoTopology.cpp:7045 | 507 | [ProtoTopologyManager::resolve_overlapping_proto_edges] |
Module file-header table (8 rows)
| Rust | Upstream |
|---|---|
[ProtoTopologyManager::find_or_create_proto_vertex_pcs] | SmProtoTopologyManager::FindOrCreateProtoVertex(PC, PC, ..) |
[ProtoTopologyManager::find_or_create_proto_edge] | SmProtoTopologyManager::FindOrCreateProtoEdge |
[ProtoTopologyManager::find_or_create_needed_proto_edge] | SmProtoTopologyManager::FindOrCreateProtoEdge, a failed step passed on (#18927) |
[ProtoTopologyManager::edge_definition_split] | SmEdgeDefinition::Split |
[ProtoTopologyManager::proto_edge_split] | SmProtoEdge::Split |
[ProtoTopologyManager::split_intersecting_proto_edges] | SmProtoTopologyManager::SplitIntersectingProtoEdges |
[ProtoTopologyManager::glue_coincident_brep_vertices] | SmProtoTopologyManager::GlueCoincidentBrepVertices |
[ProtoTopologyManager::resolve_overlapping_proto_edges] | SmProtoTopologyManager::ResolveOverlappingProtoEdges |
Upstream tests reaching this unit
prog_test:my_test_analytic_tsurf_creation, prog_test:my_test_get_loop_crossings, SM_API_test:TestSmBoolean2DPlanarUnion, prog_test:my_test_bbu, SM_API_test:TestSmMaterialCensus, SM_API_test:TestSmPiecewiseMerge