topology.proto_topology_p2 green
- Layer
- 48
- Upstream lines
- 2,115
- Functions
- 18
- Rust module
topology::proto_topology::p2
Status history
- todo 2,091 lines
- partial 2,091 lines
- green 2,091 lines
Source: crates/solidcore/src/topology/proto_topology/p2.rs
Upstream: source/SMLib/src/SmProtoTopology.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
GREEN: the runner refuses UpdateFaces on bare-face stand-ins exactly as the shim does (the same input guard), so the 45 random scripts that reached it compare their whole record instead of deferring under harness:proto-real-face-update, and 200 generated real-face UpdateFaces scripts (bilinear patches, planar or twisted, at random scale; u or v splits with common boundary, overlap or gap; initial domains and shifted trims; proto vertices classified on either face or the one direct-UV proto edge) run the update on owned faces on both sides: PASS cases=1767 passed=1767 failed=0 deferred=0 max_rel_err=0e0 with_values=1767 (was PARTIAL cases=1567 passed=1522 deferred=45). Earlier: The runner mirrors the shim's Imprint guard (a merge into a bare region, face or edge stand-in, whose GetBrep is NULL upstream, is refused before the call): local --unit run PARTIAL cases=1567 passed=1522 failed=0 deferred=45 blocked_by=harness:proto-real-face-update(45) (25 MergeIntoObject deferrals resolved). Earlier: 2026-10-24 (claude/vertex-point, Mac): imprint_vertex_definition takes &mut Kernel and merges through ProtoBrep::merge_point_class_into_brep; the runner pool merges a vertex stand-in in its record (the 1 SmVertex::GetPoint deferral passes); edge and region stand-ins are joined to no B-rep and keep the 25 topology.brep_p1 deferrals. PARTIAL topology.proto_topology_p2 cases=1567 passed=1497 failed=0 deferred=70 max_rel_err=0e0 with_values=1497 no_values=0 vacuous=0 blocked_by=harness:proto-real-face-update(45),topology.brep_p1(25). PARTIAL (PR #114): difftest 1533 cases (1500 generated proto scripts with ops 91-108 of the shared topology.proto_topology_p1 engine, 30 edge cases (proto edge life cycle, resolve of same / closed / circle proto edges, edge split updates, combine every other WR-95, vertex definitions, imprint error returns, find-or-create) at unit/1e4/1e-4 scale, 3 upstream-derived fixtures (SM_API_test TestSmBoolean2DPlanarUnion boundary crossings at 1, 1e3, 1e-3)), 1228 pass bit-identical (max_rel_err 0), 305 deferred (topology.edge 123, topology.vertex 61, topology.face_p2 60, topology.face_p1 41, topology.brep_p9 20; SmProtoVertex::ContainsPoint wired by query.face_p2, surface point solves by surface.surface_point_solve_p3); --perturb SENSITIVE. 18 fns ported in topology::proto_topology::p2; B-rep members through the new ProtoBrep trait (no UNPORTED stubs into partial units); UNPORTED stubs: topology.brep_p5 (SmBrep::MakeEdgeInFace), topology.face_p1 (SmFace::CalculateUVDomainFromUVTrimCurves), query.face_p2 (sm_ClassifyParamOnFaces), surface.surface_p5 (SmSurface::DropPoint), topology.edgeuse_p3 (SmEdgeuse::EvaluateBinormal). Upstream defects UB-115..UB-118, WR-95. No UNPORTED(topology.proto_topology_p2) back-edges existed. Plan notes: 18 fns; largest: SmProtoTopologyManager::UpdateFaces, SmProtoTopologyManager::UpdateEdges, SmEdgeDefinition::Imprint, SmProtoTopologyManager::CanCombineVertexDefinitions; cycle back-edges (call into later units; stub or co-port): query.face_p2(1); unit-SCC #22 (220 units); 112 upstream test entry points reach this unit [PR #144: can_combine_vertex_definitions takes the ProtoTopology walks (are_connected of topology.proto_topology_p1 wired); re-run: cases=1533 passed=1247 failed=0 deferred=286 (topology.brep_p9 20, topology.edge 105, topology.face_p1 41, topology.face_p2 60, topology.vertex 60), --perturb SENSITIVE] PR #183 integration rerun: 1533 cases, 1251 pass, 282 deferred, 0 failed, max_rel_err=0. Review rerun: 1533 cases, 1247 pass, 286 deferred, 0 failed, max_rel_err=0. Previous-head four bare-edge guard matches are superseded. Issue #210 continuation rerun: all 20 opaque edge/region merges defer to topology.brep_p1 mutable owning context; the old p9 and shell owner blockers are superseded. Other blockers remain edge 105, face_p1 41, face_p2 60, vertex 60. UPDATE (PR #204, topology.brep_p3): new required trait method ProtoBrep::brep_squeeze_edge(k: &mut Kernel, brep, edge, survivor) (SmBrep::SqueezeEdge, called by topology.proto_topology_p3's GlueCoincidentBrepVertices); implementors: the intersector adapter (calls topology::brep::p3::squeeze_edge), the proto_p1 runner's Pool and this module's unit-test Geo (both defer under harness:proto-*-brep-edit, having no B-rep); 1533 cases, 1247 pass, 0 failed, 286 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)): 1533 cases, 1462 pass, 71 deferred (topology.face_p1 45, topology.brep_p1 25, topology.vertex 1), --perturb SENSITIVE 1462/1462 (was 1247/286). UPDATE (real owning-face UpdateFaces): owner callbacks retain actual trim-domain partial outputs and mutable UV classification; sm_ClassifyParamOnFaces follows native box/tolerance/order semantics. Added 34 real trimmed-face cases, including both operands, boundary/overlap, 8 registered direct-UV edge-definition cases and 2 ordinary-error partial-domain cases. Existing 45 bare-face UpdateFaces scripts remain explicitly harness-deferred; surface DropPoint/proto-face/binormal continuations and general classification cache-provider plumbing are not claimed. Unit remains partial. Native pre-main-refresh: p1 1862 pass, p2 1496 pass/71 defer, p3 3013 pass; no failures.
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
- 1,767
- 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 intersect.point_class green topology.edge green topology.face_p2 partial topology.proto_topology_p1 green topology.topology green
Soft dependencies: curve.curve_p1 green geom.extent2d green geom.vector2d green intersect.curve_class_p7 green surface.surface_p2 partial surface.surface_p5 green topology.brep_p5 green topology.edgeuse_p3 green topology.face_p1 green
Dependents: boolean.topology_intersector_p1 green topology.proto_topology_p3 green
Soft dependents: none
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmVertexDefinition::Imprint | SmProtoTopology.cpp:778 | 139 | [ProtoTopologyManager::imprint_vertex_definition] |
SmEdgeDefinition::Imprint | SmProtoTopology.cpp:1375 | 247 | [ProtoTopologyManager::imprint_edge_definition] |
SmProtoVertex::Resolve | SmProtoTopology.cpp:2288 | 90 | [ProtoTopologyManager::resolve_proto_vertex] |
SmProtoVertex::AddVertexDefinition | SmProtoTopology.cpp:2450 | 58 | [ProtoTopologyManager::add_vertex_definition_from_pcs] |
SmProtoEdge::FindMatchingEdgeDefinition | SmProtoTopology.cpp:3126 | 45 | [ProtoTopologyManager::find_matching_edge_definition] |
SmProtoEdge::AddEdgeDefinition | SmProtoTopology.cpp:3183 | 47 | [ProtoTopologyManager::add_edge_definition] |
SmProtoEdge::AddEdgeDefinition | SmProtoTopology.cpp:3240 | 59 | [ProtoTopologyManager::add_edge_definition] |
SmProtoEdge::CombineProtoEdge | SmProtoTopology.cpp:3307 | 64 | [ProtoTopologyManager::combine_proto_edge] |
SmProtoEdge::Resolve | SmProtoTopology.cpp:3422 | 124 | [ProtoTopologyManager::resolve_proto_edge] |
SmProtoTopologyManager::CreateVertexDefinition | SmProtoTopology.cpp:3791 | 24 | [ProtoTopologyManager::create_vertex_definition] |
SmProtoTopologyManager::CreateProtoVertex | SmProtoTopology.cpp:3991 | 41 | [ProtoTopologyManager::create_proto_vertex] |
SmProtoTopologyManager::FindOrCreateProtoVertex | SmProtoTopology.cpp:4040 | 34 | [ProtoTopologyManager::find_or_create_proto_vertex] |
SmProtoTopologyManager::FindProtoEdge | SmProtoTopology.cpp:4177 | 49 | [ProtoTopologyManager::find_proto_edge] |
SmProtoTopologyManager::CreateProtoEdge | SmProtoTopology.cpp:4234 | 66 | [ProtoTopologyManager::create_proto_edge] |
SmProtoTopologyManager::RemoveEdgeDefinition | SmProtoTopology.cpp:4365 | 22 | [ProtoTopologyManager::remove_edge_definition] |
SmProtoTopologyManager::UpdateEdges | SmProtoTopology.cpp:5023 | 306 | [ProtoTopologyManager::update_edges] |
SmProtoTopologyManager::UpdateFaces | SmProtoTopology.cpp:5335 | 560 | [ProtoTopologyManager::update_faces] |
SmProtoTopologyManager::CanCombineVertexDefinitions | SmProtoTopology.cpp:6334 | 140 | [ProtoTopologyManager::can_combine_vertex_definitions] |
Module file-header table (20 rows)
| Rust | Upstream |
|---|---|
[ProtoBrep] | the B-rep members these functions read through SmEdge* / SmFace* / SmVertex* (GetInterval, GetCurve, GetTolerance, GetUVDomain, SetUVDomain, GetSurface, GetEdgeuseOfFace, IsConnectedToFace), SmCurve::Copy's allocation, and the B-rep edits of SmPointClassification::MergeIntoObject ([ProtoBrep::merge_point_class_into_brep]) |
[ProtoTopologyManager::imprint_vertex_definition] | SmVertexDefinition::Imprint |
[ProtoTopologyManager::imprint_edge_definition] | SmEdgeDefinition::Imprint |
[ProtoTopologyManager::resolve_proto_vertex] | SmProtoVertex::Resolve |
[ProtoTopologyManager::add_vertex_definition_from_pcs] | SmProtoVertex::AddVertexDefinition(SmPointClassification&, SmPointClassification&, ..) |
[ProtoTopologyManager::find_matching_edge_definition] | SmProtoEdge::FindMatchingEdgeDefinition |
[ProtoTopologyManager::add_edge_definition] | SmProtoEdge::AddEdgeDefinition(SmEdgeDefinition*) |
[ProtoTopologyManager::add_edge_definition_from_intervals] | SmProtoEdge::AddEdgeDefinition(const SmCurveInterval&, const SmCurveInterval&) |
[ProtoTopologyManager::combine_proto_edge] | SmProtoEdge::CombineProtoEdge |
[ProtoTopologyManager::resolve_proto_edge] | SmProtoEdge::Resolve |
[ProtoTopologyManager::create_vertex_definition] | SmProtoTopologyManager::CreateVertexDefinition |
[ProtoTopologyManager::create_proto_vertex] | SmProtoTopologyManager::CreateProtoVertex |
[ProtoTopologyManager::find_or_create_proto_vertex] | SmProtoTopologyManager::FindOrCreateProtoVertex |
[ProtoTopologyManager::find_proto_edge] | SmProtoTopologyManager::FindProtoEdge |
[ProtoTopologyManager::create_proto_edge] | SmProtoTopologyManager::CreateProtoEdge |
[ProtoTopologyManager::remove_edge_definition] | SmProtoTopologyManager::RemoveEdgeDefinition |
[ProtoTopologyManager::update_edges] | SmProtoTopologyManager::UpdateEdges |
[ProtoTopologyManager::update_faces] | SmProtoTopologyManager::UpdateFaces |
[ProtoTopologyManager::can_combine_vertex_definitions] | SmProtoTopologyManager::CanCombineVertexDefinitions |
[ProtoBrep::brep_make_edge_in_face], [make_edge_in_face_in_context] | SmBrep::MakeEdgeInFace of SmEdgeDefinition::Imprint on GetWhichBrep(i) |
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