solidcore

Units / curve

curve.crv_in_volume green

Layer
14
Upstream lines
949
Functions
27
Rust module
curve::crv_in_volume

Status history

Oct 12Nov 25
  1. todo 949 lines
  2. partial 949 lines
  3. green 949 lines

Source: crates/solidcore/src/curve/crv_in_volume.rs

Upstream: source/SMLib/inc/SmCrvInVolume.h, source/SMLib/src/SmCrvInVolume.cpp

Port-plan notes

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

PR #1315: MakeExactBSplineIfPossible (with SmVolume::MakeExactBSplineOutCurveFrom{In,Param}Space and the MakeExactBSpline1stOutCurve of SmVolume/SmBSplineVolume/SmTransform here; the SmBendVolume/SmUnbendVolume/SmTwistVolume overrides beside their volumes, all in no unit) ported; 424 exact_volume_* cases compared (local: 2454 cases, 2454 pass, 0 deferred). main CI e33985411 (2026-10-23): PASS curve.crv_in_volume cases=2030 passed=2030 failed=0 deferred=0. difftest 2030 cases, all pass (PR #437: GetKnots classifies through intersect::curve_class::p8::volume_discontinuity_intervals with the caller Kernel and returns its written knots with a failing status; was 1855 pass, 175 deferred on intersect.curve_class_p4; surface.volume_p1 and surface.volume_p2 wired); 27 fns; largest: SmCrvInVolume::GetKnots, SmCrvInVolume::Evaluate, SmCrvInVolume::ReadFromDB, SmCrvInVolume::GenerateMults; cycle back-edges (call into later units; stub or co-port): surface.volume_p1(14), curve.curve_p5(3), intersect.curve_class_p1(2), surface.volume_p2(2), intersect.curve_class_p4(1), intersect.curve_class_p8(1); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit Re-run (PR #137, constructor stub retagged UNPORTED(intersect.curve_class_p2): SmCurveClassification::ReSet): 2030 cases, 1855 pass, 175 deferred (intersect.curve_class_p2 175), 0 failed, --perturb SENSITIVE 1855/1855. PR #1334 (stacked on #1286): derived Clone replaced by the native copy constructor; new difftest op clone (FFI CopyCtor 13) and 15 fixtures/curve.crv_in_volume/clone_ctor.json cases, so the unit holds 2053 cases. Failing before, same inputs (--unit curve.crv_in_volume --filter clone_ctor): cases=15 passed=7 failed=8 deferred=0 max_rel_err=1; the five borrowed-raw-base (owner 0/2) and the owner0-current-cache cases differ at the copy's operator== with the original (values.out[54] or out[64]: C++ 1, Rust 0), and owner4/owner6 also at the normalized owner flag (out[0]: C++ 0, Rust 4/6). The owned 1/3 fix-up controls and the Hermite controls passed before. Raw knot values move only ~1e-12, below the 1e-9 tolerance, so the operator== flag is the proof. After the manual Clone (full unit): 2053 cases, 2053 passed, 0 failed, 0 deferred, max_rel_err 0, status green; all 15 clone cases pass and the pre-existing cases are unchanged. The identity SmTransform volume is the only volume this harness builds, so the by-value volume field copy is what is compared; the B-spline volume Copy knot fix-up stays the pre-existing copy() behaviour and is not newly proved. FFI guard regression (in-unit test clone_ctor_rejects_owned_hermite, calls validate directly): CopyCtor rejects an owned-Hermite input and accepts the borrowed one. [PR #1702: AssertValid native report comparison, 300 assert_valid_N cases over volume chains; 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,777
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 geom.extent1d green geom.object green geom.tol green geom.vector3d green topology.database_io green

Soft dependencies: geom.axis2_placement green geom.context green geom.extent3d green geom.vector2d green

Dependents: none

