surface.surface_approximate green
- Layer
- 32
- Upstream lines
- 640
- Functions
- 0
- Rust module
surface::surface::approximate
Status history
- green 640 lines
Source: crates/solidcore/src/surface/surface/approximate.rs
Upstream: source/SMLib/src/SmSurface.cpp, source/SMLib/src/SmBSplineSurfaceNLib.cpp, source/SMLib/inc/SmCubicBezierSurface.h
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
PR #1533, issue #1441 (offset surfaces cannot be exported; solidcore 1.0.1 parity). NOT IN callgraph/units.json: SmSurface::ApproximateSurface and its own callees are in harness/callgraph/unused_functions.txt (no upstream test or SM_API entry point reaches them). Owns SmSurface::ApproximateSurface (SmSurface.cpp:877), SmSurface::ComputeCubicBezierApprox (SmSurface.cpp:8600), SmCubicBezierSurface (its points only), the GetRootSurface overrides (SmSurface, SmBSplineSurface, SmOffsetSurface, SmCurveBoundedSurface, SmSTEPSurface, SmSrfInVolume), and SmBSplineSurface::DegreeElevate, InsertKnots (SmTArray form, SmBSplineSurfaceNLib.cpp:6490) and RemoveKnots. Rust: Surface::approximate_surface / approximate_surface_ignoring_status / compute_cubic_bezier_approx, BSplineSurface::degree_elevate / insert_knots / remove_knots. Not ported (follow-ups): the callers SmBrepData's bWriteAsBSplines writer (brep_data_write writes native formats only), SmFace::ApproximateWithBSpline, SmFace::ApproximateSurface, SmSurface::ApproximateSurfaceLeastSqs, the graphics output; SmCubicBezierSurface's other members. Status pending the gate 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
- 437
- 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: nlib.srf_tool_p1 green nlib.srf_tool_p2 green nlib.srf_tool_p3 green nlib.srf_tool_p4 green nurbs.b_spline_surface_n_lib_p1 green nurbs.b_spline_surface_n_lib_p2 green nurbs.b_spline_surface_p1 green nurbs.b_spline_surface_p2 green surface.offset_surface green surface.surface_p1 green surface.surface_p2 partial
Soft dependencies: none
Dependents: none
Soft dependents: none
Upstream functions
No upstream functions listed in harness/callgraph/units.json.
Module file-header table (9 rows)
| Rust | Upstream |
|---|---|
[Surface::approximate_surface], [ApproximatedSurface] | SmSurface::ApproximateSurface |
[Surface::approximate_surface_ignoring_status] | the same, for a caller that ignores its status |
[Surface::compute_cubic_bezier_approx] | SmSurface::ComputeCubicBezierApprox |
[CubicBezierSurface] | SmCubicBezierSurface (its points only) |
root_surface (private) | GetRootSurface (virtual) |
[BSplineSurface::degree_elevate] | SmBSplineSurface::DegreeElevate |
[BSplineSurface::insert_knots] | SmBSplineSurface::InsertKnots (NLib form) |
[BSplineSurface::insert_one_knot] | SmBSplineSurface::InsertOneKnot |
[BSplineSurface::remove_knots] | SmBSplineSurface::RemoveKnots |
Upstream tests reaching this unit
none