solidcore

Units / query

query.tess green

Layer
45
Upstream lines
838
Functions
21
Rust module
query::tess

Status history

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

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

Upstream: source/SMLib/inc/SmTess.h, source/SMLib/src/SmTess.cpp

Port-plan notes

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

GREEN, PR #563 on main b65597902: 676 native cases, 676 bit-identical passes, 0 failed, 0 deferred; all 665 main passes retained and 11 deferrals now pass. Verified by x86_64 CI 39928207576 and full ARM64 audit. Coverage: 28 upstream-derived fixtures, 48 adversarial fixtures and 600 generated cases (including bounded planes), scales 1e-3..1e3, tolerance/silhouette retests, subdivision, UV segment implantation, face containment, full poly-boundary tree builds and attribute copies. Historical perturbation detected 665/665. BuildTree makes the missing NURB before plane/revolution work. Green covers this corpus, not the previously excluded revolution/face-owned/curve-bounded/STEP face branches or FFI-rejected calls lacking required tree/driver/poly-B-rep state. SurfaceCache::SubdivideNode uses SnapToKnots/SplitAt with subdivision handles; ToleranceTester and find_uv_nodes_built hooks remain. SmPolyToEUVUAttr/SmPolyEdgeToVertexUseAttr are geom::attribute variants. Builds on query.poly (PR #73); 21 fns, largest BuildTree, MarkFaceContainment, ImplantUVSegment, BuildTreeWithSubdivision; unit-SCC #22 (220 units); only 8/838 lines survive original RTA, but 319 upstream test entry points reach this unit.

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
676
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: geom.attribute green geom.extent2d green geom.object green geom.tol green geom.vector2d green geom.vector3d green nurbs.b_spline_surface_p1 green query.poly green surface.surface_cache_p1 green surface.surface_cache_p2 green surface.surface_cache_p3 green surface.trim_srf_cache green

Soft dependencies: geom.extent1d green geom.tree green surface.surface_p2 partial surface.surface_p7 green topology.face_p2 partial

Dependents: audit.recursion green

Soft dependents: none

Upstream functions

