step-examples/12-3c-faces/Tfa036.stp
Sources
- OCCT `ShapeFix_ComposeShell::Perform` (`ShapeFix_ComposeShell.hxx:106`)
Description
An ADVANCED_FACE references a RECTANGULAR_COMPOSITE_SURFACE assembled from multiple sub-patches, *or* two ADVANCED_FACEs share the same FACE_OUTER_BOUND wire while referencing two different host PLANEs (e.g., one PLANE at origin, another offset to (1,0,0)) that abut at a patch seam. The face's boundary wire crosses one or more patch seams; pcurves are not split per patch. To evaluate the face's geometry, the kernel must reassemble per-patch fragments while keeping pcurves continuous across patch boundaries.
Reproducer recipe
Two coplanar PLANE patches abutting at U=1, either as a RECTANGULAR_COMPOSITE_SURFACE or as two ADVANCED_FACEs sharing one FACE_OUTER_BOUND; the wire is a 2x1 rectangle whose top/bottom edges cross the U=1 seam.
Expected kernel behavior
split the face's edges at patch boundaries (or treat the composite as one logical surface and lift pcurves accordingly); produce a shell of patch-local sub-faces with continuous wire connectivity, or reject if the composite cannot be unified.
Notes
Existing Tfa entries cover related composite-surface defects. **See also**: Tfa053, Twi055, Gp019. Synonyms: "face spans multiple surface patches", "wire crosses composite surface seam", "rectangular composite surface boundary discontinuity", "pcurves not split per patch on composite surface".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(28) ifc=schema_n/a
Closure intent
sheet — the open shell is the intended final geometry; a solid-only kernel should cleanly refuse.
Tier-3 assertions
face[0].surface_type == "plane"n_edges_total >= 8face[1].surface_type == "plane"n_vertices_total >= 16
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Tfa036: OPEN_SHELL: two coplanar PLANE patches abutting at x=1.0; face[0] left patch covers x=[0,1], face[1] right patch covers x=[1,2]; both faces share one FACE_OUTER_BOUND edge_loop that spans x=[0,2] (full 2Ã1 rect); the outer boundary wire crosses the x=1 patch seam and is not split per patch; pcurves are not split at the seam boundary; ShapeFix_ComposeShell must split face edges at patch boundaries; defect IS on live OPEN_SHELL traversal path */ 3HEADER; 4FILE_DESCRIPTION(('Tfa036'),'2;1'); 5FILE_NAME('Tfa036.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('',(2.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('',(1.0,0.0,0.0)); 19#10=VECTOR('',#9,2.0); 20#11=LINE('',#1,#10); 21#12=EDGE_CURVE('',#5,#6,#11,.T.); 22#13=DIRECTION('',(0.0,1.0,0.0)); 23#14=VECTOR('',#13,1.0); 24#15=LINE('',#2,#14); 25#16=EDGE_CURVE('',#6,#7,#15,.T.); 26#17=DIRECTION('',(-1.0,0.0,0.0)); 27#18=VECTOR('',#17,2.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('',$,$,#12,.T.); 35#26=ORIENTED_EDGE('',$,$,#16,.T.); 36#27=ORIENTED_EDGE('',$,$,#20,.T.); 37#28=ORIENTED_EDGE('',$,$,#24,.T.); 38#29=EDGE_LOOP('',(#25,#26,#27,#28)); 39#30=CARTESIAN_POINT('',(0.0,0.0,0.0)); 40#31=DIRECTION('',(0.0,0.0,1.0)); 41#32=DIRECTION('',(1.0,0.0,0.0)); 42#33=AXIS2_PLACEMENT_3D('',#30,#31,#32); 43#34=PLANE('',#33); 44#35=CARTESIAN_POINT('',(1.0,0.0,0.0)); 45#36=DIRECTION('',(0.0,0.0,1.0)); 46#37=DIRECTION('',(1.0,0.0,0.0)); 47#38=AXIS2_PLACEMENT_3D('',#35,#36,#37); 48#39=PLANE('',#38); 49#40=FACE_OUTER_BOUND('',#29,.T.); 50#41=ADVANCED_FACE('',(#40),#34,.T.); 51#42=FACE_OUTER_BOUND('',#29,.T.); 52#43=ADVANCED_FACE('',(#42),#39,.T.); 53#44=CARTESIAN_POINT('',(0.0,2.0,0.0)); 54#45=DIRECTION('',(0.0,0.0,1.0)); 55#46=DIRECTION('',(1.0,0.0,0.0)); 56#47=AXIS2_PLACEMENT_3D('',#44,#45,#46); 57#48=PLANE('',#47); 58#49=CARTESIAN_POINT('',(1.0,2.0,0.0)); 59#50=DIRECTION('',(0.0,0.0,1.0)); 60#51=DIRECTION('',(1.0,0.0,0.0)); 61#52=AXIS2_PLACEMENT_3D('',#49,#50,#51); 62#53=PLANE('',#52); 63#54=CARTESIAN_POINT('',(0.0,2.0,0.0)); 64#55=CARTESIAN_POINT('',(1.0,2.0,0.0)); 65#56=CARTESIAN_POINT('',(1.0,3.0,0.0)); 66#57=CARTESIAN_POINT('',(0.0,3.0,0.0)); 67#58=VERTEX_POINT('',#54); 68#59=VERTEX_POINT('',#55); 69#60=VERTEX_POINT('',#56); 70#61=VERTEX_POINT('',#57); 71#62=DIRECTION('',(1.0,0.0,0.0)); 72#63=VECTOR('',#62,1.0); 73#64=LINE('',#54,#63); 74#65=EDGE_CURVE('',#58,#59,#64,.T.); 75#66=DIRECTION('',(0.0,1.0,0.0)); 76#67=VECTOR('',#66,1.0); 77#68=LINE('',#55,#67); 78#69=EDGE_CURVE('',#59,#60,#68,.T.); 79#70=DIRECTION('',(-1.0,0.0,0.0)); 80#71=VECTOR('',#70,1.0); 81#72=LINE('',#56,#71); 82#73=EDGE_CURVE('',#60,#61,#72,.T.); 83#74=DIRECTION('',(0.0,-1.0,0.0)); 84#75=VECTOR('',#74,1.0); 85#76=LINE('',#57,#75); 86#77=EDGE_CURVE('',#61,#58,#76,.T.); 87#78=ORIENTED_EDGE('',$,$,#65,.T.); 88#79=ORIENTED_EDGE('',$,$,#69,.T.); 89#80=ORIENTED_EDGE('',$,$,#73,.T.); 90#81=ORIENTED_EDGE('',$,$,#77,.T.); 91#82=EDGE_LOOP('',(#78,#79,#80,#81)); 92#83=FACE_OUTER_BOUND('',#82,.T.); 93#84=ADVANCED_FACE('',(#83),#48,.T.); 94#85=CARTESIAN_POINT('',(1.0,2.0,0.0)); 95#86=CARTESIAN_POINT('',(2.0,2.0,0.0)); 96#87=CARTESIAN_POINT('',(2.0,3.0,0.0)); 97#88=CARTESIAN_POINT('',(1.0,3.0,0.0)); 98#89=VERTEX_POINT('',#85); 99#90=VERTEX_POINT('',#86); 100#91=VERTEX_POINT('',#87); 101#92=VERTEX_POINT('',#88); 102#93=DIRECTION('',(1.0,0.0,0.0)); 103#94=VECTOR('',#93,1.0); 104#95=LINE('',#85,#94); 105#96=EDGE_CURVE('',#89,#90,#95,.T.); 106#97=DIRECTION('',(0.0,1.0,0.0)); 107#98=VECTOR('',#97,1.0); 108#99=LINE('',#86,#98); 109#100=EDGE_CURVE('',#90,#91,#99,.T.); 110#101=DIRECTION('',(-1.0,0.0,0.0)); 111#102=VECTOR('',#101,1.0); 112#103=LINE('',#87,#102); 113#104=EDGE_CURVE('',#91,#92,#103,.T.); 114#105=DIRECTION('',(0.0,-1.0,0.0)); 115#106=VECTOR('',#105,1.0); 116#107=LINE('',#88,#106); 117#108=EDGE_CURVE('',#92,#89,#107,.T.); 118#109=ORIENTED_EDGE('',$,$,#96,.T.); 119#110=ORIENTED_EDGE('',$,$,#100,.T.); 120#111=ORIENTED_EDGE('',$,$,#104,.T.); 121#112=ORIENTED_EDGE('',$,$,#108,.T.); 122#113=EDGE_LOOP('',(#109,#110,#111,#112)); 123#114=FACE_OUTER_BOUND('',#113,.T.); 124#115=ADVANCED_FACE('',(#114),#53,.T.); 125#116=OPEN_SHELL('',(#41,#43,#84,#115)); 126#117=SHELL_BASED_SURFACE_MODEL('',(#116)); 127#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 128#9051=PRODUCT('Tfa036','Tfa036','',(#9050)); 129#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 130#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 131#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 132#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 133#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 134#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 135#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 136#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 137#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 138#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#117),#9060); 139#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 140ENDSEC; 141END-ISO-10303-21;