solidcore

Units / query

query.edge green

Layer
41
Upstream lines
1,025
Functions
5
Rust module
query::edge

Status history

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

Source: crates/solidcore/src/query/edge.rs

Upstream: source/SMLib/src/SmEdge.cpp

Port-plan notes

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

5 fns; largest: SmEdge::RadialSectorClassify, SmEdge::RadialSectorOfCurveClassify, SmEdge::CalculateBoundingBox, SmEdge::CalculateTightBoundingBox; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; PORTED (PR #89): difftest 1368 cases (768 fixtures + 600 generated), 1190 pass, 178 deferred (topology.edgeuse_p2 SmEdgeuse::EvaluateBinormalStepOff 178), 0 fail, max_rel_err 0; curve.curve_p9 CalculateTightBoundingBox wired at merge; the radial sector classifications stay deferred: the query::edge step-off stub keeps upstream's in-place out-params on failure, and topology::edgeuse::p2::evaluate_binormal_step_off still defers to topology.edgeuse_p3 (EvaluateBinormal) PR #163 adds radial_sector_classify_between for independent operand arenas, avoiding aliasing of equal local ids. Cross-operand C++ cases live in fixtures/boolean.merge_p1/review.json; full step-off paths remain deferred to topology.edgeuse_p2. [topology.edgeuse_p3 wired (PR #117): SmEdge::RadialSectorClassify and RadialSectorOfCurveClassify now call SmEdgeuse::EvaluateBinormalStepOff (topology.edgeuse_p2; both take &mut Brep). 1368 cases, 1316 pass, 0 failed, 52 deferred (intersect.surface_drop_lib_p3 52). The two cases that disagreed when first wired (gen0091, gen0261) were a harness gap, not the port: the shim exported SmPlane faces as B-spline surfaces, so the Rust side saw no plane (bAllPlanes, IsKindOf(SmPlane_TYPE)) and ended the classification differently; the shim now exports the whole plane (1 O X Y su sv umin vmin umax vmax) like sc_edgeuse_graph.h, so those faces take the plane paths (28 more cases defer on the global point solve instead of passing on a B-spline stand-in)] GREEN (promoted by intersect.surface_drop_lib_p3, PR #463): 1368 cases, 1368 pass, 0 deferred, 0 failed, max_rel_err 0.

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
1,368
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.extent3d green geom.solution_array green geom.vector3d green topology.edge green topology.edgeuse_p1 green

Soft dependencies: curve.curve_p1 green curve.curve_p6 green curve.curve_p9 green geom.polar_box green geom.pseudo_box green geom.tol green surface.surface_p2 partial topology.edgeuse_p2 green topology.face_p2 partial topology.vertex green

Dependents: query.api_queries green

Soft dependents: boolean.merge_p2 green boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green offset.offset_geometry_creation partial query.brep green query.face_p1 green query.face_p3 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmEdge::CalculateBoundingBoxSmEdge.cpp:23750[calculate_bounding_box]
SmEdge::CalculateTightBoundingBoxSmEdge.cpp:30641[calculate_tight_bounding_box]
SmEdge::ClosestPointSmEdge.cpp:43238[closest_point], [ClosestPoint]
SmEdge::RadialSectorClassifySmEdge.cpp:1050678[radial_sector_classify], [radial_sector_classify_between], [RadialSectorClass]
SmEdge::RadialSectorOfCurveClassifySmEdge.cpp:2030218[radial_sector_of_curve_classify], [CurveSectorClass]
Module file-header table (9 rows)
RustUpstream
[calculate_bounding_box]SmEdge::CalculateBoundingBox
[calculate_tight_bounding_box]SmEdge::CalculateTightBoundingBox
[closest_point], [ClosestPoint]SmEdge::ClosestPoint
[closest_point_to_ray], [RayClosestPoint](none: the edge point nearest a ray, [super::curve::closest_point_to_ray] on the edge's curve)
[radial_sector_classify], [radial_sector_classify_between], [RadialSectorClass]SmEdge::RadialSectorClassify
[radial_sector_of_curve_classify], [CurveSectorClass]SmEdge::RadialSectorOfCurveClassify
[edge_vertices]SmEdge::GetVertices(SmTArray&, ULONG*) (CO-PORTED, topology.edge)
[edge_faces]SmEdge::GetFaces (CO-PORTED, topology.edge)
evaluate_binormal_step_off (private)SmEdgeuse::EvaluateBinormalStepOff (topology.edgeuse_p2, [evaluate_binormal_step_off_into])

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