Upstream functionDefined atLinesRust (from the file header)
SmPolyToEUVUAttr::SmPolyToEUVUAttrSmTess.h:797[poly_to_euvu_attribute], [AttributeValue::PolyToEuVu]
SmPolyToEUVUAttr::~SmPolyToEUVUAttrSmTess.h:871
SmTessSrfCache::GetFaceSmTess.h:1711[TessSrfCache::face], [TessSrfCache::ts_poly_brep]
SmTessSrfCache::GetTypeSmTess.h:2301[TYPE], [TYPE_STRING], [TessSrfCache::type_code], [TessSrfCache::type_string]
SmTessSrfCache::GetTypeStringSmTess.h:2301[TYPE], [TYPE_STRING], [TessSrfCache::type_code], [TessSrfCache::type_string]
SmSurfaceTessDriver::GetTypeSmTess.h:3961[SurfaceTessDriver::type_code], [SURFACE_TESS_DRIVER_TYPE], [VIEW_BASED_TESS_DRIVER_TYPE]
SmViewBasedTessDriver::GetTypeSmTess.h:4511[SurfaceTessDriver::type_code], [SURFACE_TESS_DRIVER_TYPE], [VIEW_BASED_TESS_DRIVER_TYPE]
SmViewBasedTessDriver::GetViewVectorSmTess.h:4531[SurfaceTessDriver::view_vector], [SurfaceTessDriver::silhouette_chord_height], [SurfaceTessDriver::silhouette_angle_tolerance]
SmViewBasedTessDriver::GetSilhouetteChordHeightSmTess.h:4541[SurfaceTessDriver::view_vector], [SurfaceTessDriver::silhouette_chord_height], [SurfaceTessDriver::silhouette_angle_tolerance]
SmViewBasedTessDriver::GetSilhouetteAngleToleranceSmTess.h:4551[SurfaceTessDriver::view_vector], [SurfaceTessDriver::silhouette_chord_height], [SurfaceTessDriver::silhouette_angle_tolerance]
SmPolyToEUVUAttr::MakeCopySmTess.cpp:80010[Attribute::make_copy] (unit geom.attribute)
SmPolyEdgeToVertexUseAttr::SmPolyEdgeToVertexUseAttrSmTess.cpp:9894[poly_edge_to_vertex_use_attribute], [AttributeValue::PolyEdgeToVertexUse]
SmPolyEdgeToVertexUseAttr::~SmPolyEdgeToVertexUseAttrSmTess.cpp:9941
SmPolyEdgeToVertexUseAttr::MakeCopySmTess.cpp:9966[Attribute::make_copy] (unit geom.attribute)
SmTessSrfCache::TestAgainstTolerancesSmTess.cpp:1303194[TessSrfCache::test_against_tolerances]
SmTessSrfCache::BuildTreeWithSubdivisionSmTess.cpp:1351297[TessSrfCache::build_tree_with_subdivision]
SmTessSrfCache::BuildTreeSmTess.cpp:13624278[TessSrfCache::build_tree]
SmTessSrfCache::ImplantUVSegmentSmTess.cpp:14702137[TessSrfCache::implant_uv_segment]
SmTessSrfCache::MarkFaceContainmentSmTess.cpp:14846185[TessSrfCache::mark_face_containment]
SmTessSrfCache::~SmTessSrfCacheSmTess.cpp:150696Drop (implicit)
SmTessSrfCache::IsKindOfSmTess.cpp:150804[is_kind_of], [TessSrfCache::is_kind_of]
Module file-header table (18 rows)
RustUpstream
[TessSrfCache], [TessHandle]SmTessSrfCache (and the pointers it stores)
[TessSrfCache::new]SmTessSrfCache::SmTessSrfCache
Drop (implicit)SmTessSrfCache::~SmTessSrfCache
[TessSrfCache::face], [TessSrfCache::ts_poly_brep]GetFace, GetTS_PolyBrep
[TYPE], [TYPE_STRING], [TessSrfCache::type_code], [TessSrfCache::type_string]SmTessSrfCache::GetType, GetTypeString (SM_COMMON)
[is_kind_of], [TessSrfCache::is_kind_of]SmTessSrfCache::IsKindOf
[TessSrfCache::test_against_tolerances]SmTessSrfCache::TestAgainstTolerances
[TessSrfCache::build_tree_with_subdivision]SmTessSrfCache::BuildTreeWithSubdivision
[TessSrfCache::build_tree]SmTessSrfCache::BuildTree
[TessSrfCache::implant_uv_segment]SmTessSrfCache::ImplantUVSegment
[TessSrfCache::mark_face_containment]SmTessSrfCache::MarkFaceContainment
[SurfaceTessDriver], [SurfaceTessDriver::new], [SurfaceTessDriverOptions]SmSurfaceTessDriver, its constructor and default arguments
[SurfaceTessDriver::view_based], [ViewBasedTessDriverOptions], [ViewBased]SmViewBasedTessDriver, its constructor and default arguments
[SurfaceTessDriver::type_code], [SURFACE_TESS_DRIVER_TYPE], [VIEW_BASED_TESS_DRIVER_TYPE]SmSurfaceTessDriver::GetType, SmViewBasedTessDriver::GetType
[SurfaceTessDriver::view_vector], [SurfaceTessDriver::silhouette_chord_height], [SurfaceTessDriver::silhouette_angle_tolerance]SmViewBasedTessDriver::GetViewVector, GetSilhouetteChordHeight, GetSilhouetteAngleTolerance
[poly_to_euvu_attribute], [AttributeValue::PolyToEuVu]SmPolyToEUVUAttr::SmPolyToEUVUAttr (~ is Drop)
[poly_edge_to_vertex_use_attribute], [AttributeValue::PolyEdgeToVertexUse]SmPolyEdgeToVertexUseAttr::SmPolyEdgeToVertexUseAttr (~ is Drop)
[Attribute::make_copy] (unit geom.attribute)SmPolyToEUVUAttr::MakeCopy, SmPolyEdgeToVertexUseAttr::MakeCopy

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