query.tess green
- Layer
- 45
- Upstream lines
- 838
- Functions
- 21
- Rust module
query::tess
Status history
- todo 838 lines
- partial 838 lines
- 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 function | Defined at | Lines | Rust (from the file header) |
|---|---|---|---|
SmPolyToEUVUAttr::SmPolyToEUVUAttr | SmTess.h:79 | 7 | [poly_to_euvu_attribute], [AttributeValue::PolyToEuVu] |
SmPolyToEUVUAttr::~SmPolyToEUVUAttr | SmTess.h:87 | 1 | |
SmTessSrfCache::GetFace | SmTess.h:171 | 1 | [TessSrfCache::face], [TessSrfCache::ts_poly_brep] |
SmTessSrfCache::GetType | SmTess.h:230 | 1 | [TYPE], [TYPE_STRING], [TessSrfCache::type_code], [TessSrfCache::type_string] |
SmTessSrfCache::GetTypeString | SmTess.h:230 | 1 | [TYPE], [TYPE_STRING], [TessSrfCache::type_code], [TessSrfCache::type_string] |
SmSurfaceTessDriver::GetType | SmTess.h:396 | 1 | [SurfaceTessDriver::type_code], [SURFACE_TESS_DRIVER_TYPE], [VIEW_BASED_TESS_DRIVER_TYPE] |
SmViewBasedTessDriver::GetType | SmTess.h:451 | 1 | [SurfaceTessDriver::type_code], [SURFACE_TESS_DRIVER_TYPE], [VIEW_BASED_TESS_DRIVER_TYPE] |
SmViewBasedTessDriver::GetViewVector | SmTess.h:453 | 1 | [SurfaceTessDriver::view_vector], [SurfaceTessDriver::silhouette_chord_height], [SurfaceTessDriver::silhouette_angle_tolerance] |
SmViewBasedTessDriver::GetSilhouetteChordHeight | SmTess.h:454 | 1 | [SurfaceTessDriver::view_vector], [SurfaceTessDriver::silhouette_chord_height], [SurfaceTessDriver::silhouette_angle_tolerance] |
SmViewBasedTessDriver::GetSilhouetteAngleTolerance | SmTess.h:455 | 1 | [SurfaceTessDriver::view_vector], [SurfaceTessDriver::silhouette_chord_height], [SurfaceTessDriver::silhouette_angle_tolerance] |
SmPolyToEUVUAttr::MakeCopy | SmTess.cpp:800 | 10 | [Attribute::make_copy] (unit geom.attribute) |
SmPolyEdgeToVertexUseAttr::SmPolyEdgeToVertexUseAttr | SmTess.cpp:989 | 4 | [poly_edge_to_vertex_use_attribute], [AttributeValue::PolyEdgeToVertexUse] |
SmPolyEdgeToVertexUseAttr::~SmPolyEdgeToVertexUseAttr | SmTess.cpp:994 | 1 | |
SmPolyEdgeToVertexUseAttr::MakeCopy | SmTess.cpp:996 | 6 | [Attribute::make_copy] (unit geom.attribute) |
SmTessSrfCache::TestAgainstTolerances | SmTess.cpp:13031 | 94 | [TessSrfCache::test_against_tolerances] |
SmTessSrfCache::BuildTreeWithSubdivision | SmTess.cpp:13512 | 97 | [TessSrfCache::build_tree_with_subdivision] |
SmTessSrfCache::BuildTree | SmTess.cpp:13624 | 278 | [TessSrfCache::build_tree] |
SmTessSrfCache::ImplantUVSegment | SmTess.cpp:14702 | 137 | [TessSrfCache::implant_uv_segment] |
SmTessSrfCache::MarkFaceContainment | SmTess.cpp:14846 | 185 | [TessSrfCache::mark_face_containment] |
SmTessSrfCache::~SmTessSrfCache | SmTess.cpp:15069 | 6 | Drop (implicit) |
SmTessSrfCache::IsKindOf | SmTess.cpp:15080 | 4 | [is_kind_of], [TessSrfCache::is_kind_of] |
Module file-header table (18 rows)
| Rust | Upstream |
|---|---|
[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