solidcore

Units / intersect

intersect.surface_drop_lib_p3 green

Layer
33
Upstream lines
2,070
Functions
1
Rust module
intersect::surface_drop_lib::p3

Status history

Oct 12Nov 25
  1. todo 2,062 lines
  2. green 2,062 lines

Source: crates/solidcore/src/intersect/surface_drop_lib/p3.rs

Upstream: source/SMLib/src/SmSurfaceDropLib.cpp

Port-plan notes

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

1 fns; largest: SmSurface::DropCurve; unit-SCC #22 (220 units); 317 upstream test entry points reach this unit; PARTIAL (PR #463, from closed #136 by froglemonade2): SmSurface::DropCurve is Surface::drop_curve (the SmPlane override or the base body drop_curve_base). difftest 1529 cases (29 fixture, incl. the 2 Endcap drops query.brep gen0269 makes + 1500 generated), 1310 pass bit-identical (max_rel_err 0), 219 deferred (curve.crv_on_surf 219: SmCrvOnSurf over a non-B-spline surface), 0 failed; --perturb SENSITIVE (1312/1312 before main removed the 2 UB-68 plane fixtures). Wired every UNPORTED(intersect.surface_drop_lib_p3): surface::plane::p1, surface::surface::p8, intersect::surface_tracer, intersect::surface_drop_curve, nurbs::b_spline_surface_n_lib::p1, topology::edgeuse::p3, topology::brep::p9, blend::fillet_geom p1/p2/p6, blend::fillet_corner::p3, primitive::primitive_creation::p1 (CreateSphereNoPole). Wiring needed PR #512 (query tight box keeps its B-rep edits via LazyBrep). CI difftest on PR #463: 255 units, 148 passed, 107 partial, 0 failed; query.edge and topology.vertexuse promoted to green. The topology.vertexuse FFI now refuses B-rep values above 1e150 (HANG-29), as edgeuse_p2/p3, loopuse and face_p3 do. GREEN (PR #463, after #554): the final UV-curve check builds its SmCrvOnSurf on an evaluation copy of any surface kind, so the 219 curve.crv_on_surf deferrals compare: difftest 1529 cases, 1529 pass, 0 deferred, 0 failed, max_rel_err 0. PR #1534 (topology.brep_planar_section): the start point drop through a caller context now runs with the cache point testing off for the call (Surface::global_point_solve_into_with_context_point_test_off), as sChange1 (SmSurfaceDropLib.cpp:4315) turns it off for the whole DropCurve; the face test branch still classifies (follow-up).

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,532
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_cache green curve.curve_p2 green geom.a_object green geom.extent1d green geom.extent2d green geom.object green geom.solution_array green geom.tol green geom.vector3d green intersect.surface_drop_lib_p1 partial intersect.surface_drop_lib_p2 green nurbs.b_spline_curve_p1 green surface.offset_surface green surface.surface_p1 green surface.surface_p2 partial surface.surface_p3 green surface.surface_p4 green surface.surface_p5 green surface.surface_p7 green

Soft dependencies: curve.crv_on_surf green curve.curve_p4 green geom.vector2d green nurbs.b_spline_surface_p1 green

Dependents: none

Soft dependents: blend.fillet_corner_p3 partial blend.fillet_geom_p1 green blend.fillet_geom_p2 green blend.fillet_geom_p6 green primitive.primitive_creation_p1 green topology.brep_p9 green topology.edgeuse_p3 green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmSurface::DropCurveSmSurfaceDropLib.cpp:41942070[Surface::drop_curve]
Module file-header table (3 rows)
RustUpstream
[Surface::drop_curve]SmSurface::DropCurve (the virtual call: plane override, else the base body)
[Surface::drop_curve_face_tested]SmSurface::DropCurve of a face-owned surface (the start drop's PointClassify trim test on the caller's face)
[Surface::drop_curve_base], [DropCurveOut]SmSurface::DropCurve (the base body, called non-virtually)

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