query.loop green
- Layer
- 42
- Upstream lines
- 830
- Functions
- 1
- Rust module
query::loop
Status history
- todo 830 lines
- partial 830 lines
- green 830 lines
Source: crates/solidcore/src/query/loop.rs
Upstream: source/SMLib/src/SmLoop.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
GREEN (SmSurface::GetSingularities wired to surface.surface_p3 in PR #52): 3040/3040 pass bit-identical, 0 deferred. Earlier PARTIAL (PR #63): difftest 3040 cases (40 fixture re-expressing the TestSmCreateRectangle / TestSmCreateRegularPolygon loops (CCW, CW, mixed edge use orientations, far-centre thin rectangle, tiny and large tolerances) and smTopoTest my_test_single_periodic_vertexuse (a seamless circle loop on a cylinder) + 3000 generated over real SmPlane / SmBSplineSurface / SmSurfOfRevolution (cylinder, cone, sphere, torus-like) faces with SmLine / SmCircle / SmBSplineCurve edges and 2D B-spline UV trims (lines, collinear polylines, rational arcs, wiggly and cusp-like curves, extended trims with sub-interval edges), seam edges used twice, open and star (winding 2) loops, vertex loops, 1e-3/1e3 scales, points on and near edges, vertices and domain sides), 2780 pass bit-identical, 260 deferred (surface.surface_p3 260: SmSurface::GetSingularities for a point and a loop end on a side of the natural domain), max_rel_err 0; 20k-seed run clean; --perturb SENSITIVE. ContainsUVPoint walks the arena topology (a loop id of a &mut Brep, PR #117) and calls SmEdgeuse::GetOrCreateUVTrimCurve in walk order; the FaceLoop view is gone. 1 fns; largest: SmLoop::ContainsUVPoint; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit [topology.edgeuse_p3 (PR #117): 3040 cases, 3040 pass, 0 failed, 0 deferred] The GetOrCreateUVTrimCurve stub is wired (no UNPORTED(topology.edgeuse_p3) left in query.loop; plan/findings.md, topology.edgeuse_p3).
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,120
- 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.extent2d green geom.tol green geom.vector3d green topology.loopuse green
Soft dependencies: curve.curve_p3 partial curve.curve_p5 partial curve.curve_p6 green geom.geom_utility_p1 green geom.solution_array green surface.surface_p2 partial surface.surface_p3 green topology.edge green topology.edgeuse_p1 green topology.edgeuse_p3 green topology.face_p2 partial
Dependents: none
Soft dependents: query.face_p2 green query.face_p3 green
Upstream functions
| Upstream function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmLoop::ContainsUVPoint | SmLoop.cpp:509 | 830 | [contains_uv_point] |
Module file-header table (5 rows)
| Rust | Upstream |
|---|---|
[contains_uv_point] | SmLoop::ContainsUVPoint |
[UvContainment] | its return value and out-params |
calc_quad_num (private) | sm_CalcQuadNum (file static, unit topology.loopuse) |
WindingHull (crate) | none (a shortcut for sm_AssertTestFace37) |
WalkExclusion (crate) | none (a shortcut for SmFace::PointClassify) |
Upstream tests reaching this unit
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, SM_API_test:TestSmCreateRectangle, SM_API_test:TestSmCreateRegularPolygon