query.poly_copy green
- Layer
- 45
- Upstream lines
- 700
- Functions
- 0
- Rust module
query::poly::copy
Status history
- green 700 lines
Source: crates/solidcore/src/query/poly/copy.rs
Upstream: source/SMLib/src/SmPoly.cpp, source/SMLib/inc/SmPoly.h, source/SMLib/src/SmPolyBrepData.cpp, source/SMLib/inc/SmPolyBrepData.h, source/SMLib/src/SmAttribute.cpp, source/SM_API/src/SmApiPolygons.cpp
Port-plan notes
These notes preserve historical port measurements and limitations, not current CI results.
SM_API gap M2 (SmApiPolyBrepCopy). NOT IN callgraph/units.json: the SmPolyBrep copy constructor, SmPolyBrepData::FromPolyBrep and SmPolyBrep::MakeTopologyFromData are in harness/callgraph/unused_functions.txt; SmApiPolyBrepCopy is a v1.0.1 addition. Owns those, the SmPolyBrepData record classes (private), SmPolyEdge(SmZoneTol3d) / SmPolyLoop(SmPolyFace*) construction as used there, and the poly B-rep's sm_ExtractAttributes / AddAttribute. Rust: PolyBrep::copy, poly_brep_copy, PolyCopyAttributes; inspection accessors PolyBrep::edge_links / vertex_edge_list. Fixtures and generated cases include degenerate faces (collinear / repeated-point triangles and quads, a one-edge open loop) for GetNormal's (1,1,1) paths. Uncompared (not copied by upstream either; follow-up): the source's composite faces, back pointer flag TRUE, original face/edge use/vertex keys and vertex normals. Not ported: SmCopyPolyBrepMap outputs (no SM_API caller), SmPolyBrepData file I/O. Status pending the gate run.
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
- 524
- 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.tol green query.poly green
Soft dependencies: none
Dependents: none
Soft dependents: none
Upstream functions
No upstream functions listed in harness/callgraph/units.json.
Module file-header table (7 rows)
| Rust | Upstream |
|---|---|
[PolyBrep::copy] | SmPolyBrep::SmPolyBrep(const SmPolyBrep&, NULL, NULL) |
PolyBrepData (private) | SmPolyBrepData and its region / shell / face / loop / edge / vertex records |
PolyBrepData::from_poly_brep (private) | SmPolyBrepData::FromPolyBrep (no index map) |
PolyBrep::make_topology_from_data (private) | SmPolyBrep::MakeTopologyFromData (no copy maps) |
[PolyCopyAttributes] | the poly B-rep's sm_ExtractAttributes / AddAttribute |
[poly_brep_copy] | SmApiPolyBrepCopy |
[PolyBrep::edge_links], [PolyBrep::vertex_edge_list], [PolyEdgeLinks] | (inspection: the ring links the copy sets) |
Upstream tests reaching this unit
tests/SM_API_test/src/TestSmGeneral.cpp