step-examples/12-3a-shells/Tsh103.stp
Sources
- synthesized — no external source cited
Description
ShapeAnalysis_Shell.FreeEdges seam-edge classification
Reproducer recipe
Expected kernel behavior
Face A (z=0) and Face B (z=1) each reference the same four named EDGE_CURVEs ('seam_e0','seam_e1','seam_conn0','seam_conn1'), Face A with .T. orientation and Face B with .F. — a properly shared, internal pair of faces. Classify an edge as free or shared strictly by how many faces reference it (here: two, with opposite traversal), never by inspecting the EDGE_CURVE's name string; a name-based classifier that treats these matched, dual-referenced curves as free edges is wrong regardless of what they are named.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(18) ifc=schema_n/a
Tier-3 assertions
n_faces_total == 2
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tsh103: OPEN_SHELL with 2 ADVANCED_FACEs (Face A z=0, Face B z=1) sharing 4 named seam EDGE_CURVEs; seam EDGE_CURVEs named 'seam_e0','seam_e1','seam_conn0','seam_conn1' IS the mechanism; seam names ARE directly wired as EDGE_CURVE name fields in face topology; Face A references each seam edge with orientation=True (.T.) in its EDGE_LOOP; Face B references each same seam EDGE_CURVE with orientation=False (.F.) in its EDGE_LOOP; matched seam pairs shared by 2 faces should be internal â not free edges; FreeEdges checks seam-name metadata and misclassifies named seam pairs as free; named shared EDGE_CURVEs ARE the seam mechanism wired into both face topologies; fix: classify edges by face-reference count, not name; names must not override topology; emit E_SEAM_EDGE_MISCLASSIFIED_AS_FREE when named shared edge reported as free */ 3HEADER; 4FILE_DESCRIPTION(('Tsh103'),'2;1'); 5FILE_NAME('Tsh103.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=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=CARTESIAN_POINT('',(1.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(1.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=CARTESIAN_POINT('',(0.0,0.0,1.0)); 19#10=CARTESIAN_POINT('',(1.0,0.0,1.0)); 20#11=CARTESIAN_POINT('',(1.0,1.0,1.0)); 21#12=CARTESIAN_POINT('',(0.0,1.0,1.0)); 22#13=VERTEX_POINT('',#9); 23#14=VERTEX_POINT('',#10); 24#15=VERTEX_POINT('',#11); 25#16=VERTEX_POINT('',#12); 26#17=DIRECTION('',(1.0,0.0,0.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#1,#18); 29#20=EDGE_CURVE('',#5,#6,#19,.T.); 30#21=DIRECTION('',(-1.0,0.0,0.0)); 31#22=VECTOR('',#21,1.0); 32#23=LINE('',#3,#22); 33#24=EDGE_CURVE('',#7,#8,#23,.T.); 34#25=DIRECTION('',(1.0,0.0,0.0)); 35#26=VECTOR('',#25,1.0); 36#27=LINE('',#9,#26); 37#28=EDGE_CURVE('',#13,#14,#27,.T.); 38#29=DIRECTION('',(-1.0,0.0,0.0)); 39#30=VECTOR('',#29,1.0); 40#31=LINE('',#11,#30); 41#32=EDGE_CURVE('',#15,#16,#31,.T.); 42#33=DIRECTION('',(0.0,0.0,1.0)); 43#34=VECTOR('',#33,1.0); 44#35=LINE('',#1,#34); 45#36=EDGE_CURVE('seam_e0',#5,#13,#35,.T.); 46#37=DIRECTION('',(0.0,0.0,1.0)); 47#38=VECTOR('',#37,1.0); 48#39=LINE('',#2,#38); 49#40=EDGE_CURVE('seam_e1',#6,#14,#39,.T.); 50#41=DIRECTION('',(0.0,0.0,1.0)); 51#42=VECTOR('',#41,1.0); 52#43=LINE('',#4,#42); 53#44=EDGE_CURVE('seam_conn0',#8,#16,#43,.T.); 54#45=DIRECTION('',(0.0,0.0,1.0)); 55#46=VECTOR('',#45,1.0); 56#47=LINE('',#3,#46); 57#48=EDGE_CURVE('seam_conn1',#7,#15,#47,.T.); 58#49=ORIENTED_EDGE('',$,$,#20,.T.); 59#50=ORIENTED_EDGE('',$,$,#40,.T.); 60#51=ORIENTED_EDGE('',$,$,#28,.F.); 61#52=ORIENTED_EDGE('',$,$,#36,.F.); 62#53=EDGE_LOOP('',(#49,#50,#51,#52)); 63#54=DIRECTION('',(0.0,-1.0,0.0)); 64#55=DIRECTION('',(1.0,0.0,0.0)); 65#56=AXIS2_PLACEMENT_3D('',#1,#54,#55); 66#57=PLANE('',#56); 67#58=FACE_OUTER_BOUND('',#53,.T.); 68#59=ADVANCED_FACE('',(#58),#57,.T.); 69#60=ORIENTED_EDGE('',$,$,#24,.F.); 70#61=ORIENTED_EDGE('',$,$,#48,.T.); 71#62=ORIENTED_EDGE('',$,$,#32,.F.); 72#63=ORIENTED_EDGE('',$,$,#44,.F.); 73#64=EDGE_LOOP('',(#60,#61,#62,#63)); 74#65=DIRECTION('',(0.0,1.0,0.0)); 75#66=DIRECTION('',(1.0,0.0,0.0)); 76#67=AXIS2_PLACEMENT_3D('',#4,#65,#66); 77#68=PLANE('',#67); 78#69=FACE_OUTER_BOUND('',#64,.T.); 79#70=ADVANCED_FACE('',(#69),#68,.T.); 80#71=OPEN_SHELL('',(#59,#70)); 81#72=SHELL_BASED_SURFACE_MODEL('',(#71)); 82#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 83#9051=PRODUCT('Tsh103','Tsh103','',(#9050)); 84#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 85#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 86#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 87#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 88#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 89#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 90#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 91#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 92#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 93#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#72),#9060); 94#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 95ENDSEC; 96END-ISO-10303-21;