step-examples/12-3a-shells/Tsh065.stp
Sources
- 16-iso-spec AP242 §TESSELLATED_SHELL_REPRESENTATION + §TRIANGULATED_FACE
- bug-reporter language: "tessellated STEP has duplicated nodes per face", "triangulated faces don't share verts"
Sender
deduced — AP242 tessellated exporters that build per-face triangulations from independent meshing passes
Description
AP242 TESSELLATED_SHELL_REPRESENTATION wraps several TRIANGULATED_FACE entities each carrying their own COORDINATES_LIST. The spec permits adjacent triangulated faces to share node indices via a shell-level COORDINATES_LIST referenced by all faces, or to carry independent per-face node lists. A producer that mixes the two — most faces use a shared shell-level node list, but one face carries its own private list whose vertex coordinates duplicate shell-level nodes — leaves the shell's connectivity ambiguous: the stitched mesh has phantom seam edges where the shared and private node lists meet, neither watertight nor cleanly unstitched. Bug-reporter language: "tessellated mesh has duplicated nodes along an edge", "AP242 triangulated shell not watertight", "seam between triangulated faces".
Reproducer recipe
TESSELLATED_SHELL_REPRESENTATION containing two TRIANGULATED_FACEs. Face A uses a shell-level COORDINATES_LIST with nodes (0,0,0), (1,0,0), (1,1,0), (0,1,0). Face B carries its own private COORDINATES_LIST with nodes (1,0,0), (2,0,0), (2,1,0), (1,1,0) — the (1,0,0) and (1,1,0) coordinates duplicate shell-level nodes but live in a separate list. Triangle indices in each face refer to the local list.
Expected kernel behavior
Reject with E_AMBIGUOUS_NODE_LISTS diagnostic in strict mode, or warn and accept in tolerant mode: detect duplicated vertex coordinates between shell-level and per-face COORDINATES_LISTs and emit a warning that the mesh's connectivity cannot be inferred; the producer must use one node list (shell-level or per-face) consistently.
Notes
First entry exercising AP242 tessellated topology with cross-face connectivity. Synonyms: "tessellated topology mismatch", "AP242 mesh shared nodes", "triangulated face seam".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(9) ifc=schema_n/a
Byte assertions
contains(b'TESSELLATED_SHELL_REPRESENTATION')count(b'TRIANGULATED_FACE') >= 2count(b'COORDINATES_LIST') >= 2
Tier-3 assertions
load == "ok"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Tsh065: TESSELLATED_SHELL_REPRESENTATION with 2 TRIANGULATED_FACEs; Face A uses shell-level COORDINATES_LIST (4 nodes at z=0); Face B carries its own private per-face COORDINATES_LIST whose seam nodes at x=1 DUPLICATE shell-level nodes by value but differ by entity ID; duplicate seam coordinates across two distinct COORDINATES_LIST entities IS the mechanism; mixed node-list ownership IS directly wired into TESSELLATED_SHELL_REPRESENTATION; receiver cannot determine watertight seam vs open seam at x=1; fix: reject with E_AMBIGUOUS_NODE_LISTS in strict mode; warn and accept in tolerant mode; producer must use one node list (shell-level or per-face) consistently */ 3HEADER; 4FILE_DESCRIPTION(('Tsh065'),'2;1'); 5FILE_NAME('Tsh065.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=COORDINATES_LIST('shell_nodes',3,((0.0,0.0,0.0),(1.0,0.0,0.0),(1.0,1.0,0.0),(0.0,1.0,0.0))); 11#2=COORDINATES_LIST('face_b_private_nodes',3,((1.0,0.0,0.0),(2.0,0.0,0.0),(2.0,1.0,0.0),(1.0,1.0,0.0))); 12#3=TRIANGULATED_FACE('face_a',#1,.F.,2,((1,2,3),(1,3,4))); 13#4=TRIANGULATED_FACE('face_b',#2,.F.,2,((1,2,3),(1,3,4))); 14#5=TESSELLATED_SHELL_REPRESENTATION('mixed_node_lists',(#3,#4),#1); 15#6=CARTESIAN_POINT('',(0.0,0.0,0.0)); 16#7=DIRECTION('',(0.0,0.0,1.0)); 17#8=DIRECTION('',(1.0,0.0,0.0)); 18#9=AXIS2_PLACEMENT_3D('',#6,#7,#8); 19#10=PLANE('',#9); 20#11=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#12=CARTESIAN_POINT('',(1.0,0.0,0.0)); 22#13=CARTESIAN_POINT('',(1.0,1.0,0.0)); 23#14=CARTESIAN_POINT('',(0.0,1.0,0.0)); 24#15=VERTEX_POINT('',#11); 25#16=VERTEX_POINT('',#12); 26#17=VERTEX_POINT('',#13); 27#18=VERTEX_POINT('',#14); 28#19=DIRECTION('',(1.0,0.0,0.0)); 29#20=VECTOR('',#19,1.0); 30#21=LINE('',#11,#20); 31#22=EDGE_CURVE('',#15,#16,#21,.T.); 32#23=DIRECTION('',(0.0,1.0,0.0)); 33#24=VECTOR('',#23,1.0); 34#25=LINE('',#12,#24); 35#26=EDGE_CURVE('',#16,#17,#25,.T.); 36#27=DIRECTION('',(-1.0,0.0,0.0)); 37#28=VECTOR('',#27,1.0); 38#29=LINE('',#13,#28); 39#30=EDGE_CURVE('',#17,#18,#29,.T.); 40#31=DIRECTION('',(0.0,-1.0,0.0)); 41#32=VECTOR('',#31,1.0); 42#33=LINE('',#14,#32); 43#34=EDGE_CURVE('',#18,#15,#33,.T.); 44#35=ORIENTED_EDGE('',$,$,#22,.T.); 45#36=ORIENTED_EDGE('',$,$,#26,.T.); 46#37=ORIENTED_EDGE('',$,$,#30,.T.); 47#38=ORIENTED_EDGE('',$,$,#34,.T.); 48#39=EDGE_LOOP('',(#35,#36,#37,#38)); 49#40=FACE_OUTER_BOUND('',#39,.T.); 50#41=ADVANCED_FACE('',(#40),#10,.T.); 51#42=OPEN_SHELL('',(#41)); 52#43=SHELL_BASED_SURFACE_MODEL('',(#42)); 53#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 54#9051=PRODUCT('Tsh065','Tsh065','',(#9050)); 55#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 56#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 57#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 58#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 59#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 60#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 61#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 62#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 63#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 64#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#43),#9060); 65#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 66ENDSEC; 67END-ISO-10303-21;