step-examples/12-3a-shells/Tsh072.stp
Sources
- OCCT_HEAL_COVERAGE_V3.md (FreeEdges_at303)
Description
OPEN_SHELL containing two faces (quad + triangle) with only partial edge overlap. Face 2 has three edges: one shared with Face 1 (the shared edge), and two free edges (#45 and #49) that appear in only Face 2. ShapeAnalysis_Shell.FreeEdges at line 303 detects these unshared edges, which violate the closure invariant—every edge in a manifold shell must be shared by exactly 2 faces.
Reproducer recipe
Load Tsh072.stp; invoke OCCT free-edge detector; FreeEdges should return compounds containing #45 and #49 as free edges not present in any neighboring face.
Expected kernel behavior
Kernel should identify free edges, marking the shell as non-closed and non-manifold; validation should fail or flag the shell as incomplete.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(13) 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/* Tsh072: OPEN_SHELL with 2 ADVANCED_FACEs (unit quad + right triangle); one EDGE_CURVE IS shared between both faces (base edge x=0..1 at y=0); Face 2 has two further EDGE_CURVEs (vertical leg and hypotenuse) each in only one face; two single-incident free edges ARE directly wired into Face 2 EDGE_LOOP; free edges IS the mechanism violating manifold closure invariant; ShapeAnalysis_Shell.FreeEdges at line 303 must detect unshared edges; fix: reject as E_FREE_EDGES or flag shell as non-closed; every edge in a manifold shell must be shared by exactly 2 faces */ 3HEADER; 4FILE_DESCRIPTION(('Tsh072'),'2;1'); 5FILE_NAME('Tsh072.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=CARTESIAN_POINT('',(0.0,-1.0,0.0)); 15#6=VERTEX_POINT('',#1); 16#7=VERTEX_POINT('',#2); 17#8=VERTEX_POINT('',#3); 18#9=VERTEX_POINT('',#4); 19#10=VERTEX_POINT('',#5); 20#11=DIRECTION('',(1.0,0.0,0.0)); 21#12=VECTOR('',#11,1.0); 22#13=LINE('',#1,#12); 23#14=EDGE_CURVE('',#6,#7,#13,.T.); 24#15=DIRECTION('',(0.0,0.0,1.0)); 25#16=DIRECTION('',(1.0,0.0,0.0)); 26#17=AXIS2_PLACEMENT_3D('',#1,#15,#16); 27#18=PLANE('',#17); 28#19=DIRECTION('',(0.0,1.0,0.0)); 29#20=VECTOR('',#19,1.0); 30#21=LINE('',#2,#20); 31#22=EDGE_CURVE('',#7,#8,#21,.T.); 32#23=DIRECTION('',(-1.0,0.0,0.0)); 33#24=VECTOR('',#23,1.0); 34#25=LINE('',#3,#24); 35#26=EDGE_CURVE('',#8,#9,#25,.T.); 36#27=DIRECTION('',(0.0,-1.0,0.0)); 37#28=VECTOR('',#27,1.0); 38#29=LINE('',#4,#28); 39#30=EDGE_CURVE('',#9,#6,#29,.T.); 40#31=ORIENTED_EDGE('',$,$,#14,.T.); 41#32=ORIENTED_EDGE('',$,$,#22,.T.); 42#33=ORIENTED_EDGE('',$,$,#26,.T.); 43#34=ORIENTED_EDGE('',$,$,#30,.T.); 44#35=EDGE_LOOP('',(#31,#32,#33,#34)); 45#36=FACE_OUTER_BOUND('',#35,.T.); 46#37=ADVANCED_FACE('',(#36),#18,.T.); 47#38=DIRECTION('',(0.0,0.0,-1.0)); 48#39=DIRECTION('',(1.0,0.0,0.0)); 49#40=AXIS2_PLACEMENT_3D('',#1,#38,#39); 50#41=PLANE('',#40); 51#42=DIRECTION('',(-1.0,-1.0,0.0)); 52#43=VECTOR('',#42,1.0); 53#44=LINE('',#2,#43); 54#45=EDGE_CURVE('',#7,#10,#44,.T.); 55#46=DIRECTION('',(0.0,1.0,0.0)); 56#47=VECTOR('',#46,1.0); 57#48=LINE('',#5,#47); 58#49=EDGE_CURVE('',#10,#6,#48,.T.); 59#50=ORIENTED_EDGE('',$,$,#14,.F.); 60#51=ORIENTED_EDGE('',$,$,#45,.T.); 61#52=ORIENTED_EDGE('',$,$,#49,.T.); 62#53=EDGE_LOOP('',(#50,#51,#52)); 63#54=FACE_OUTER_BOUND('',#53,.T.); 64#55=ADVANCED_FACE('',(#54),#41,.T.); 65#56=OPEN_SHELL('',(#37,#55)); 66#57=SHELL_BASED_SURFACE_MODEL('',(#56)); 67#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 68#9051=PRODUCT('Tsh072','Tsh072','',(#9050)); 69#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 70#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 71#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 72#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 73#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 74#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 75#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 76#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 77#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 78#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#57),#9060); 79#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 80ENDSEC; 81END-ISO-10303-21;