curve.crv_on_surf green
- Layer
- 19
- Upstream lines
- 1,728
- Functions
- 38
- Rust module
curve::crv_on_surf
Status history
- todo 1,728 lines
- partial 1,728 lines
- green 1,728 lines
Source: crates/solidcore/src/curve/crv_on_surf.rs
Upstream: source/SMLib/inc/SmCrvOnSurf.h, source/SMLib/src/SmCrvOnSurf.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
GREEN, PR #563, integrated with main 9fd1c67c5: 2107 native Linux ARM64 cases, 2107 bit-identical passes with values, 0 failures, 0 deferred; --perturb SENSITIVE 2107/2107. All 1800 main passes retained and all 307 uncached-break deferrals now pass. Shared knot queries retain their value-only break cache; base DropPoint copies back only the cache writes its solver path actually made, including writes before errors. No unconditional knot computation after local solves. classify_against_surface calls the existing UV discontinuity classifier. Clone caches are independent; breaks() returns an owned snapshot. Newly reached HasSeamProblem paths borrow the actual face surface, preserving its owner/tolerance. The mutable healer explicitly retains vertex/face and edge/face gap-cache writes, including sibling invalidations before errors, without copying geometry or topology back. Both exposed healer cases gen0125/gen0164 and all 25 script prefixes now compare bit-identically; their two permanent fixtures pass and --perturb detects 2/2. Focused downstream results against main 9fd1c67c5: heal.face_props 1431 pass/97 deferred/0 fail (+114 passes); intersect.curve_class_p4 2918/283/0 (+153); topology.face_p4 5426/80/0 (+50). Across nine focused units, 649 prior deferrals genuinely pass and 520 remaining deferrals change blocker; these are separate counts. Local healer p1/p2/p3 still encounter the documented ARM64 native hash conversion differences (#448); x86_64 CI remains the full gate. Historical pre-integration results were 569 new passes in five units; the 42 original seam-flag mismatches reached deeper deferrals, not 42 new passes. Historical concrete-Surface integration: 13 real SmOffsetSurface fixtures cover evaluation, derivatives, normals, supplied-knot approximation/reuse, ownership, close knots and post-error transform state. CrvOnSurf retains concrete Surface dispatch, owning Copy and exact shared snapshots. Both children and transform-map growth respect the current 32-level geometry bound. Requested derivative output <=4096; Hermite approximation <=8192 bisections; non-progressing/non-finite subdivision and infinite tangents error rather than loop. Prior focused offset fuzz 1000 had no differences/crashes/panics/timeouts; unfiltered fuzz had 6 documented malformed-database safety differences (findings.md). No guards, comparison tolerances or original inputs changed. Original co-port: smsurf_LiftSecond/ThirdDerivative (surface.surface_p2); Curve::ReadFromDB and SmTangentField base read wired. 38 fns; cycle back-edges: surface.surface_p2(14), surface.surface_p1(4), curve.curve_p5(3), intersect.curve_class_p1(2), surface.surface_p7(2), curve.curve_p1(1), intersect.curve_class_p4(1), intersect.curve_class_p8(1); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit. [PR #1702: AssertValid native report comparison, 300 generated av cases (B-spline surfaces only: SmOffsetSurface::AssertValid is unported); compound-curve owner links recorded for the checks.]
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
- 2,407
- 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_p2 green curve.curve_p3 partial curve.curve_p6 green geom.extent1d green geom.extent2d green geom.object green geom.solution_array green geom.vector2d green geom.vector3d green nurbs.b_spline_curve_p1 green topology.database_io green
Soft dependencies: curve.line green curve.tangent_field green geom.axis2_placement green geom.context green geom.tol green nurbs.b_spline_curve_p2 green
Dependents: blend.fillet_intersector green intersect.curve_class_p8 green intersect.curve_class_p9 green query.face_p3 green surface.surface_p11 green topology.edgeuse_p3 green topology.face_p2 partial topology.face_p4 green
Soft dependents: curve.curve_p5 partial intersect.curve_class_p1 green intersect.curve_class_p2 green intersect.curve_class_p5 green intersect.curve_class_p6 green intersect.curve_class_p7 green intersect.surface_drop_curve green intersect.surface_drop_lib_p3 green offset.offset_geometry_creation partial query.face_p1 green surface.surface_p4 green surface.surface_p9 green topology.brep_p1 green topology.brep_p3 partial topology.brep_p7 green topology.edgeuse_p2 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmCrvOnSurf::SmCrvOnSurf | SmCrvOnSurf.h:50 | 11 | [CrvOnSurf] |
SmCrvOnSurf::SmCrvOnSurf | SmCrvOnSurf.h:74 | 8 | [CrvOnSurf] |
SmCrvOnSurf::GetNaturalInterval | SmCrvOnSurf.h:186 | 1 | [CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d] |
SmCrvOnSurf::GetUVCurve | SmCrvOnSurf.h:261 | 1 | [CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d] |
SmCrvOnSurf::GetBaseSurface | SmCrvOnSurf.h:262 | 1 | [CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d] |
SmCrvOnSurf::GetBSApproxMaxGap3d | SmCrvOnSurf.h:264 | 1 | [CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d] |
SmCrvOnSurf::SetContext | SmCrvOnSurf.h:274 | 4 | SetContext (dropped) |
SmCrvOnSurf::IsAnalytic | SmCrvOnSurf.h:292 | 1 | [CrvOnSurf::is_analytic], [CrvOnSurf::is_bounded] |
SmCrvOnSurf::IsBounded | SmCrvOnSurf.h:293 | 1 | [CrvOnSurf::is_analytic], [CrvOnSurf::is_bounded] |
SmCrvOnSurf::GetClassString | SmCrvOnSurf.h:367 | 1 | [CrvOnSurf::TYPE], [CrvOnSurf::type_code], [CrvOnSurf::type_string], [CrvOnSurf::class_string] |
SmCrvOnSurf::GetType | SmCrvOnSurf.h:367 | 1 | [CrvOnSurf::TYPE], [CrvOnSurf::type_code], [CrvOnSurf::type_string], [CrvOnSurf::class_string] |
SmCrvOnSurf::GetTypeString | SmCrvOnSurf.h:367 | 1 | [CrvOnSurf::TYPE], [CrvOnSurf::type_code], [CrvOnSurf::type_string], [CrvOnSurf::class_string] |
SmCrvOnSurf::SetAll | SmCrvOnSurf.cpp:18 | 111 | [CrvOnSurf::new] |
SmCrvOnSurf::SmCrvOnSurf | SmCrvOnSurf.cpp:186 | 59 | [CrvOnSurf] |
SmCrvOnSurf::operator== | SmCrvOnSurf.cpp:252 | 33 | [CrvOnSurf::approx_eq] |
SmCrvOnSurf::Copy | SmCrvOnSurf.cpp:291 | 10 | [CrvOnSurf::copy], Clone |
SmCrvOnSurf::~SmCrvOnSurf | SmCrvOnSurf.cpp:308 | 13 | Drop (implicit) |
SmCrvOnSurf::ApproximateCurve | SmCrvOnSurf.cpp:348 | 41 | [CrvOnSurf::approximate_curve] |
SmCrvOnSurf::EditParameterization | SmCrvOnSurf.cpp:395 | 45 | [CrvOnSurf::edit_parameterization] |
SmCrvOnSurf::Evaluate | SmCrvOnSurf.cpp:449 | 149 | [CrvOnSurf::evaluate] |
SmCrvOnSurf::EvaluatePoint | SmCrvOnSurf.cpp:607 | 18 | [CrvOnSurf::evaluate_point] |
SmCrvOnSurf::EvaluateUVPoint | SmCrvOnSurf.cpp:633 | 18 | [CrvOnSurf::evaluate_uv_point] |
SmCrvOnSurf::EvaluateSurfaceNormal | SmCrvOnSurf.cpp:747 | 56 | [CrvOnSurf::evaluate_surface_normal] |
SmCrvOnSurf::EvaluateSurface1stDerivDerivs | SmCrvOnSurf.cpp:811 | 42 | [CrvOnSurf::evaluate_surface_1st_deriv_derivs] |
SmCrvOnSurf::CalculateBoundingBox | SmCrvOnSurf.cpp:862 | 27 | [CrvOnSurf::calculate_bounding_box] |
SmCrvOnSurf::CalculateContinuities | SmCrvOnSurf.cpp:909 | 56 | [CrvOnSurf::calculate_continuities] |
SmCrvOnSurf::DropPoint | SmCrvOnSurf.cpp:1049 | 85 | [CrvOnSurf::drop_point] |
SmCrvOnSurf::GetKnots | SmCrvOnSurf.cpp:1145 | 126 | [CrvOnSurf::knots] |
SmCrvOnSurf::GetNumberNaturalKnots | SmCrvOnSurf.cpp:1279 | 23 | [CrvOnSurf::number_natural_knots] |
SmCrvOnSurf::GetOrCreateBSApproxPointer | SmCrvOnSurf.cpp:1309 | 69 | [CrvOnSurf::get_or_create_bs_approx] |
SmCrvOnSurf::SetUVCurve | SmCrvOnSurf.cpp:1400 | 13 | [CrvOnSurf::set_uv_curve] |
SmCrvOnSurf::ReverseParameterization | SmCrvOnSurf.cpp:1419 | 18 | [CrvOnSurf::reverse_parameterization] |
SmCrvOnSurf::Trim | SmCrvOnSurf.cpp:1443 | 33 | [CrvOnSurf::trim] |
SmCrvOnSurf::Transform | SmCrvOnSurf.cpp:1486 | 34 | [CrvOnSurf::transform] |
sm_EvalDistAndDev | SmCrvOnSurf.cpp:1530 | 103 | eval_dist_and_dev (private) |
SmCrvOnSurf::SurfaceCurveMaxDistanceBetween | SmCrvOnSurf.cpp:1663 | 418 | [CrvOnSurf::surface_curve_max_distance_between], [SurfaceCurveGap] |
SmCrvOnSurf::ReadFromDB | SmCrvOnSurf.cpp:2198 | 92 | [CrvOnSurf::read_from_db] |
SmCrvOnSurf::IsKindOf | SmCrvOnSurf.cpp:2295 | 4 | [CrvOnSurf::is_kind_of] |
Module file-header table (32 rows)
| Rust | Upstream |
|---|---|
[CrvOnSurf] | SmCrvOnSurf |
[CrvOnSurf::new] | SmCrvOnSurf(rUVCurve, rSurface, ...), SetAll |
[CrvOnSurf::from_uv_line] | SmCrvOnSurf(rStartUV, rEndUV, rSurface, ...) |
[CrvOnSurf::empty] | SmCrvOnSurf() (empty constructor for I/O) |
[CrvOnSurf::copy], Clone | copy constructor, Copy |
Drop (implicit) | ~SmCrvOnSurf |
[CrvOnSurf::approx_eq] | operator== |
[CrvOnSurf::approximate_curve] | ApproximateCurve |
[CrvOnSurf::edit_parameterization] | EditParameterization |
[CrvOnSurf::evaluate] | Evaluate |
[CrvOnSurf::evaluate_point] | EvaluatePoint |
[CrvOnSurf::evaluate_uv_point] | EvaluateUVPoint |
[CrvOnSurf::evaluate_surface_normal] | EvaluateSurfaceNormal |
[CrvOnSurf::evaluate_surface_1st_deriv_derivs] | EvaluateSurface1stDerivDerivs |
[CrvOnSurf::calculate_bounding_box] | CalculateBoundingBox |
[CrvOnSurf::calculate_continuities] | CalculateContinuities |
[CrvOnSurf::drop_point] | DropPoint |
[CrvOnSurf::knots] | GetKnots |
[CrvOnSurf::number_natural_knots] | GetNumberNaturalKnots |
[CrvOnSurf::get_or_create_bs_approx] | GetOrCreateBSApproxPointer |
[CrvOnSurf::set_uv_curve] | SetUVCurve |
[CrvOnSurf::reverse_parameterization] | ReverseParameterization |
[CrvOnSurf::trim] | Trim |
[CrvOnSurf::transform] | Transform |
eval_dist_and_dev (private) | sm_EvalDistAndDev (static) |
[CrvOnSurf::surface_curve_max_distance_between], [SurfaceCurveGap] | SurfaceCurveMaxDistanceBetween |
[CrvOnSurf::read_from_db] | ReadFromDB |
[CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d] | GetNaturalInterval, GetUVCurve, GetBaseSurface, GetBSApproxMaxGap3d |
[CrvOnSurf::is_analytic], [CrvOnSurf::is_bounded] | IsAnalytic, IsBounded |
[CrvOnSurf::TYPE], [CrvOnSurf::type_code], [CrvOnSurf::type_string], [CrvOnSurf::class_string] | GetType, GetTypeString, GetClassString (SM_COMMON) |
[CrvOnSurf::is_kind_of] | IsKindOf |
SetContext (dropped) | SetContext |
Upstream tests reaching this unit
prog_test:my_test_extent3d, prog_test:my_test_vector2d, prog_test:my_test_surface_closest_point, prog_test:my_test_drop_point, prog_test:my_test_matrix, prog_test:my_test_reversed_line_join