solidcore

Units / topology

topology.api_projection partial

Layer
59
Upstream lines
330
Functions
0
Rust module
topology::api_projection

Status history

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

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

Upstream: source/SM_API/src/SmApiBrep.cpp, source/SM_API/src/SmApiCurves.cpp, source/SMLib/src/SmCrvOnSurf.cpp

Port-plan notes

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

[2026-11-04 (#2400): PARTIAL, 5 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: SmApiProjectBrepOntoPlane (SmApiBrep.cpp:775), SmApiCreateSilhouetteCurves (SmApiBrep.cpp:985), SmApiProjectCurve(SmBrep*, ..) (SmApiBrep.cpp:1070) and SmApiProjectCurve(const SmBSplineCurve*, const SmSurface*, ..) (SmApiCurves.cpp:1108) (SM_API gap table S3), with the unowned SmCurve::CreatePlaneProjection dispatch and SmCrvOnSurf::CreatePlaneProjection kept beside them (private in topology::api_projection). Rust: topology::api_projection::{project_brep_onto_plane, create_silhouette_curves, project_curve_onto_brep, project_curve_onto_surface}; the output slots are topology::api_files::add_curve_output_slots (SmApiAddCurveOutputSlots), compared here through its two callers. Difftest topology.api_projection: 32 fixture cases (SM_API_test TestSmProjectBrepOntoPlane, TestSmCreateSilhouetteCurves, TestSmProjectCurve, TestSmProjectCurveToSurface, TestSmLiftUVCurve: null and zero-length inputs, non-unit normals, appends to arrays holding entries, a projection missing the body) plus generated cases. 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
48
Stored error outcomes
0
Stored deferrals
0
Stored harness rejections
1
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: blend.hcr green intersect.surface_drop_lib_p1 partial nurbs.b_spline_curve_p1 green surface.surface_p11 green topology.api_files partial topology.brep_p1 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
[project_brep_onto_plane]SmApiProjectBrepOntoPlane
[create_silhouette_curves]SmApiCreateSilhouetteCurves
[project_curve_onto_brep]SmApiProjectCurve(SmBrep*, SmBSplineCurve*, ..)
[project_curve_onto_surface], [SurfaceProjection]SmApiProjectCurve(const SmBSplineCurve*, const SmSurface*, ..)
plane_projection (private)SmCurve::CreatePlaneProjection (virtual dispatch: the SmBSplineCurve override, SM_ERR otherwise)
crv_on_surf_plane_projection (private)SmCrvOnSurf::CreatePlaneProjection

Upstream tests reaching this unit

tests/SM_API_test/src/TestSmBrep.cpp:TestSmProjectBrepOntoPlane, tests/SM_API_test/src/TestSmBrep.cpp:TestSmCreateSilhouetteCurves, tests/SM_API_test/src/TestSmBrep.cpp:TestSmProjectCurve, tests/SM_API_test/src/TestSmCurves.cpp:TestSmProjectCurveToSurface, tests/SM_API_test/src/TestSmCurves.cpp:TestSmLiftUVCurve