solidcore

Units / primitive

primitive.api_surface_ops green

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

Status history

Oct 12Nov 25
  1. green 200 lines

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

Upstream: source/SM_API/src/SmApiSurfaces.cpp, source/SM_API/src/SmApiCurves.cpp

Port-plan notes

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

NOT IN callgraph/units.json: wrapper-only SM_API functions (1.0.1 parity batch 3, surfaces): SmApiCreateSurface, SmApiCreateSurfaceFromCornerPoints, SmApiCreateOffsetSurface (SmApiSurfaces.cpp), SmApiCreateSurfaceFromOrderedPoints (SmApiSurfaces.cpp:174, completion: SmBSplineSurface::ApproximatePoints, owned by no unit, at nurbs::b_spline_surface_n_lib::approx over the green N_FitSrfLstSqApprox; its pdOptTolerance branch is not ported, follow-up: N_FitSrfApproxTol, N_FitSrfLstSqKnots, N_FitSrfApproxRemoveKnots, N_FitSrfRemovalBoundary, N_GetClosestPtOnSrf, N_CFuncFromKnots, N_Pts2dGetMaxExtent, about 2.6k upstream lines, reached only from SmBSplineSurface::RebuildSurface (unused_functions.txt) and prog_test, never from the SM_API), SmApiDropCurveToSrf, SmApiLiftUVCurveFromSrf (SmApiCurves.cpp); every callee is ported (SmBSplineSurface::CreateCanonical, CreateBilinearSurface, the virtual CreateOffsetSurface, DropAndTrimCurve, LiftCurve). Input surfaces and curves are made by the SM_API constructors on both sides, including the upstream offset-collapse inputs (the first face surface of SmApiCreateSphere, the SmApiCreateTorus surface) and the 5x7 SmApiCreateSurfaceFromOrderedPoints grid of TestSmSurfaces.cpp:136/:593 and TestSmIntersectors.cpp:163; generated ordered-points cases run on their own seed stream (ordered*). 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
570
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: intersect.surface_drop_lib_p1 partial nlib.srf_fit green nurbs.b_spline_surface_p1 green primitive.api_curves green surface.surface_p1 green surface.surface_p11 green

Soft dependencies: geom.tol green surface.surface_p2 partial

Dependents: primitive.api_trim_ops partial

Soft dependents: none

Upstream functions

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

Module file-header table (6 rows)
RustUpstream
[create_surface]SmApiCreateSurface
[create_surface_from_corner_points]SmApiCreateSurfaceFromCornerPoints
[create_surface_from_ordered_points]SmApiCreateSurfaceFromOrderedPoints
[create_offset_surface]SmApiCreateOffsetSurface
[drop_curve_to_srf], [DroppedCurves]SmApiDropCurveToSrf
[lift_uv_curve_from_srf]SmApiLiftUVCurveFromSrf

Upstream tests reaching this unit

SM_API_test:TestSmCreateSurface, SM_API_test:TestSmCreateSurfaceFromCornerPoints, SM_API_test:TestSmCreateSurfaceFromOrderedPoints, SM_API_test:TestSmCreateOffsetSurface, SM_API_test:TestSmDropCurveToSrf, SM_API_test:TestSmLiftUVCurve