step-examples/12-3a-shells/Tsh255.stp
Sources
- occt-coverage PARTIAL audit, work packet A4 item `stp-nm-shared-entity-reuse`, `exchange/problems.json` `stp-nm-shared-entity-reuse` (`StepToTopoDS_TranslateEdge::Init`, `StepToTopoDS_TranslateEdge.cxx:236-249` — `NMTool.IsIDEASCase() && NMTool.IsBound(name)` name-matched reuse branch
- I-DEAS detection at `STEPControl_ActorRead.cxx:322-331` via `FILE_NAME.preprocessor_version` containing `"I-DEAS"`
- NM-tool name-bind gated on `NMTool.IsActive()` at `StepToTopoDS_TranslateEdge.cxx:334-337`). No prior fixture exercises this subvariant (Lh031 is header-string only, no matching-name edge pair).
Description
`FILE_NAME`'s preprocessor-version field is `'I-DEAS 9.1'`, triggering OCCT's I-DEAS legacy heuristic. Two DISTINCT `EDGE_CURVE` entities — `#12` (on `face_a`, real geometry `(5,0,0)→(5,1,0)`) and `#49` (on `face_b`, a spatially unrelated stand-in geometry `(20,0,0)→(21,0,0)`) — carry the IDENTICAL Name string `'ideas_shared_edge'` but are otherwise unconnected entities (different STEP ids, different `VERTEX_POINT`/`LINE` sub-entities). `face_a` and `face_b` are each their own `OPEN_SHELL`/`SHELL_BASED_SURFACE_MODEL`, both listed as items of one ordinary `SHAPE_REPRESENTATION` (not the explicit non-manifold subtype — the I-DEAS heuristic is meant to infer non-manifold intent from legacy preprocessor strings alone, on an otherwise-ordinary representation).
Reproducer recipe
`FILE_NAME('Tsh255.stp','...',(''),(''),'I-DEAS 9.1','','')`. `#12=EDGE_CURVE('ideas_shared_edge',#6,#7,#11,.T.)` on `face_a` (real hinge edge). `#49=EDGE_CURVE('ideas_shared_edge',#42,#43,#48,.T.)` on `face_b` — same Name, deliberately WRONG own geometry (a different `LINE`/`VERTEX_POINT` pair 15 units away). Both faces' `SHELL_BASED_SURFACE_MODEL`s listed together in one plain `SHAPE_REPRESENTATION('',(#37,#74),#9060)`.
Expected kernel behavior
with `read.step.nonmanifold` AND `read.step.ideas` both enabled and the preprocessor-version I-DEAS heuristic matched, a second `EDGE_CURVE` sharing an already-bound, non-empty Name with a previously-translated edge is resolved by name lookup to the EXISTING shape (reversed if needed) — its own (possibly divergent) 3D curve and vertices are never evaluated at all.
Notes
**Empirical finding (live-verified, decisive)**: with `read.step.nonmanifold=1` and `read.step.ideas=1` both set (`Interface_Static`), `#49`'s own declared geometry `(20,0,0)→(21,0,0)` is never used — `TopExp.MapShapesAndAncestors_s` on the translated shape shows an edge at `#12`'s actual coordinates `(5,0,0)→(5,1,0)` shared by BOTH faces (`used by 2 faces`), while `face_b`'s remaining boundary (near `x=20-21`) is left spatially disconnected from it (the corpus's standard `XSAlgo` shape-fixing pass subsequently patches the resulting gap by relocating one `face_b` vertex to `(20.5,0,0)`, a visible artifact of the substitution, not part of the core claim). This directly confirms `#49`'s own curve/vertex geometry was discarded in favor of the name-matched `#12` shape. With EITHER flag off, or with the default OCCT settings this corpus's standard tier-3 harness uses (both flags default 0), no substitution occurs: `#49` translates its own (self-consistent, if spatially odd) geometry independently, giving 2 faces / 8 edges / 16(raw)/8(distinct) vertices and a normal `brepcheck.valid=True` shape — the Tier-3 fields below describe this DEFAULT read; the name-matched reuse is a supplementary, explicitly-enabled-mode finding (same convention as Tsh254 and Tsh248-250). Synonyms: "I-DEAS name-matched edge reuse", "legacy preprocessor non-manifold heuristic", "duplicate STEP id same Name silently merged", "name-based entity identity instead of id-based", "I-DEAS-like STP edge substitution". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=reject ifc=schema_n/a
Byte assertions
contains(b'ideas_shared_edge')contains(b"'I-DEAS 9.1'")count_entity_def(b'EDGE_CURVE') == 8
Tier-3 assertions
shape_null == Falsen_faces_total == 2n_edges_total == 8n_vertices_total == 16face[0].surface_type == "plane"face[1].surface_type == "plane"brepcheck.valid == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh255: TEST - I-DEAS-style name-matched edge reuse: two DISTINCT EDGE_CURVE entities sharing one Name string, second one carries deliberately WRONG/unrelated 3D geometry */ 3HEADER; 4FILE_DESCRIPTION(('Tsh255'),'2;1'); 5FILE_NAME('Tsh255.stp','2026-07-13T00:00:00',(''),(''),'I-DEAS 9.1','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(5.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(5.0,1.0,0.0)); 13#4=CARTESIAN_POINT('',(0.0,1.0,0.0)); 14#5=VERTEX_POINT('',#1); 15#6=VERTEX_POINT('',#2); 16#7=VERTEX_POINT('',#3); 17#8=VERTEX_POINT('',#4); 18#9=DIRECTION('',(0.0,1.0,0.0)); 19#10=VECTOR('',#9,1.0); 20#11=LINE('',#2,#10); 21#12=EDGE_CURVE('ideas_shared_edge',#6,#7,#11,.T.); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=VECTOR('',#13,5.0); 24#15=LINE('',#1,#14); 25#16=EDGE_CURVE('',#5,#6,#15,.T.); 26#17=DIRECTION('',(-1.0,0.0,0.0)); 27#18=VECTOR('',#17,5.0); 28#19=LINE('',#3,#18); 29#20=EDGE_CURVE('',#7,#8,#19,.T.); 30#21=DIRECTION('',(0.0,-1.0,0.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#4,#22); 33#24=EDGE_CURVE('',#8,#5,#23,.T.); 34#25=ORIENTED_EDGE('',*,*,#16,.T.); 35#26=ORIENTED_EDGE('',*,*,#12,.T.); 36#27=ORIENTED_EDGE('',*,*,#20,.T.); 37#28=ORIENTED_EDGE('',*,*,#24,.T.); 38#29=EDGE_LOOP('',(#25,#26,#27,#28)); 39#30=DIRECTION('',(0.0,0.0,1.0)); 40#31=DIRECTION('',(1.0,0.0,0.0)); 41#32=AXIS2_PLACEMENT_3D('',#1,#30,#31); 42#33=PLANE('',#32); 43#34=FACE_OUTER_BOUND('',#29,.T.); 44#35=ADVANCED_FACE('face_a',(#34),#33,.T.); 45#36=OPEN_SHELL('shell_a',(#35)); 46#37=SHELL_BASED_SURFACE_MODEL('sbsm_a',(#36)); 47/* Face B: unrelated square far away at x:[20,21]; its "shared" edge #46 is a DISTINCT 48 EDGE_CURVE entity (different STEP id) whose own LINE geometry runs from (20,0,0) 49 to (21,0,0) -- deliberately NOT the same 3D location as #12 -- but carries the 50 IDENTICAL Name string 'ideas_shared_edge', forcing name-matched reuse instead of 51 geometric evaluation of its own (wrong) curve. */ 52#38=CARTESIAN_POINT('',(20.0,0.0,0.0)); 53#39=CARTESIAN_POINT('',(21.0,0.0,0.0)); 54#40=CARTESIAN_POINT('',(21.0,1.0,0.0)); 55#41=CARTESIAN_POINT('',(20.0,1.0,0.0)); 56#42=VERTEX_POINT('',#38); 57#43=VERTEX_POINT('',#39); 58#44=VERTEX_POINT('',#40); 59#45=VERTEX_POINT('',#41); 60#46=DIRECTION('',(1.0,0.0,0.0)); 61#47=VECTOR('',#46,1.0); 62#48=LINE('',#38,#47); 63#49=EDGE_CURVE('ideas_shared_edge',#42,#43,#48,.T.); 64#50=DIRECTION('',(0.0,1.0,0.0)); 65#51=VECTOR('',#50,1.0); 66#52=LINE('',#39,#51); 67#53=EDGE_CURVE('',#43,#44,#52,.T.); 68#54=DIRECTION('',(-1.0,0.0,0.0)); 69#55=VECTOR('',#54,1.0); 70#56=LINE('',#40,#55); 71#57=EDGE_CURVE('',#44,#45,#56,.T.); 72#58=DIRECTION('',(0.0,-1.0,0.0)); 73#59=VECTOR('',#58,1.0); 74#60=LINE('',#41,#59); 75#61=EDGE_CURVE('',#45,#42,#60,.T.); 76#62=ORIENTED_EDGE('',*,*,#49,.T.); 77#63=ORIENTED_EDGE('',*,*,#53,.T.); 78#64=ORIENTED_EDGE('',*,*,#57,.T.); 79#65=ORIENTED_EDGE('',*,*,#61,.T.); 80#66=EDGE_LOOP('',(#62,#63,#64,#65)); 81#67=DIRECTION('',(0.0,0.0,1.0)); 82#68=DIRECTION('',(1.0,0.0,0.0)); 83#69=AXIS2_PLACEMENT_3D('',#38,#67,#68); 84#70=PLANE('',#69); 85#71=FACE_OUTER_BOUND('',#66,.T.); 86#72=ADVANCED_FACE('face_b',(#71),#70,.T.); 87#73=OPEN_SHELL('shell_b',(#72)); 88#74=SHELL_BASED_SURFACE_MODEL('sbsm_b',(#73)); 89#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 90#9051=PRODUCT('Tsh255','Tsh255','',(#9050)); 91#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 92#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 93#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 94#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 95#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 96#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 97#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 98#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 99#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 100#9061=SHAPE_REPRESENTATION('',(#37,#74),#9060); 101#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 102ENDSEC; 103END-ISO-10303-21;