solidcore

Units / topology

topology.brep_constructor green

Layer
51
Upstream lines
850
Functions
0
Rust module
topology::brep_constructor

Status history

Oct 12Nov 25
  1. green 850 lines

Source: crates/solidcore/src/topology/brep_constructor.rs

Upstream: source/SMLib/inc/SmBrepData.h, source/SMLib/src/SmBrepData.cpp

Port-plan notes

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

GREEN: revived 2026-10-30 on main; EndShell(TRUE) wired to ported validate_pointers; 185/185, 0 deferred. Revived on main (2026-10-30): SmBrep::ValidatePointers in EndShell(TRUE) is wired to topology::brep::validation::validate_pointers (unit topology.brep_validation, green on main; defaults: no list, SM_LEVEL_0, SM_NO_WALK; status ignored, Unported propagates), so the topology.brep_validate_pointers deferrals and that placeholder unit are gone. Counts: see the PR difftest summary. PARTIAL (PR #1000): difftest cases=185 passed=125 failed=0 deferred=60 (topology.brep_validate_pointers 60: EndShell(TRUE) -> SmBrep::ValidatePointers, WR-446) max_rel_err=0; --seeds 400: 522 cases, 410 pass, 0 fail; --perturb SENSITIVE 87/87; --fuzz 600 FUZZ-PASS. Built-in cases: prisms, holes, cylinders/cones (seams), vertex-loop sphere, void, open shells, non-manifold fans, ellipse/B-spline edges and patch, step-import TETRA file, UV-lifted edges, malformed call sequences; variants by point/parameter limits and separate+stitched edges. Corpus: plan/findings/topology.brep_constructor--port-difftest-and-step-corpus-constructor-path.md. SmBrepConstructor (SmBrepData.cpp lines 78-1189, SmBrepData.h SmVertexNode/SmBrepConstructor): top-down B-rep construction from shells, faces, loops and shared edges with orientations; the faithful build path for B-rep file importers (STEP, PR #985). Not in the original plan (its functions were in harness/callgraph/unused_functions.txt).

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
185
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 curve.curve_p4 green curve.curve_p6 green geom.extent1d green geom.tol green heal.stitch_p1 green heal.stitch_p2 green surface.surface_p11 green topology.brep_p1 green topology.brep_p3 partial topology.edge green topology.edgeuse_p1 green topology.face_p4 green topology.loopuse green topology.shell green topology.vertex green

Soft dependencies: none

Dependents: none

Soft dependents: none

Upstream functions

No upstream functions listed in harness/callgraph/units.json.

Module file-header table (23 rows)
RustUpstream
[VertexNode]SmVertexNode (constructors, Set)
[BrepConstructor] / [BrepConstructor::new]SmBrepConstructor / its constructor
[BrepConstructor::start_brep]SmBrepConstructor::StartBrep
[BrepConstructor::end_brep]SmBrepConstructor::EndBrep
[BrepConstructor::start_region]SmBrepConstructor::StartRegion
[BrepConstructor::end_region]SmBrepConstructor::EndRegion
[BrepConstructor::start_shell]SmBrepConstructor::StartShell
[BrepConstructor::end_shell]SmBrepConstructor::EndShell
[BrepConstructor::start_face]SmBrepConstructor::StartFace
[BrepConstructor::end_face]SmBrepConstructor::EndFace
[BrepConstructor::start_and_end_single_vertex_loop]SmBrepConstructor::StartAndEndSingleVertexLoop
[BrepConstructor::start_vertex_of_loop]SmBrepConstructor::StartVertexOfLoop
[BrepConstructor::start_loop]SmBrepConstructor::StartLoop
[BrepConstructor::end_loop]SmBrepConstructor::EndLoop
[BrepConstructor::start_edge]SmBrepConstructor::StartEdge
[BrepConstructor::set_limits]SmBrepConstructor::SetLimits
[BrepConstructor::end_edge]SmBrepConstructor::EndEdge
[BrepConstructor::set_face_surface]SmBrepConstructor::SetFaceSurface
[BrepConstructor::set_edge_curve]SmBrepConstructor::SetEdgeCurve
[BrepConstructor::start_vertex]SmBrepConstructor::StartVertex
[BrepConstructor::end_vertex]SmBrepConstructor::EndVertex
[BrepConstructor::swap_regions]SmBrepConstructor::SwapRegions
[BrepConstructor::is_manifold]SmBrepConstructor::IsManifold

Upstream tests reaching this unit

prog_test:my_test_seam_uv_redistribution_at_poles, prog_test:my_test_single_periodic_vertexuse, prog_test:my_test_doubly_periodic_vertexuse_corners, prog_test:my_test_heal_single_vertex_sphere