Soft dependents: curve.curve_p5 partial surface.unbend_volume green surface.volume_p1 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmCrvInVolume::SmCrvInVolumeSmCrvInVolume.h:636[CrvInVolume]
SmCrvInVolume::GetNaturalIntervalSmCrvInVolume.h:1491[CrvInVolume::natural_interval]
SmCrvInVolume::SetContextSmCrvInVolume.h:1823SetContext (dropped)
SmCrvInVolume::OwnsCurveSmCrvInVolume.h:1891[CrvInVolume::owns_curve], [CrvInVolume::owns_volume]
SmCrvInVolume::OwnsVolumeSmCrvInVolume.h:1901[CrvInVolume::owns_curve], [CrvInVolume::owns_volume]
SmCrvInVolume::IsAnalyticSmCrvInVolume.h:1911[CrvInVolume::is_analytic], [CrvInVolume::is_bounded]
SmCrvInVolume::IsBoundedSmCrvInVolume.h:1921[CrvInVolume::is_analytic], [CrvInVolume::is_bounded]
SmCrvInVolume::GetClassStringSmCrvInVolume.h:2401[CrvInVolume::TYPE], [CrvInVolume::type_code], [CrvInVolume::type_string], [CrvInVolume::class_string]
SmCrvInVolume::GetTypeSmCrvInVolume.h:2401[CrvInVolume::TYPE], [CrvInVolume::type_code], [CrvInVolume::type_string], [CrvInVolume::class_string]
SmCrvInVolume::GetTypeStringSmCrvInVolume.h:2401[CrvInVolume::TYPE], [CrvInVolume::type_code], [CrvInVolume::type_string], [CrvInVolume::class_string]
SmCrvInVolume::SmCrvInVolumeSmCrvInVolume.cpp:2568[CrvInVolume]
SmCrvInVolume::SmCrvInVolumeSmCrvInVolume.cpp:10258[CrvInVolume]
SmCrvInVolume::operator==SmCrvInVolume.cpp:16732[CrvInVolume::approx_eq]
SmCrvInVolume::CopySmCrvInVolume.cpp:20510[CrvInVolume::copy], Clone
SmCrvInVolume::~SmCrvInVolumeSmCrvInVolume.cpp:24711Drop (implicit)
SmCrvInVolume::EditParameterizationSmCrvInVolume.cpp:26449[CrvInVolume::edit_parameterization]
SmCrvInVolume::EvaluateSmCrvInVolume.cpp:322163[CrvInVolume::evaluate]
SmCrvInVolume::EvaluatePointSmCrvInVolume.cpp:49429[CrvInVolume::evaluate_point]
SmCrvInVolume::CalculateContinuitiesSmCrvInVolume.cpp:62355[CrvInVolume::calculate_continuities]
SmCrvInVolume::GetKnotsSmCrvInVolume.cpp:717177[CrvInVolume::knots], [CrvInVolume::knots_ref]
SmCrvInVolume::GenerateMultsSmCrvInVolume.cpp:91173[CrvInVolume::generate_mults]
SmCrvInVolume::GetNumberNaturalKnotsSmCrvInVolume.cpp:99223[CrvInVolume::number_natural_knots]
SmCrvInVolume::ReverseParameterizationSmCrvInVolume.cpp:119418[CrvInVolume::reverse_parameterization]
SmCrvInVolume::TrimSmCrvInVolume.cpp:121832[CrvInVolume::trim]
SmCrvInVolume::TransformSmCrvInVolume.cpp:125725[CrvInVolume::transform]
SmCrvInVolume::ReadFromDBSmCrvInVolume.cpp:1404105[CrvInVolume::read_from_db]
SmCrvInVolume::IsKindOfSmCrvInVolume.cpp:15144[CrvInVolume::is_kind_of]
Module file-header table (25 rows)
RustUpstream
[CrvInVolume]SmCrvInVolume
[CrvInVolume::new]SmCrvInVolume(SmCurve&, SmBoolean, SmVolume&, ULONG, ULONG, const SmContext*)
[CrvInVolume::copy], Clonecopy constructor, Copy
Drop (implicit)~SmCrvInVolume
[CrvInVolume::approx_eq]operator==
[CrvInVolume::TYPE], [CrvInVolume::type_code], [CrvInVolume::type_string], [CrvInVolume::class_string]GetType, GetTypeString, GetClassString (SM_COMMON)
[CrvInVolume::is_kind_of]IsKindOf
[CrvInVolume::natural_interval]GetNaturalInterval
[CrvInVolume::owns_curve], [CrvInVolume::owns_volume]OwnsCurve, OwnsVolume
[CrvInVolume::is_analytic], [CrvInVolume::is_bounded]IsAnalytic, IsBounded
[CrvInVolume::evaluate]Evaluate
[CrvInVolume::evaluate_point]EvaluatePoint
[CrvInVolume::calculate_continuities]CalculateContinuities
[CrvInVolume::knots], [CrvInVolume::knots_ref]GetKnots
[CrvInVolume::generate_mults]GenerateMults
[CrvInVolume::number_natural_knots]GetNumberNaturalKnots
[CrvInVolume::edit_parameterization]EditParameterization
[CrvInVolume::reverse_parameterization]ReverseParameterization
[CrvInVolume::trim]Trim
[CrvInVolume::transform]Transform
[CrvInVolume::read_from_db]ReadFromDB
[CrvInVolume::make_exact_b_spline_if_possible_with]MakeExactBSplineIfPossible
make_exact_b_spline_out_curve_from_{in,param}_space (private)SmVolume::MakeExactBSplineOutCurveFrom{In,Param}Space
make_exact_b_spline_1st_out_curve (private)SmVolume/SmBSplineVolume/SmTransform::MakeExactBSpline1stOutCurve
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