solidcore

Units / primitive

primitive.api_trim_ops partial

Layer
50
Upstream lines
200
Functions
0
Rust module
primitive::api_trim_ops

Status history

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

Source: crates/solidcore/src/primitive/api_trim_ops.rs

Upstream: source/SM_API/src/SmApiTrimmedSurfaces.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, 9 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)] 2026-10-31 (nightly fuzz run 41040730716, fuzz00254: SmApiTrimSurfaceWith3dCurves on a lifted net with a 1e300 control point never returns in the C++, HANG-29): the FFI refuses a trim3d surface coordinate above MAX_TRIM_SURFACE_COORD = 1e150 and the runner's Rust side refuses the same input (ffi::validate), so the case is rejected on both sides; plan/findings/primitive.api_trim_ops--nightly-fuzz00254-trim3d-huge-net-hangs-the-cpp.md. Gate unchanged (210 passed, 1 rejected). NOT IN callgraph/units.json: wrapper-only SM_API functions (1.0.1 parity batch 3, trimming): SmApiTrimSurfaceWith3dCurves, SmApiTrimProjectParallel, SmApiCreatePlanarFaces (SmApiTrimmedSurfaces.cpp), SmApiProjectAndTrim (SmApiBrep.cpp); every callee is ported (SmTrimmingTools::TrimSurfaceWithModelSpaceCurves, SmBrep::CreateFaceFromSurface, CreatePlanarFacesWith3DCurves, ProjectAndTrim). The projected curve is any SmBSplineCurve class: the ProjectAndTrim chain (topology::brep::p10::project_and_trim, p1::create_parallel_projection_curves, Surface::create_parallel_projection_curves) takes &Curve and dispatches the box and continuities on the class (an SmLine as in the upstream tests), the sweep on its NURB. Inputs are made by the SM_API constructors on both sides (boxes by SmApiCreateBox, filleted by SmApiCircularFillet as in TestSmProjectAndTrim). Status set by the gate.

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
211
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: primitive.api_curves green primitive.api_primitives green primitive.api_surface_ops green topology.brep_p10 green topology.brep_p3 partial topology.brep_p8 green topology.trimming_tools green

Soft dependencies: topology.brep_p2 green

Dependents: none

Soft dependents: none

Upstream functions

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

Module file-header table (5 rows)
RustUpstream
[trim_surface_with_3d_curves]SmApiTrimSurfaceWith3dCurves
[trim_project_parallel], [TrimObject]SmApiTrimProjectParallel
[create_planar_faces]SmApiCreatePlanarFaces
[project_and_trim]SmApiProjectAndTrim
trim_into_new_brep (private)SmTrimmingTools::TrimSurfaceWithModelSpaceCurves (B-rep overload)

Upstream tests reaching this unit

SM_API_test:TestSmTrimSurfaceWith3dCurves, SM_API_test:TestSmTrimProjectParallel, SM_API_test:TestSmCreatePlanarFaces, SM_API_test:TestSmPlanarFacesFailureCleanup, SM_API_test:TestSmProjectAndTrim