solidcore

Units / curve

curve.crv_on_surf green

Layer
19
Upstream lines
1,728
Functions
38
Rust module
curve::crv_on_surf

Status history

Oct 12Nov 25
  1. todo 1,728 lines
  2. partial 1,728 lines
  3. 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 functionDefined atLinesRust (from the file header)
SmCrvOnSurf::SmCrvOnSurfSmCrvOnSurf.h:5011[CrvOnSurf]
SmCrvOnSurf::SmCrvOnSurfSmCrvOnSurf.h:748[CrvOnSurf]
SmCrvOnSurf::GetNaturalIntervalSmCrvOnSurf.h:1861[CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d]
SmCrvOnSurf::GetUVCurveSmCrvOnSurf.h:2611[CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d]
SmCrvOnSurf::GetBaseSurfaceSmCrvOnSurf.h:2621[CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d]
SmCrvOnSurf::GetBSApproxMaxGap3dSmCrvOnSurf.h:2641[CrvOnSurf::natural_interval], [CrvOnSurf::uv_curve], [CrvOnSurf::surface], [CrvOnSurf::bs_approx_max_gap_3d]
SmCrvOnSurf::SetContextSmCrvOnSurf.h:2744SetContext (dropped)
SmCrvOnSurf::IsAnalyticSmCrvOnSurf.h:2921[CrvOnSurf::is_analytic], [CrvOnSurf::is_bounded]
SmCrvOnSurf::IsBoundedSmCrvOnSurf.h:2931[CrvOnSurf::is_analytic], [CrvOnSurf::is_bounded]
SmCrvOnSurf::GetClassStringSmCrvOnSurf.h:3671[CrvOnSurf::TYPE], [CrvOnSurf::type_code], [CrvOnSurf::type_string], [CrvOnSurf::class_string]
SmCrvOnSurf::GetTypeSmCrvOnSurf.h:3671[CrvOnSurf::TYPE], [CrvOnSurf::type_code], [CrvOnSurf::type_string], [CrvOnSurf::class_string]
SmCrvOnSurf::GetTypeStringSmCrvOnSurf.h:3671[CrvOnSurf::TYPE], [CrvOnSurf::type_code], [CrvOnSurf::type_string], [CrvOnSurf::class_string]
SmCrvOnSurf::SetAllSmCrvOnSurf.cpp:18111[CrvOnSurf::new]
SmCrvOnSurf::SmCrvOnSurfSmCrvOnSurf.cpp:18659[CrvOnSurf]
SmCrvOnSurf::operator==SmCrvOnSurf.cpp:25233[CrvOnSurf::approx_eq]
SmCrvOnSurf::CopySmCrvOnSurf.cpp:29110[CrvOnSurf::copy], Clone
SmCrvOnSurf::~SmCrvOnSurfSmCrvOnSurf.cpp:30813Drop (implicit)
SmCrvOnSurf::ApproximateCurveSmCrvOnSurf.cpp:34841[CrvOnSurf::approximate_curve]
SmCrvOnSurf::EditParameterizationSmCrvOnSurf.cpp:39545[CrvOnSurf::edit_parameterization]
SmCrvOnSurf::EvaluateSmCrvOnSurf.cpp:449149[CrvOnSurf::evaluate]
SmCrvOnSurf::EvaluatePointSmCrvOnSurf.cpp:60718[CrvOnSurf::evaluate_point]
SmCrvOnSurf::EvaluateUVPointSmCrvOnSurf.cpp:63318[CrvOnSurf::evaluate_uv_point]
SmCrvOnSurf::EvaluateSurfaceNormalSmCrvOnSurf.cpp:74756[CrvOnSurf::evaluate_surface_normal]
SmCrvOnSurf::EvaluateSurface1stDerivDerivsSmCrvOnSurf.cpp:81142[CrvOnSurf::evaluate_surface_1st_deriv_derivs]
SmCrvOnSurf::CalculateBoundingBoxSmCrvOnSurf.cpp:86227[CrvOnSurf::calculate_bounding_box]
SmCrvOnSurf::CalculateContinuitiesSmCrvOnSurf.cpp:90956[CrvOnSurf::calculate_continuities]
SmCrvOnSurf::DropPointSmCrvOnSurf.cpp:104985[CrvOnSurf::drop_point]
SmCrvOnSurf::GetKnotsSmCrvOnSurf.cpp:1145126[CrvOnSurf::knots]
SmCrvOnSurf::GetNumberNaturalKnotsSmCrvOnSurf.cpp:127923[CrvOnSurf::number_natural_knots]
SmCrvOnSurf::GetOrCreateBSApproxPointerSmCrvOnSurf.cpp:130969[CrvOnSurf::get_or_create_bs_approx]
SmCrvOnSurf::SetUVCurveSmCrvOnSurf.cpp:140013[CrvOnSurf::set_uv_curve]
SmCrvOnSurf::ReverseParameterizationSmCrvOnSurf.cpp:141918[CrvOnSurf::reverse_parameterization]
SmCrvOnSurf::TrimSmCrvOnSurf.cpp:144333[CrvOnSurf::trim]
SmCrvOnSurf::TransformSmCrvOnSurf.cpp:148634[CrvOnSurf::transform]
sm_EvalDistAndDevSmCrvOnSurf.cpp:1530103eval_dist_and_dev (private)
SmCrvOnSurf::SurfaceCurveMaxDistanceBetweenSmCrvOnSurf.cpp:1663418[CrvOnSurf::surface_curve_max_distance_between], [SurfaceCurveGap]
SmCrvOnSurf::ReadFromDBSmCrvOnSurf.cpp:219892[CrvOnSurf::read_from_db]
SmCrvOnSurf::IsKindOfSmCrvOnSurf.cpp:22954[CrvOnSurf::is_kind_of]
Module file-header table (32 rows)
RustUpstream
[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], Clonecopy 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