curve.crv_in_volume green
- Layer
- 14
- Upstream lines
- 949
- Functions
- 27
- Rust module
curve::crv_in_volume
Status history
- todo 949 lines
- partial 949 lines
- 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 function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmCrvInVolume::SmCrvInVolume | SmCrvInVolume.h:63 | 6 | [CrvInVolume] |
SmCrvInVolume::GetNaturalInterval | SmCrvInVolume.h:149 | 1 | [CrvInVolume::natural_interval] |
SmCrvInVolume::SetContext | SmCrvInVolume.h:182 | 3 | SetContext (dropped) |
SmCrvInVolume::OwnsCurve | SmCrvInVolume.h:189 | 1 | [CrvInVolume::owns_curve], [CrvInVolume::owns_volume] |
SmCrvInVolume::OwnsVolume | SmCrvInVolume.h:190 | 1 | [CrvInVolume::owns_curve], [CrvInVolume::owns_volume] |
SmCrvInVolume::IsAnalytic | SmCrvInVolume.h:191 | 1 | [CrvInVolume::is_analytic], [CrvInVolume::is_bounded] |
SmCrvInVolume::IsBounded | SmCrvInVolume.h:192 | 1 | [CrvInVolume::is_analytic], [CrvInVolume::is_bounded] |
SmCrvInVolume::GetClassString | SmCrvInVolume.h:240 | 1 | [CrvInVolume::TYPE], [CrvInVolume::type_code], [CrvInVolume::type_string], [CrvInVolume::class_string] |
SmCrvInVolume::GetType | SmCrvInVolume.h:240 | 1 | [CrvInVolume::TYPE], [CrvInVolume::type_code], [CrvInVolume::type_string], [CrvInVolume::class_string] |
SmCrvInVolume::GetTypeString | SmCrvInVolume.h:240 | 1 | [CrvInVolume::TYPE], [CrvInVolume::type_code], [CrvInVolume::type_string], [CrvInVolume::class_string] |
SmCrvInVolume::SmCrvInVolume | SmCrvInVolume.cpp:25 | 68 | [CrvInVolume] |
SmCrvInVolume::SmCrvInVolume | SmCrvInVolume.cpp:102 | 58 | [CrvInVolume] |
SmCrvInVolume::operator== | SmCrvInVolume.cpp:167 | 32 | [CrvInVolume::approx_eq] |
SmCrvInVolume::Copy | SmCrvInVolume.cpp:205 | 10 | [CrvInVolume::copy], Clone |
SmCrvInVolume::~SmCrvInVolume | SmCrvInVolume.cpp:247 | 11 | Drop (implicit) |
SmCrvInVolume::EditParameterization | SmCrvInVolume.cpp:264 | 49 | [CrvInVolume::edit_parameterization] |
SmCrvInVolume::Evaluate | SmCrvInVolume.cpp:322 | 163 | [CrvInVolume::evaluate] |
SmCrvInVolume::EvaluatePoint | SmCrvInVolume.cpp:494 | 29 | [CrvInVolume::evaluate_point] |
SmCrvInVolume::CalculateContinuities | SmCrvInVolume.cpp:623 | 55 | [CrvInVolume::calculate_continuities] |
SmCrvInVolume::GetKnots | SmCrvInVolume.cpp:717 | 177 | [CrvInVolume::knots], [CrvInVolume::knots_ref] |
SmCrvInVolume::GenerateMults | SmCrvInVolume.cpp:911 | 73 | [CrvInVolume::generate_mults] |
SmCrvInVolume::GetNumberNaturalKnots | SmCrvInVolume.cpp:992 | 23 | [CrvInVolume::number_natural_knots] |
SmCrvInVolume::ReverseParameterization | SmCrvInVolume.cpp:1194 | 18 | [CrvInVolume::reverse_parameterization] |
SmCrvInVolume::Trim | SmCrvInVolume.cpp:1218 | 32 | [CrvInVolume::trim] |
SmCrvInVolume::Transform | SmCrvInVolume.cpp:1257 | 25 | [CrvInVolume::transform] |
SmCrvInVolume::ReadFromDB | SmCrvInVolume.cpp:1404 | 105 | [CrvInVolume::read_from_db] |
SmCrvInVolume::IsKindOf | SmCrvInVolume.cpp:1514 | 4 | [CrvInVolume::is_kind_of] |
Module file-header table (25 rows)
| Rust | Upstream |
|---|---|
[CrvInVolume] | SmCrvInVolume |
[CrvInVolume::new] | SmCrvInVolume(SmCurve&, SmBoolean, SmVolume&, ULONG, ULONG, const SmContext*) |
[CrvInVolume::copy], Clone | copy 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