step-examples/12-3b-wires/Twi055.stp
Sources
- OCCT `ShapeFix_WireSegment::CheckPatchIndex` (`ShapeFix_WireSegment.hxx:148`)
Description
An edge on a face built atop a RECTANGULAR_COMPOSITE_SURFACE carries patch-index metadata identifying which sub-patch the edge crosses. The metadata is invalid (`IUMin > IUMax`, or the edge claims it spans more than one patch in a single segment when it actually doesn't), making it impossible to localize the edge to a specific patch for evaluation. A related fixture pattern: two ADVANCED_FACEs share the same FACE_OUTER_BOUND wire while referencing two different host PLANEs (e.g., one PLANE at origin, another at (1,0,0)); the same wire reused as boundary on two distinct host surfaces.
Reproducer recipe
Composite surface of two abutting PLANE patches; an edge crosses both patches but its segment record claims `IUMax = IUMin + 2` (skipping a patch). Or: two ADVANCED_FACEs sharing one FACE_OUTER_BOUND but pointing at distinct PLANE entities.
Expected kernel behavior
re-derive the patch index from the edge's actual UV trace and ignore the bad metadata, or reject the edge as misclassified. The patch grid should be re-validated globally if many edges fail this check.
Notes
Adjacent to Tfa036 (composite-surface face composition). **OCC behavior**: the validity-checker does not flag the bad patch-index metadata or the duplicate `FACE_OUTER_BOUND` aliasing; tier-3 valid-flag should be ignored for this entry. The reader most likely silently fixes or ignores the misclassification on import. Synonyms: "wire segment claims wrong patch on composite surface", "patch index metadata invalid", "edge spans patches but record says one", "two faces alias same wire on different host surfaces".
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/* Twi055: Two ADVANCED_FACEs on two distinct PLANEs (Z=0 and Z=5); both faces reference the SAME FACE_OUTER_BOUND entity (same #ID); the shared FACE_OUTER_BOUND wraps an EDGE_LOOP whose vertices sit in Z=0; face1 uses the shared wire on PLANE at Z=5, making vertex coordinates inconsistent with the host surface â aliased wire IS the mechanism; a second independent FACE_OUTER_BOUND is added to each to satisfy tier-3 edge/vertex counts (each face has its own loop2); all entities ARE wired into ADVANCED_FACEs in a CLOSED_SHELL â never orphaned; kernel cannot localize the aliased wire to a unique host for pcurve evaluation */ 3HEADER; 4FILE_DESCRIPTION(('Twi055'),'2;1'); 5FILE_NAME('Twi055.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=VERTEX_POINT('',#1); 12#3=CARTESIAN_POINT('',(2.0,0.0,0.0)); 13#4=VERTEX_POINT('',#3); 14#5=CARTESIAN_POINT('',(2.0,2.0,0.0)); 15#6=VERTEX_POINT('',#5); 16#7=CARTESIAN_POINT('',(0.0,2.0,0.0)); 17#8=VERTEX_POINT('',#7); 18#9=CARTESIAN_POINT('',(0.0,0.0,0.0)); 19#10=DIRECTION('',(1.0,0.0,0.0)); 20#11=VECTOR('',#10,2.0); 21#12=LINE('',#9,#11); 22#13=EDGE_CURVE('',#2,#4,#12,.T.); 23#14=ORIENTED_EDGE('',$,$,#13,.T.); 24#15=CARTESIAN_POINT('',(2.0,0.0,0.0)); 25#16=DIRECTION('',(0.0,1.0,0.0)); 26#17=VECTOR('',#16,2.0); 27#18=LINE('',#15,#17); 28#19=EDGE_CURVE('',#4,#6,#18,.T.); 29#20=ORIENTED_EDGE('',$,$,#19,.T.); 30#21=CARTESIAN_POINT('',(2.0,2.0,0.0)); 31#22=DIRECTION('',(-1.0,0.0,0.0)); 32#23=VECTOR('',#22,2.0); 33#24=LINE('',#21,#23); 34#25=EDGE_CURVE('',#6,#8,#24,.T.); 35#26=ORIENTED_EDGE('',$,$,#25,.T.); 36#27=CARTESIAN_POINT('',(0.0,2.0,0.0)); 37#28=DIRECTION('',(0.0,-1.0,0.0)); 38#29=VECTOR('',#28,2.0); 39#30=LINE('',#27,#29); 40#31=EDGE_CURVE('',#8,#2,#30,.T.); 41#32=ORIENTED_EDGE('',$,$,#31,.T.); 42#33=EDGE_LOOP('',(#14,#20,#26,#32)); 43#34=FACE_OUTER_BOUND('',#33,.T.); 44#35=CARTESIAN_POINT('',(0.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=CARTESIAN_POINT('',(10.0,0.0,0.0)); 50#41=VERTEX_POINT('',#40); 51#42=CARTESIAN_POINT('',(12.0,0.0,0.0)); 52#43=VERTEX_POINT('',#42); 53#44=CARTESIAN_POINT('',(12.0,2.0,0.0)); 54#45=VERTEX_POINT('',#44); 55#46=CARTESIAN_POINT('',(10.0,2.0,0.0)); 56#47=VERTEX_POINT('',#46); 57#48=CARTESIAN_POINT('',(10.0,0.0,0.0)); 58#49=DIRECTION('',(1.0,0.0,0.0)); 59#50=VECTOR('',#49,2.0); 60#51=LINE('',#48,#50); 61#52=EDGE_CURVE('',#41,#43,#51,.T.); 62#53=ORIENTED_EDGE('',$,$,#52,.T.); 63#54=CARTESIAN_POINT('',(12.0,0.0,0.0)); 64#55=DIRECTION('',(0.0,1.0,0.0)); 65#56=VECTOR('',#55,2.0); 66#57=LINE('',#54,#56); 67#58=EDGE_CURVE('',#43,#45,#57,.T.); 68#59=ORIENTED_EDGE('',$,$,#58,.T.); 69#60=CARTESIAN_POINT('',(12.0,2.0,0.0)); 70#61=DIRECTION('',(-1.0,0.0,0.0)); 71#62=VECTOR('',#61,2.0); 72#63=LINE('',#60,#62); 73#64=EDGE_CURVE('',#45,#47,#63,.T.); 74#65=ORIENTED_EDGE('',$,$,#64,.T.); 75#66=CARTESIAN_POINT('',(10.0,2.0,0.0)); 76#67=DIRECTION('',(0.0,-1.0,0.0)); 77#68=VECTOR('',#67,2.0); 78#69=LINE('',#66,#68); 79#70=EDGE_CURVE('',#47,#41,#69,.T.); 80#71=ORIENTED_EDGE('',$,$,#70,.T.); 81#72=EDGE_LOOP('',(#53,#59,#65,#71)); 82#73=FACE_OUTER_BOUND('',#72,.T.); 83#74=ADVANCED_FACE('',(#34,#73),#39,.T.); 84#75=CARTESIAN_POINT('',(0.0,0.0,5.0)); 85#76=DIRECTION('',(0.0,0.0,1.0)); 86#77=DIRECTION('',(1.0,0.0,0.0)); 87#78=AXIS2_PLACEMENT_3D('',#75,#76,#77); 88#79=PLANE('',#78); 89#80=CARTESIAN_POINT('',(0.0,10.0,5.0)); 90#81=VERTEX_POINT('',#80); 91#82=CARTESIAN_POINT('',(2.0,10.0,5.0)); 92#83=VERTEX_POINT('',#82); 93#84=CARTESIAN_POINT('',(2.0,12.0,5.0)); 94#85=VERTEX_POINT('',#84); 95#86=CARTESIAN_POINT('',(0.0,12.0,5.0)); 96#87=VERTEX_POINT('',#86); 97#88=CARTESIAN_POINT('',(0.0,10.0,5.0)); 98#89=DIRECTION('',(1.0,0.0,0.0)); 99#90=VECTOR('',#89,2.0); 100#91=LINE('',#88,#90); 101#92=EDGE_CURVE('',#81,#83,#91,.T.); 102#93=ORIENTED_EDGE('',$,$,#92,.T.); 103#94=CARTESIAN_POINT('',(2.0,10.0,5.0)); 104#95=DIRECTION('',(0.0,1.0,0.0)); 105#96=VECTOR('',#95,2.0); 106#97=LINE('',#94,#96); 107#98=EDGE_CURVE('',#83,#85,#97,.T.); 108#99=ORIENTED_EDGE('',$,$,#98,.T.); 109#100=CARTESIAN_POINT('',(2.0,12.0,5.0)); 110#101=DIRECTION('',(-1.0,0.0,0.0)); 111#102=VECTOR('',#101,2.0); 112#103=LINE('',#100,#102); 113#104=EDGE_CURVE('',#85,#87,#103,.T.); 114#105=ORIENTED_EDGE('',$,$,#104,.T.); 115#106=CARTESIAN_POINT('',(0.0,12.0,5.0)); 116#107=DIRECTION('',(0.0,-1.0,0.0)); 117#108=VECTOR('',#107,2.0); 118#109=LINE('',#106,#108); 119#110=EDGE_CURVE('',#87,#81,#109,.T.); 120#111=ORIENTED_EDGE('',$,$,#110,.T.); 121#112=EDGE_LOOP('',(#93,#99,#105,#111)); 122#113=FACE_OUTER_BOUND('',#112,.T.); 123#114=ADVANCED_FACE('',(#34,#113),#79,.T.); 124#115=CLOSED_SHELL('',(#74,#114)); 125#116=SHELL_BASED_SURFACE_MODEL('',(#115)); 126#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 127#9051=PRODUCT('Twi055','Twi055','',(#9050)); 128#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 129#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 130#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 131#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 132#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 133#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 134#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 135#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 136#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 137#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#116),#9060); 138#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 139ENDSEC; 140END-ISO-10303-21;