solidcore

Units / intersect

intersect.point_class green

Layer
30
Upstream lines
909
Functions
53
Rust module
intersect::point_class

Status history

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

Source: crates/solidcore/src/intersect/point_class.rs

Upstream: source/SMLib/inc/SmPointClass.h, source/SMLib/inc/SmSpaceBend.h, source/SMLib/inc/SmSpaceUnbend.h, source/SMLib/src/SmLineSegClass.cpp, source/SMLib/src/SmPointClass.cpp, source/SMLib/src/SmSpaceBend.cpp, source/SMLib/src/SmSpaceUnbend.cpp

Port-plan notes

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

GREEN (PR #673): difftest 2511 cases, 2511 pass, 0 fail, 0 deferred, max_rel_err 0. Stand-in Edgeuse in topology_zone_tol_3d falls back to ZONE_TOL_3D matching upstream SmTol::GetZoneTol3d for non-topology stand-in objects (the 3 former topology.edgeuse_p1 deferrals pass). PARTIAL (PR #635): difftest 2511 cases, 2508 pass, 0 fail, 3 deferred (topology.edgeuse_p1 3: stand-in edgeuses whose tolerance upstream reads from an object that is not an SmEdgeuse, so the port defers by design). MergeIntoObject and Combine on a vertex now run on the pool's B-rep (merge_into_brep, and the new combine_in_brep/CombineBrep), so the former 26 deferrals (topology.vertex 23 + edgeuse 3) are down to the 3 stand-ins: 7 generated merge cases and the 11 combine_104_*_sss fixtures plus 5 generated combine cases now compare status, new-topology counts/precedence and the classification state. Before: 26 deferred. PR #295 (stand-in vertex/edge/face objects as B-rep records, BareTopology, used when the case has no real one-face B-rep; merged with main 215f690e1 / #347): 2511 cases, 2466 pass, 0 fail, 45 deferred (topology.vertex 30, topology.edge 6, topology.face_p4 6, topology.edgeuse_p1 3); main 2411/100; --perturb 2466/2466. Topology members wired (branch wire/point-class-topology): GetCurve, IsConnectedTo/IsConnectedToAny, ComputePointParameters, FindObjPoint3D and the zone-tolerance fallbacks on SmVertex/SmEdge/SmEdgeuse/SmLoopuse/SmVertexuse/SmFace resolve through ClassGeometry::topology_entity (no hook keeps the Unported deferral; a target in another Brep is not connected); SmFace::IsConnectedTo stays UNPORTED(topology.face_p4), SetPoint and MergeIntoObject stay stubbed; this runner still uses stand-in objects so its counts are unchanged (2411 pass, 100 deferred, 0 failed); exercised through intersect.curve_class_p7. Before: PARTIAL: difftest 2511 cases (511 fixture: Combine precedence matrix, LoadFromIntersection kinds/offsets up to 9/8/7, curve and real SmEllipse/SmCircle projections, every class with a NULL object, tolerance sentinels incl. -SM_USE_DEFAULT; 2000 generated scripts), 2197 pass bit-identical, 314 deferred (surface.surface_p4 216, topology.vertex 49, topology.edge 27, topology.face_p2 15, topology.face_p4 4, topology.edgeuse_p1 3); review fixes: constructor stores its SmZoneTol3d as is, MergeIntoObject calls SmVertex::SetTolerance (SM_USE_OLDTOL), base SmTopology tolerance/IsConnectedTo for kinds without overrides, curve tolerance via Curve::edge; back-edges wired: surface.volume_p2 (SmVolume::GlobalPointSolve / EvaluatePoint; volume branch not exercised by the shim), SmTol point-classification overloads (geom.tol note), surface.trim_srf_cache face_point_classify now blocked only by query.face_p2. 53 fns; largest: SmPointClassification::MergeIntoObject, SmPointClassification::ComputePointParameters, SmPointClassification::Combine, SmPointClassification::GetGap3d; cycle back-edges (call into later units; stub or co-port): topology.vertex(8), topology.edge(7), topology.edgeuse_p1(5), topology.brep_p9(3), topology.face_p2(3), topology.face_p4(3), topology.brep_p4(2), topology.loopuse(2), topology.shell(1), topology.topology(1), topology.vertexuse(1); unit-SCC #22 (220 units); 319 upstream test entry points reach this unit Re-run with surface.surface_p5's back-edges wired (PR #50): cases=2511 passed=2197 failed=0 deferred=314 max_rel_err=0e0 blocked_by=surface.surface_point_solve_p3(216),topology.edge(27),topology.edgeuse_p1(3),topology.face_p2(15),topology.face_p4(4),topology.vertex(49). Re-run with surface.surface_point_solve_p3 (PR #106): cases=2511 passed=2411 failed=0 deferred=100 max_rel_err=0.0 blocked_by=topology.edge(27),topology.edgeuse_p1(3),topology.face_p2(15),topology.face_p4(5),topology.vertex(50). Re-run after merging PR #106 (surface.surface_point_solve_p3 wired, 2026-10-15): 2511 cases, 2411 pass, 100 deferred (topology.edge 27, topology.edgeuse_p1 3, topology.face_p2 15, topology.face_p4 5, topology.vertex 50), 0 failed, max_rel_err 0. CO-PORTED in intersect.curve_class_p5 (PR #150): handle adapters for SmVertex::GetPoint, SmTol::GetZoneTol3d and SmVertexuse::GetVertexFaceGap -> ClassGeometry::{classification_vertex_point, topology_zone_tol_3d, vertex_face_gap}, plus the optional topology tolerance short-circuit in object_zone_tol_3d; these resolve caller-owned data and do not duplicate topology algorithms. Defaults preserve existing opaque-handle behavior. CO-PORTED in intersect.curve_class_p8 (PR #152): ClassObject::temporary (default None), handles for the temporary boundary curves/planes whose pointers sm_InsertSolutions records. CO-PORTED in intersect.curve_class_p4 (PR #137): defaulted ClassGeometry::topology_entity (handle -> (&Brep, EntityRef)) and topology_handle (EntityRef -> handle) hooks through which part 4 calls the ported topology members; defaults return None (unresolved). Re-run: 2511 cases, 2411 pass, 100 deferred, 0 failed, --perturb SENSITIVE 2411/2411. PR #183 integration: BrepMerge/merge_into_brep provide caller-owned mutable arenas, target identities and notification storage for p9 calls; the endpoint-refusal return preserves the unset-parameter flag and skips SSS/tolerance changes. Native p9 fixtures compare endpoint-refusal adapter behavior and vertex position/tolerance updates; successful topology mutations are not certified. The existing 2511-case point-class runner remains 2411 pass / 100 deferred / 0 failed, bit-identical. Issue #210 follow-up: opaque region/edge handles without mutable owning arenas defer specifically to topology.brep_p1 owning context; typed adapters call p9 with notification storage and actual curve type identities. Valid upstream B-rep context is not an invalid-input error. Adapter evidence covers refusals and vertex updates; no p9 topology mutation is certified. Current rerun remains 2511 cases, 2411 passed, 100 deferred, 0 failed.

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,520
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.object green geom.solution_array green geom.tol green geom.vector2d green geom.vector3d green surface.surface_p2 partial

Soft dependencies: curve.curve_p6 green geom.extent1d green geom.extent2d green surface.surface_p1 green surface.surface_p4 green surface.surface_p7 green surface.volume_p1 green surface.volume_p2 green

Dependents: blend.fillet_geom_p1 green blend.fillet_solver_p2 green blend.hcr green boolean.merge_p1 green boolean.merge_p4 green boolean.merge_p5 green boolean.topology_intersector_p1 green boolean.topology_intersector_p2 green boolean.topology_intersector_p3 green intersect.curve_class_p1 green intersect.curve_class_p2 green intersect.curve_class_p3 green intersect.curve_class_p4 green intersect.curve_class_p5 green intersect.curve_class_p6 green intersect.curve_class_p7 green intersect.curve_class_p8 green intersect.curve_class_p9 green intersect.ray_tracer green query.api_queries green query.brep green query.face_p1 green query.face_p2 green topology.brep_p2 green topology.brep_p9 green topology.face_p2 partial topology.face_p4 green topology.proto_topology_p1 green topology.proto_topology_p2 green

Soft dependents: blend.fillet_geom_p2 green blend.fillet_geom_p6 green blend.fillet_solver_p1 green blend.fillet_solver_p3 green blend.fillet_solver_p5 green intersect.topology_solver_p1 green intersect.topology_solver_p2 green primitive.primitive_creation_p3 green query.face_p3 green query.face_p4 green topology.brep_p6 green topology.brep_p7 green topology.brep_p8 green topology.face_p1 green topology.face_p3 green topology.proto_topology_p3 green topology.shell green

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmPointClassification::SmPointClassificationSmPointClass.h:1053[PointClassification]
SmPointClassification::~SmPointClassificationSmPointClass.h:1091Drop (implicit)
SmPointClassification::CopySSSPointSmPointClass.h:1232[PointClassification::copy_sss_point]
SmPointClassification::GetFaceSmPointClass.h:1291[PointClassification::face]
SmPointClassification::GetVertexObjectSmPointClass.h:1311[PointClassification::vertex_object]
SmPointClassification::GetEdgeObjectSmPointClass.h:1321[PointClassification::edge_object]
SmPointClassification::GetFaceObjectSmPointClass.h:1331[PointClassification::face_object]
SmPointClassification::SetFaceSmPointClass.h:1351[PointClassification::set_face]
SmPointClassification::GetPointClassSmPointClass.h:1431[PointClassification::point_class]
SmPointClassification::GetObjectSmPointClass.h:1451[PointClassification::object]
SmPointClassification::GetDeviationSmPointClass.h:1511[PointClassification::deviation]
SmPointClassification::GetTParamSmPointClass.h:1521[PointClassification::t_param]
SmPointClassification::GetUVParamSmPointClass.h:1531[PointClassification::uv_param]
SmPointClassification::AreParametersSetSmPointClass.h:1551[PointClassification::are_parameters_set]
SmPointClassification::GetPreSnapParamSmPointClass.h:1571[PointClassification::pre_snap_param]
SmPointClassification::GetSSSPointFlagSmPointClass.h:1581[PointClassification::sss_point_flag]
SmPointClassification::GetSSSPointSmPointClass.h:1591[PointClassification::sss_point]
SmPointClassification::IsConnectedToSmPointClass.h:1629[PointClassification::is_connected_to]
SmPointClassification::SetContextSmPointClass.h:1721
SmPointClassification::SetGap3dSmPointClass.h:1751[PointClassification::set_gap_3d]
SmPointClassification::SetDeviationSmPointClass.h:1761[PointClassification::set_deviation]
SmPointClassification::SetUVWParamSmPointClass.h:1791[PointClassification::set_uvw_param]
SmPointClassification::UnSetParametersSmPointClass.h:1801[PointClassification::unset_parameters]
SmPointClassification::SetPreSnapParamSmPointClass.h:1821[PointClassification::set_pre_snap_param]
SmPointClassification::SetSSSPointSmPointClass.h:1842[PointClassification::set_sss_point]
SmPointClassification::GetToleranceSmPointClass.h:1941[PointClassification::tolerance]
SmPointClassification::GetObjZoneTol3dSmPointClass.h:1971[PointClassification::obj_zone_tol_3d]
SmPointClassification::GetSrcZoneTol3dSmPointClass.h:1981[PointClassification::src_zone_tol_3d]
SmPointClassification::SetSrcZoneTol3dSmPointClass.h:2001[PointClassification::set_src_zone_tol_3d]
SmSpaceBend::~SmSpaceBendSmSpaceBend.h:2216Drop (implicit)
SmSpaceBend::GetTypeSmSpaceBend.h:3961[SPACE_BEND_TYPE_STRING], [space_bend_is_kind_of]
SmSpaceBend::GetTypeStringSmSpaceBend.h:3961[SPACE_BEND_TYPE_STRING], [space_bend_is_kind_of]
SmSpaceUnbend::~SmSpaceUnbendSmSpaceUnbend.h:2266Drop (implicit)
SmSpaceUnbend::GetTypeSmSpaceUnbend.h:3861[SPACE_UNBEND_TYPE_STRING], [space_unbend_is_kind_of]
SmSpaceUnbend::GetTypeStringSmSpaceUnbend.h:3861[SPACE_BEND_TYPE_STRING], [space_bend_is_kind_of]
SmLineSegClassification::~SmLineSegClassificationSmLineSegClass.cpp:3015Drop (implicit)
SmPointClassification::ReSetSmPointClass.cpp:4319[PointClassification::reset]
SmPointClassification::operator=SmPointClass.cpp:6830Clone / Copy (derived)
SmPointClassification::CopyClassificationOnlySmPointClass.cpp:14130[PointClassification::copy_classification_only]
SmPointClassification::GetBrepSmPointClass.cpp:17833[PointClassification::brep]
SmPointClassification::SetClassObjectSmPointClass.cpp:25738[PointClassification::set_class_object]
SmPointClassification::SetTParamSmPointClass.cpp:30233[PointClassification::set_t_param]
SmPointClassification::SetUVParamSmPointClass.cpp:34218[PointClassification::set_uv_param]
SmPointClassification::GetCurveObjectSmPointClass.cpp:3679[PointClassification::curve_object]
SmPointClassification::GetGap3dSmPointClass.cpp:41863[PointClassification::gap_3d]
SmPointClassification::IsConnectedToSmPointClass.cpp:48722[PointClassification::is_connected_to]
SmPointClassification::CombineSmPointClass.cpp:534102[PointClassification::combine], [PointClassification::combine_in_brep], [PointClassification::combine_setting_vertex_point], [Precedence]
SmPointClassification::ComputePointParametersSmPointClass.cpp:651146[PointClassification::compute_point_parameters], [PointClassification::compute_point_parameters_mut]
SmPointClassification::FindObjPoint3dSmPointClass.cpp:80651[PointClassification::find_obj_point_3d]
SmPointClassification::MergeIntoObjectSmPointClass.cpp:895192[PointClassification::merge_into_object], [PointClassification::merge_into_brep]
SmPointClassification::LoadFromIntersectionSmPointClass.cpp:110253[PointClassification::load_from_intersection]
SmSpaceBend::IsKindOfSmSpaceBend.cpp:23694[ClassObject], [ClassObjectKind]
SmSpaceUnbend::IsKindOfSmSpaceUnbend.cpp:21874[ClassObject], [ClassObjectKind]
Module file-header table (57 rows)
RustUpstream
[PointClassification]SmPointClassification
[PointClassType]SmPointClassificationType
[ClassObject], [ClassObjectKind]the SmObject* stored in m_pObject (GetType, IsKindOf)
[ClassGeometry]the casts of m_pObject to SmCurve*, SmSurface*, SmVolume*, SmPoint3d*
[PointClassification::new]SmPointClassification(SmZoneTol3d, const SmContext*)
Drop (implicit)~SmPointClassification
[PointClassification::reset]ReSet
Clone / Copy (derived)operator=
[PointClassification::map_objects]complete state copy with translated Rust handles (data-model bridge)
[PointClassification::copy_classification_only]CopyClassificationOnly
[PointClassification::copy_sss_point]CopySSSPoint
[PointClassification::brep]GetBrep
[PointClassification::face]GetFace
[PointClassification::vertex_object]GetVertexObject
[PointClassification::edge_object]GetEdgeObject
[PointClassification::face_object]GetFaceObject
[PointClassification::set_face]SetFace
[PointClassification::merge_into_object], [PointClassification::merge_into_brep]MergeIntoObject
[PointClassification::point_class]GetPointClass
[PointClassification::object]GetObject
[PointClassification::curve_object]GetCurveObject
[PointClassification::gap_3d]GetGap3d
[PointClassification::deviation]GetDeviation
[PointClassification::t_param]GetTParam
[PointClassification::uv_param]GetUVParam
[PointClassification::uvw_param]GetUVWParam
[PointClassification::are_parameters_set]AreParametersSet
[PointClassification::pre_snap_param]GetPreSnapParam
[PointClassification::sss_point_flag]GetSSSPointFlag
[PointClassification::sss_point]GetSSSPoint
[PointClassification::is_connected_to]IsConnectedTo(const SmTopology*)
[PointClassification::is_connected_to_any]IsConnectedTo(const SmTArray<SmTopology*>&, ULONG&)
[PointClassification::set_class_object]SetClassObject
[PointClassification::set_gap_3d]SetGap3d
[PointClassification::set_deviation]SetDeviation
[PointClassification::set_t_param]SetTParam
[PointClassification::set_uv_param]SetUVParam
[PointClassification::set_uvw_param]SetUVWParam
[PointClassification::unset_parameters]UnSetParameters
[PointClassification::set_pre_snap_param]SetPreSnapParam
[PointClassification::set_sss_point]SetSSSPoint
[PointClassification::tolerance]GetTolerance
[PointClassification::obj_zone_tol_3d]GetObjZoneTol3d, SmTol::GetObjZoneTol3d(const SmPointClassification*)
[PointClassification::src_zone_tol_3d]GetSrcZoneTol3d, SmTol::GetSrcZoneTol3d(const SmPointClassification*)
[object_zone_tol_3d]SmTol::GetZoneTol3d(const SmObject*)
[PointClassification::xsect_tol_3d]SmTol::GetXSectTol3d(const SmPointClassification*)
[PointClassification::set_src_zone_tol_3d]SetSrcZoneTol3d
[PointClassification::combine], [PointClassification::combine_in_brep], [PointClassification::combine_setting_vertex_point], [Precedence]Combine
[CombineBrep]the arena behind the classified object
[PointClassification::compute_point_parameters], [PointClassification::compute_point_parameters_mut]ComputePointParameters
[PointClassification::find_obj_point_3d]FindObjPoint3d
[PointClassification::load_from_intersection]LoadFromIntersection
[MergeOutputs]MergeIntoObject's pOptNewEdges, pOptNewVertices
merge_vertex_neighborhood (private)the position/tolerance tail of MergeIntoObject
[SPACE_BEND_TYPE_STRING], [space_bend_is_kind_of]SmSpaceBend::GetType, GetTypeString, IsKindOf
[SPACE_UNBEND_TYPE_STRING], [space_unbend_is_kind_of]SmSpaceUnbend::GetType, GetTypeString, IsKindOf
Drop (implicit)~SmSpaceBend, ~SmSpaceUnbend, ~SmLineSegClassification

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