solidcore

Units / topology

topology.brep_cutting partial

Layer
49
Upstream lines
960
Functions
0
Rust module
topology::brep::cutting

Status history

Oct 12Nov 25
  1. green 960 lines
  2. partial 960 lines

Source: crates/solidcore/src/topology/brep/cutting.rs

Upstream: source/SMLib/src/SmBrepCutting.cpp, source/SMLib/src/SmCutter.cpp, source/SM_API/src/SmApiBrep.cpp

Port-plan notes

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

[2026-11-04 (#2400): PARTIAL, 19 known mismatches: the blend corner is the default and the old corner code is deleted, so these cases no longer agree with C++ v1.0.1's pinned corner (plan/findings/blend.fillet_corner_p3--blend-corner-default-diverges-from-cpp-v1-0-1-2026-11-04.md)] NOT IN callgraph/units.json: SmBrepCutting::SmBrepCutting / DoCut (SmBrepCutting.cpp:33/48), SmPlaneCutter::SmPlaneCutter / MergeIntersection / Classification (SmCutter.cpp:29/47/281) and SmApiCut (SmApiBrep.cpp:875) are listed in harness/callgraph/unused_functions.txt (no in-scope root reaches them). SM_API M1. Rust: topology::brep::cutting::{PlaneCutter, do_cut, cut, cut_notified}. Not ported: SmSurfaceBiLinearCutter (SmCutter.cpp:681..1130; no caller in SM_API, SMLib or the upstream tests), SmCutter's base MergeIntersection / Classification (SE(SM_ERR)) and the Draw methods. Builds on topology.brep_planar_section (CreatePlaneFromBBox, SmSurface::CreatePlanarSectionCurves through the face context) and topology.brep_p10's merge_curves_on_surface_through_surface. Status set when the difftest gate has run.

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
108
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_p7 green query.brep green topology.brep_p1 green topology.brep_p10 green topology.brep_p3 partial topology.brep_p4 green topology.brep_p5 green topology.brep_p9 green topology.brep_planar_section partial topology.edge green topology.edgeuse_p3 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 (6 rows)
RustUpstream
[PlaneCutter]SmPlaneCutter
[PlaneCutter::new]SmPlaneCutter::SmPlaneCutter
[PlaneCutter::merge_intersection]SmPlaneCutter::MergeIntersection
[PlaneCutter::classification], [CutClassification]SmPlaneCutter::Classification
[do_cut]SmBrepCutting::DoCut (SmBrepCutting holds only its arguments)
[cut], [cut_notified]SmApiCut

Upstream tests reaching this unit

tests/SM_API_test/src/TestSmBrep.cpp:TestSmCut, tests/SM_API_test/src/TestSmBrep.cpp:TestNonManifoldSweepStaleEntry, tests/prog_test/src/smTopoTest.cpp:my_test_tsurf_insert_edge