curve.projected_curve green
- Layer
- 14
- Upstream lines
- 569
- Functions
- 25
- Rust module
curve::projected_curve
Status history
- todo 569 lines
- green 569 lines
Source: crates/solidcore/src/curve/projected_curve.rs
Upstream: source/SMLib/inc/SmProjectedCurve.h, source/SMLib/src/SmProjectedCurve.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
Queue integration: merged main 7ce513a43 and explicitly set raw_knots=false in the four newly added exact-volume generator literals, preserving ordinary constructor knot fix-up and the existing sampling order. Missing initializers caused E0063 before native execution in PR #1346 merge-group CI 40595282881; this is a compilation integration repair, not a numerical tolerance or fixture change. difftest full unit bg153 (after the copy-constructor Clone fix): 2747 cases, 2746 passed with values, 0 failed, 0 deferred, 1 rejected, max_rel_err 0. clone_ctor gate (family clone_ctor_raw_projected_*: gaps 1.5e-12 and 1.9e-12 at owns 0/1/2, an ordinary-gap control, two Hermite controls; 9 fixtures, ctor 0 only): before the fix 6 pass / 2 fail / 1 rejected, both failures the borrowed (owns0) raw-knot cases reporting a record-length mismatch (native out len 81 vs Rust 79: the derived Clone's B-spline copy merged a 1.5e-12/1.9e-12 knot pair, so its unique-knot list was one entry shorter and the comparator stopped there); after 8 newly compared cases pass, including the copy == original equality flag, 1 rejected. ProjectedCurve::Clone is now the copy constructor: a borrowed base is copied exactly (clone_exact_bounded, no knot fix-up, owner kept, the values upstream has when it shares the pointer), an owned or unsure one with Curve::clone (knot fix-up), the other members verbatim. Clone cannot fail, so an owned Hermite base (no Copy) is copied anyway; ProjectedCurve::copy keeps reporting that SM_ERR, and CloneCtor defines that input out of its domain (FFI validation rejects it, the native side reports the case rejected; a borrowed Hermite base is valid and compared). Earlier: difftest: 2727 cases, 0 deferred (green); wired curve.curve_p2 SmProjectedCurve::ReadFromDB back-edge. 25 fns; largest: SmProjectedCurve::ReadFromDB, SmProjectedCurve::Evaluate, SmProjectedCurve::Transform, SmProjectedCurve::EvaluatePoint; cycle back-edges (call into later units; stub or co-port): curve.curve_p5(2); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit [PR #1702: AssertValid native report comparison, 300 generated av cases; 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
- 3,047
- 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.axis2_placement green geom.object green geom.vector3d green topology.database_io green
Soft dependencies: none
Dependents: none
Soft dependents: curve.curve_p3 partial curve.curve_p5 partial curve.curve_p7 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmProjectedCurve::SetContext | SmProjectedCurve.h:74 | 2 | |
SmProjectedCurve::IsAnalytic | SmProjectedCurve.h:108 | 1 | [ProjectedCurve::is_analytic], [ProjectedCurve::is_bounded] |
SmProjectedCurve::IsBounded | SmProjectedCurve.h:109 | 1 | [ProjectedCurve::is_analytic], [ProjectedCurve::is_bounded] |
SmProjectedCurve::GetClassString | SmProjectedCurve.h:178 | 1 | [ProjectedCurve::TYPE], [ProjectedCurve::type_code], [ProjectedCurve::type_string], [ProjectedCurve::class_string] |
SmProjectedCurve::GetType | SmProjectedCurve.h:178 | 1 | [ProjectedCurve::TYPE], [ProjectedCurve::type_code], [ProjectedCurve::type_string], [ProjectedCurve::class_string] |
SmProjectedCurve::GetTypeString | SmProjectedCurve.h:178 | 1 | [ProjectedCurve::TYPE], [ProjectedCurve::type_code], [ProjectedCurve::type_string], [ProjectedCurve::class_string] |
SmProjectedCurve::SmProjectedCurve | SmProjectedCurve.cpp:39 | 28 | [ProjectedCurve] |
SmProjectedCurve::SmProjectedCurve | SmProjectedCurve.cpp:76 | 24 | [ProjectedCurve] |
SmProjectedCurve::operator== | SmProjectedCurve.cpp:107 | 30 | [ProjectedCurve::approx_eq] |
SmProjectedCurve::Copy | SmProjectedCurve.cpp:143 | 10 | [ProjectedCurve::copy] |
SmProjectedCurve::~SmProjectedCurve | SmProjectedCurve.cpp:159 | 6 | Drop (implicit) |
SmProjectedCurve::SetCanonical | SmProjectedCurve.cpp:173 | 36 | [ProjectedCurve::set_canonical] |
SmProjectedCurve::MakeOrthoNormal | SmProjectedCurve.cpp:215 | 24 | [ProjectedCurve::make_ortho_normal] |
SmProjectedCurve::EditParameterization | SmProjectedCurve.cpp:245 | 25 | [ProjectedCurve::edit_parameterization] |
SmProjectedCurve::GetNaturalInterval | SmProjectedCurve.cpp:277 | 6 | [ProjectedCurve::natural_interval] |
SmProjectedCurve::GetKnots | SmProjectedCurve.cpp:290 | 10 | [ProjectedCurve::knots] |
SmProjectedCurve::GetNumberNaturalKnots | SmProjectedCurve.cpp:306 | 23 | [ProjectedCurve::number_natural_knots] |
SmProjectedCurve::CalculateContinuities | SmProjectedCurve.cpp:336 | 18 | [ProjectedCurve::calculate_continuities] |
SmProjectedCurve::ReverseParameterization | SmProjectedCurve.cpp:360 | 18 | [ProjectedCurve::reverse_parameterization] |
SmProjectedCurve::Trim | SmProjectedCurve.cpp:384 | 26 | [ProjectedCurve::trim] |
SmProjectedCurve::Transform | SmProjectedCurve.cpp:417 | 52 | [ProjectedCurve::transform] |
SmProjectedCurve::Evaluate | SmProjectedCurve.cpp:477 | 79 | [ProjectedCurve::evaluate] |
SmProjectedCurve::EvaluatePoint | SmProjectedCurve.cpp:565 | 40 | [ProjectedCurve::evaluate_point] |
SmProjectedCurve::ReadFromDB | SmProjectedCurve.cpp:690 | 103 | [ProjectedCurve::read_from_db] |
SmProjectedCurve::IsKindOf | SmProjectedCurve.cpp:798 | 4 | [ProjectedCurve::is_kind_of] |
Module file-header table (23 rows)
| Rust | Upstream |
|---|---|
[ProjectedCurve] | SmProjectedCurve |
[OwnsCurve] | m_bOwnsCurve (SmBoolean: FALSE, TRUE, UNSURE) |
[ProjectedCurve::new] | SmProjectedCurve(const SmCurve*, ...) |
Clone | the copy constructor |
[ProjectedCurve::copy] | Copy |
Drop (implicit) | ~SmProjectedCurve |
[ProjectedCurve::approx_eq] | operator== |
[ProjectedCurve::set_canonical] | SetCanonical |
[ProjectedCurve::make_ortho_normal] | MakeOrthoNormal |
[ProjectedCurve::edit_parameterization] | EditParameterization |
[ProjectedCurve::natural_interval] | GetNaturalInterval |
[ProjectedCurve::knots] | GetKnots |
[ProjectedCurve::number_natural_knots] | GetNumberNaturalKnots |
[ProjectedCurve::calculate_continuities] | CalculateContinuities |
[ProjectedCurve::reverse_parameterization] | ReverseParameterization |
[ProjectedCurve::trim] | Trim |
[ProjectedCurve::transform] | Transform |
[ProjectedCurve::evaluate] | Evaluate |
[ProjectedCurve::evaluate_point] | EvaluatePoint |
[ProjectedCurve::read_from_db] | ReadFromDB |
[ProjectedCurve::is_analytic], [ProjectedCurve::is_bounded] | IsAnalytic, IsBounded |
[ProjectedCurve::TYPE], [ProjectedCurve::type_code], [ProjectedCurve::type_string], [ProjectedCurve::class_string] | GetType, GetTypeString, GetClassString (SM_COMMON) |
[ProjectedCurve::is_kind_of] | IsKindOf |
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