step-examples/12-3a-shells/Tsh071.stp
Sources
- OCCT_HEAL_COVERAGE_V3.md (BadEdges_at281)
Description
Two ADVANCED_FACEs share a common edge but with opposite orientation semantics: Face A uses EDGE_CURVE #23 (direction (0,0,0) to (2,0,0)), Face B uses EDGE_CURVE #47 (direction (2,0,0) to (0,0,0)). The ORIENTED_EDGE flags do not compensate for the reversed underlying geometry, creating a topological mismatch. ShapeAnalysis_Shell.BadEdges at line 281 catches edges with mismatched ordering across the two faces.
Reproducer recipe
Load Tsh071.stp; invoke OCCT bad-edge detector; BadEdges should report edge #23/#47 as having inconsistent direction across Face A and Face B.
Expected kernel behavior
Kernel should detect that the two faces reference curves with opposite parametric directions and flag this as a topology error requiring edge consolidation or reorientation.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(16) 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/* Tsh071: OPEN_SHELL with 2 ADVANCED_FACEs; shared seam represented by TWO separate EDGE_CURVEs with opposite parametric directions; Face A seam EDGE_CURVE runs (0,0,0)â(2,0,0), used forward (oriented_edge .T.); Face B seam EDGE_CURVE runs (2,0,0)â(0,0,0), also used forward (oriented_edge .T.); neither oriented_edge flag compensates for reversed geometry; dual-edge anti-parallel seam IS the mechanism wired into both EDGE_LOOPs; ShapeAnalysis_Shell.BadEdges at line 281 must detect mismatch; fix: consolidate to one EDGE_CURVE with correct oriented_edge orientation flags; reject or flag as E_BAD_EDGES when parametric directions conflict */ 3HEADER; 4FILE_DESCRIPTION(('Tsh071'),'2;1'); 5FILE_NAME('Tsh071.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('',(2.0,0.0,0.0)); 12#3=CARTESIAN_POINT('',(0.0,1.0,0.0)); 13#4=CARTESIAN_POINT('',(2.0,1.0,0.0)); 14#5=CARTESIAN_POINT('',(0.0,-1.0,0.0)); 15#6=CARTESIAN_POINT('',(2.0,-1.0,0.0)); 16#7=VERTEX_POINT('',#1); 17#8=VERTEX_POINT('',#2); 18#9=VERTEX_POINT('',#3); 19#10=VERTEX_POINT('',#4); 20#11=VERTEX_POINT('',#5); 21#12=VERTEX_POINT('',#6); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=VECTOR('',#13,1.0); 24#15=LINE('',#1,#14); 25#16=EDGE_CURVE('',#7,#8,#15,.T.); 26#17=DIRECTION('',(-1.0,0.0,0.0)); 27#18=VECTOR('',#17,1.0); 28#19=LINE('',#2,#18); 29#20=EDGE_CURVE('',#8,#7,#19,.T.); 30#21=DIRECTION('',(0.0,0.0,1.0)); 31#22=DIRECTION('',(1.0,0.0,0.0)); 32#23=AXIS2_PLACEMENT_3D('',#1,#21,#22); 33#24=PLANE('',#23); 34#25=DIRECTION('',(0.0,1.0,0.0)); 35#26=VECTOR('',#25,1.0); 36#27=LINE('',#1,#26); 37#28=EDGE_CURVE('',#7,#9,#27,.T.); 38#29=DIRECTION('',(1.0,0.0,0.0)); 39#30=VECTOR('',#29,1.0); 40#31=LINE('',#3,#30); 41#32=EDGE_CURVE('',#9,#10,#31,.T.); 42#33=DIRECTION('',(0.0,-1.0,0.0)); 43#34=VECTOR('',#33,1.0); 44#35=LINE('',#4,#34); 45#36=EDGE_CURVE('',#10,#8,#35,.T.); 46#37=ORIENTED_EDGE('',$,$,#28,.T.); 47#38=ORIENTED_EDGE('',$,$,#32,.T.); 48#39=ORIENTED_EDGE('',$,$,#36,.T.); 49#40=ORIENTED_EDGE('',$,$,#16,.F.); 50#41=EDGE_LOOP('',(#37,#38,#39,#40)); 51#42=FACE_OUTER_BOUND('',#41,.T.); 52#43=ADVANCED_FACE('',(#42),#24,.T.); 53#44=DIRECTION('',(0.0,0.0,-1.0)); 54#45=DIRECTION('',(1.0,0.0,0.0)); 55#46=AXIS2_PLACEMENT_3D('',#1,#44,#45); 56#47=PLANE('',#46); 57#48=DIRECTION('',(-1.0,0.0,0.0)); 58#49=VECTOR('',#48,1.0); 59#50=LINE('',#6,#49); 60#51=EDGE_CURVE('',#12,#11,#50,.T.); 61#52=DIRECTION('',(0.0,1.0,0.0)); 62#53=VECTOR('',#52,1.0); 63#54=LINE('',#5,#53); 64#55=EDGE_CURVE('',#11,#7,#54,.T.); 65#56=DIRECTION('',(0.0,-1.0,0.0)); 66#57=VECTOR('',#56,1.0); 67#58=LINE('',#2,#57); 68#59=EDGE_CURVE('',#8,#12,#58,.T.); 69#60=ORIENTED_EDGE('',$,$,#20,.T.); 70#61=ORIENTED_EDGE('',$,$,#55,.T.); 71#62=ORIENTED_EDGE('',$,$,#51,.T.); 72#63=ORIENTED_EDGE('',$,$,#59,.T.); 73#64=EDGE_LOOP('',(#60,#61,#62,#63)); 74#65=FACE_OUTER_BOUND('',#64,.T.); 75#66=ADVANCED_FACE('',(#65),#47,.T.); 76#67=OPEN_SHELL('',(#43,#66)); 77#68=SHELL_BASED_SURFACE_MODEL('',(#67)); 78#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 79#9051=PRODUCT('Tsh071','Tsh071','',(#9050)); 80#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 81#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 82#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 83#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 84#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 85#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 86#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 87#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 88#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 89#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#68),#9060); 90#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 91ENDSEC; 92END-ISO-10303-21;