topology.vertexuse green
- Layer
- 37
- Upstream lines
- 1,475
- Functions
- 30
- Rust module
topology::vertexuse
Status history
- todo 1,429 lines
- partial 1,429 lines
- green 1,429 lines
Source: crates/solidcore/src/topology/vertexuse.rs
Upstream: source/SMLib/inc/SmVertexuse.h, source/SMLib/src/SmVertexuse.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
Rust B-rep: own_builder for shim-built sources, own_reader::file_in_order for .smb files (Rust reader, renumbered into the shim walk order), no C++ export on the Rust side; the inexact_surface skip (an import holding only an analytic surface's B-spline part) is gone on both sides. EXACT SmSurfOfRevolution EXPORT (PR #304, shared graph exports carry revolution faces exactly; refreshed on main 16f04231, 2026-10-21): difftest 2686 cases, 2149 pass, 0 failed, 537 deferred (topology.face_p2 445, intersect.surface_drop_lib_p3 92), max_rel_err 0; 2250 -> 2149 pass: 101 surf_rev/vase_rev/torus/toruswvy gap and seam cases now follow the C++ revolution path and defer on SmFace::GetTolerance (topology.face_p2); before, they passed by running the B-spline path on the Rust side against the C++ revolution path; they pass once GetTolerance reaches the face surface (owner zone-tolerance PR). Earlier: PARTIAL: SmSurface::GetSingularities wired to surface.surface_p3 (has_singularities takes &Kernel): difftest 2686 cases, 2250 pass, 436 deferred (topology.edgeuse_p3 346, topology.face_p2 90), max_rel_err 0. History: (after heal.gap wired CalcVertexEdgeGap/CalcVertexFaceGap: 2250 pass, 436 deferred (topology.edgeuse_p3 346, surface.surface_p3 90); after topology.face_p2 wired GetUVDomain/GetTolerance: 1928 pass, 758 deferred (topology.edgeuse_p3 346, heal.gap 322, surface.surface_p3 90); originally 2670 fixture: 870 on 15 upstream .smb B-reps read by SmBrep::ReadFromFile, with and without RebuildUVTrimCurves; 972 on prog_test my_test_topology's wire network, wire edges and faces from B-spline surfaces and SmPlanes; 828 adversarial: huge/tiny planes, tiny and huge (1e5, out-of-bounds) B-spline faces, pinched (pole) surface, sub-domain and sliver faces, tiny and huge wire edges; 16 generated, 2000 more checked once), 1621 pass, 1065 deferred (topology.face_p2 536, heal.gap 403, surface.surface_p3 126), max_rel_err 0; --perturb SENSITIVE. Runner imports the shim's exported graph into topology::Brep (as topology.edgeuse_p1). ComputeUVPoint/ComputeUVSector on faces defer at SmFace::GetUVDomain; their remaining bodies are ported behind stubs (NormalizedEvaluate, Local/GlobalPointSolve, IsSingularity, IsOnSeam, SmLoopuse::GetOrientation). Co-ports: SmVertexEdgeGap record (heal.gap), SmVertex::GetVertexuses/GetVertexusesOfEdge/GetVertexusesOfFace by arena scan (topology.vertex), SmEdge::IsWire (topology.edge); Vertexuse gains vertex_edge_gap and uv_point. Back-edge stubs UNPORTED(topology.vertexuse) in surface::trim_srf_cache and intersect::point_class not wired (opaque handles without a Brep; plan/findings.md). Plan notes: 29 fns; largest: SmVertexuse::ComputeUVSector, SmVertexuse::ComputeUVPoint, SmVertexuse::CalcVertexFaceGap, SmVertexuse::Notify; cycle back-edges (call into later units; stub or co-port): heal.gap(11), topology.edge(6), topology.vertex(5), topology.loopuse(4), blend.fillet_geom_p1(1), topology.edgeuse_p3(1); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit; CO-PORTED in topology.edgeuse_p1 (PR #55): SmVertexuse members (owner vertex, m_tVertexuseType/m_pSorLUorEU, m_sVertexFaceGap3d) -> topology::{Vertexuse, VertexuseOwner}; SmVertexuse::GetEdgeuse -> topology::edgeuse::p1::vertexuse_edgeuse [topology.edgeuse_p3 wired (PR #117): 2686 cases, 2250 pass, 0 failed, 436 deferred (intersect.surface_drop_lib_p3 92, topology.face_p2 344)] UPDATE (PR #149, lesson 30): the FFI Reader is the shared crate::reader::unit_reader!(MAX_COORD) (#186 left this unit for #149); its finite/index/below/flag/finites/vec3/nonzero3 stay unit methods (different messages or bounds), num/done come from the shared Cursor; the reader is private again and topology_brep_p2 reads blocks through surface_at / curve_at / brep_block_at. Report unchanged (2686 cases, 2250 pass, 436 deferred). Main since: PARTIAL: SmSurface::GetSingularities wired to surface.surface_p3 (has_singularities takes &Kernel): difftest 2686 cases, 2250 pass, 436 deferred (topology.edgeuse_p3 346, topology.face_p2 90), max_rel_err 0. History: (after heal.gap wired CalcVertexEdgeGap/CalcVertexFaceGap: 2250 pass, 436 deferred (topology.edgeuse_p3 346, surface.surface_p3 90); after topology.face_p2 wired GetUVDomain/GetTolerance: 1928 pass, 758 deferred (topology.edgeuse_p3 346, heal.gap 322, surface.surface_p3 90); originally 2670 fixture: 870 on 15 upstream .smb B-reps read by SmBrep::ReadFromFile, with and without RebuildUVTrimCurves; 972 on prog_test my_test_topology's wire network, wire edges and faces from B-spline surfaces and SmPlanes; 828 adversarial: huge/tiny planes, tiny and huge (1e5, out-of-bounds) B-spline faces, pinched (pole) surface, sub-domain and sliver faces, tiny and huge wire edges; 16 generated, 2000 more checked once), 1621 pass, 1065 deferred (topology.face_p2 536, heal.gap 403, surface.surface_p3 126), max_rel_err 0; --perturb SENSITIVE. Runner imports the shim's exported graph into topology::Brep (as topology.edgeuse_p1). ComputeUVPoint/ComputeUVSector on faces defer at SmFace::GetUVDomain; their remaining bodies are ported behind stubs (NormalizedEvaluate, Local/GlobalPointSolve, IsSingularity, IsOnSeam, SmLoopuse::GetOrientation). Co-ports: SmVertexEdgeGap record (heal.gap), SmVertex::GetVertexuses/GetVertexusesOfEdge/GetVertexusesOfFace by arena scan (topology.vertex), SmEdge::IsWire (topology.edge); Vertexuse gains vertex_edge_gap and uv_point. Back-edge stubs UNPORTED(topology.vertexuse) in surface::trim_srf_cache and intersect::point_class not wired (opaque handles without a Brep; plan/findings.md). Plan notes: 29 fns; largest: SmVertexuse::ComputeUVSector, SmVertexuse::ComputeUVPoint, SmVertexuse::CalcVertexFaceGap, SmVertexuse::Notify; cycle back-edges (call into later units; stub or co-port): heal.gap(11), topology.edge(6), topology.vertex(5), topology.loopuse(4), blend.fillet_geom_p1(1), topology.edgeuse_p3(1); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit; CO-PORTED in topology.edgeuse_p1 (PR #55): SmVertexuse members (owner vertex, m_tVertexuseType/m_pSorLUorEU, m_sVertexFaceGap3d) -> topology::{Vertexuse, VertexuseOwner}; SmVertexuse::GetEdgeuse -> topology::edgeuse::p1::vertexuse_edgeuse [topology.edgeuse_p3 wired (PR #117): 2686 cases, 2250 pass, 0 failed, 436 deferred (intersect.surface_drop_lib_p3 92, topology.face_p2 344)] UPDATE (PR #149, lesson 30): the FFI Reader is the shared crate::reader::unit_reader!(MAX_COORD) (#186 left this unit for #149); its finite/index/below/flag/finites/vec3/nonzero3 stay unit methods (different messages or bounds), num/done come from the shared Cursor; the reader is private again and topology_brep_p2 reads blocks through surface_at / curve_at / brep_block_at. Report unchanged (2686 cases, 2250 pass, 436 deferred). Owner zone-tol cache (surface/owner-zone-tol): 2686 cases, 2594 pass, 0 fail, 92 deferred. GREEN (promoted by intersect.surface_drop_lib_p3, PR #463): 2686 cases, 2686 pass, 0 deferred, 0 failed, max_rel_err 0 (CI difftest). The FFI refuses B-rep values above 1e150 (HANG-29).
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,686
- 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: geom.a_object 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_p7 green topology.edgeuse_p1 green topology.face_p2 partial topology.topology green
Soft dependencies: curve.curve_p2 green surface.surface_p1 green surface.surface_p2 partial surface.surface_p3 green surface.surface_p4 green surface.surface_p5 green topology.shell green
Dependents: blend.fillet_corner_p1 green blend.fillet_geom_p1 green blend.fillet_geom_p2 green blend.fillet_removal green heal.gap green topology.brep_p1 green topology.brep_p2 green topology.brep_p3 partial topology.brep_p4 green topology.brep_p5 green topology.brep_p9 green topology.edge green topology.face_p1 green topology.face_p4 green topology.loopuse green topology.topology_traverser green topology.vertex green
Soft dependents: blend.fillet_corner_p2 partial blend.fillet_corner_p3 partial blend.fillet_executive_p1 green blend.fillet_geom_p3 green blend.fillet_geom_p4 partial blend.fillet_geom_p5 green blend.fillet_geom_p6 green blend.fillet_solver_p1 green blend.fillet_solver_p2 green blend.fillet_solver_p3 green blend.fillet_solver_p4 green blend.fillet_standard_solver_p2 green blend.hcr green boolean.merge_p2 green heal.face_props green heal.heal_data_p2 green heal.heal_data_p3 green offset.offset_executive_p1 partial offset.offset_geometry_creation partial query.face_p3 green sweep.topology_sweep green topology.brep_p10 green topology.brep_p6 green topology.brep_p7 green topology.face_p3 green topology.trimming_tools green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmVertexuse::SmVertexuse | SmVertexuse.h:140 | 7 | [crate::topology::Vertexuse] |
SmVertexuse::~SmVertexuse | SmVertexuse.h:149 | 8 | [crate::topology::Vertexuse] |
SmVertexuse::GetVertexuseType | SmVertexuse.h:204 | 1 | [vertexuse_type] |
SmVertexuse::GetVertex | SmVertexuse.h:228 | 1 | [vertex()] |
SmVertexuse::InitVertexFaceGap | SmVertexuse.h:250 | 1 | [init_vertex_face_gap] |
SmVertexuse::IsLoopVertexuse | SmVertexuse.h:269 | 1 | [is_loop_vertexuse], [is_shell_vertexuse], [is_edge_vertexuse] |
SmVertexuse::IsShellVertexuse | SmVertexuse.h:270 | 1 | [is_loop_vertexuse], [is_shell_vertexuse], [is_edge_vertexuse] |
SmVertexuse::IsEdgeVertexuse | SmVertexuse.h:271 | 1 | [is_loop_vertexuse], [is_shell_vertexuse], [is_edge_vertexuse] |
SmVertexuse::GetClassString | SmVertexuse.h:305 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmVertexuse::GetType | SmVertexuse.h:305 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmVertexuse::GetTypeString | SmVertexuse.h:305 | 1 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
SmVertexuse::ComputeUVPoint | SmVertexuse.cpp:162 | 494 | [compute_uv_point] |
SmVertexuse::ComputeUVSector | SmVertexuse.cpp:711 | 497 | [compute_uv_sector], [UvSectorIo], [UvSector] |
SmVertexuse::ComputeTPoint | SmVertexuse.cpp:1304 | 24 | [compute_t_point] |
SmVertexuse::GetEdgeuse | SmVertexuse.cpp:1334 | 9 | [edgeuse], [faceuse], [loopuse], [shell] |
SmVertexuse::GetFaceuse | SmVertexuse.cpp:1350 | 26 | [edgeuse], [faceuse], [loopuse], [shell] |
SmVertexuse::GetShell | SmVertexuse.cpp:1382 | 31 | [edgeuse], [faceuse], [loopuse], [shell] |
SmVertexuse::HasVertexEdgeGap | SmVertexuse.cpp:1445 | 13 | [has_vertex_edge_gap], [has_vertex_face_gap] |
SmVertexuse::HasVertexFaceGap | SmVertexuse.cpp:1490 | 30 | [has_vertex_edge_gap], [has_vertex_face_gap] |
SmVertexuse::IsConnectedTo | SmVertexuse.cpp:1594 | 39 | [is_connected_to] |
SmVertexuse::GetVertexEdgeGap | SmVertexuse.cpp:1641 | 19 | [vertex_edge_gap], [vertex_face_gap] |
SmVertexuse::GetVertexFaceGap | SmVertexuse.cpp:1668 | 19 | [vertex_edge_gap], [vertex_face_gap] |
SmVertexuse::CalcVertexEdgeGap | SmVertexuse.cpp:1694 | 50 | [calc_vertex_edge_gap], [calc_vertex_face_gap] |
SmVertexuse::CalcVertexFaceGap | SmVertexuse.cpp:1806 | 55 | [calc_vertex_edge_gap], [calc_vertex_face_gap] |
SmVertexuse::IsStrutVertexuse | SmVertexuse.cpp:1904 | 15 | [is_strut_vertexuse], [is_on_pole] |
SmVertexuse::IsOnPole | SmVertexuse.cpp:1925 | 35 | [is_strut_vertexuse], [is_on_pole] |
SmVertexuse::IsSectorMissingSeam | SmVertexuse.cpp:2027 | 27 | [is_sector_missing_seam], [MissingSeam] |
SmVertexuse::GetLoopuse | SmVertexuse.cpp:2366 | 12 | [edgeuse], [faceuse], [loopuse], [shell] |
SmVertexuse::Notify | SmVertexuse.cpp:2388 | 52 | [notify] |
SmVertexuse::IsKindOf | SmVertexuse.cpp:3290 | 4 | [TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] |
Module file-header table (19 rows)
| Rust | Upstream |
|---|---|
[TYPE], [TYPE_STRING], [CLASS_STRING], [is_kind_of] | SmVertexuse::GetType, GetTypeString, GetClassString, IsKindOf |
[crate::topology::Vertexuse] | SmVertexuse (members; Default is SmVertexuse(), Drop ~SmVertexuse) |
[vertexuse_type] | SmVertexuse::GetVertexuseType |
[vertex()] | SmVertexuse::GetVertex |
[is_loop_vertexuse], [is_shell_vertexuse], [is_edge_vertexuse] | SmVertexuse::IsLoopVertexuse, IsShellVertexuse, IsEdgeVertexuse |
[edgeuse], [faceuse], [loopuse], [shell] | SmVertexuse::GetEdgeuse, GetFaceuse, GetLoopuse, GetShell |
[has_vertex_edge_gap], [has_vertex_face_gap] | SmVertexuse::HasVertexEdgeGap, HasVertexFaceGap |
[vertex_edge_gap], [vertex_face_gap] | SmVertexuse::GetVertexEdgeGap, GetVertexFaceGap |
[calc_vertex_edge_gap], [calc_vertex_face_gap] | SmVertexuse::CalcVertexEdgeGap, CalcVertexFaceGap |
[init_vertex_face_gap] | SmVertexuse::InitVertexFaceGap |
[is_connected_to] | SmVertexuse::IsConnectedTo |
[is_strut_vertexuse], [is_on_pole] | SmVertexuse::IsStrutVertexuse, IsOnPole |
[is_on_seam_of_face] | none (not upstream, below) |
[is_sector_missing_seam], [MissingSeam] | SmVertexuse::IsSectorMissingSeam |
[compute_uv_point] | SmVertexuse::ComputeUVPoint |
[compute_uv_sector], [UvSectorIo], [UvSector] | SmVertexuse::ComputeUVSector, SmUVSectorIO |
[compute_t_point] | SmVertexuse::ComputeTPoint |
[notify] | SmVertexuse::Notify |
[edge_is_wire] | SmEdge::IsWire (CO-PORTED, topology.edge) |
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