step-examples/12-2c-surfaces/Gs209.stp
Sources
- ISO 10303-42 `rectangular_trimmed_surface` `WR1: u1 <> u2` (and `WR2: v1 <> v2`), read from the AP242 MIM LF EXPRESS schema (stepcode `data/ap242/242_mim_lf.exp`). Spec-driven — fourth fixture of the WHERE-rule-mining vein (siblings Gs206–208).
Description
A rectangular trim must have a non-zero extent in each parametric direction (WR1/WR2). Here the face's `face_geometry` is `RECTANGULAR_TRIMMED_SURFACE('zerowidth',#cone,0.0,0.0,0.0,1.0,.T.,.T.)` — `u1 = u2 = 0.0`, a zero-width trim in u, violating WR1. OCCT accepts the file (`part21_strict` accepts; the structural linter is silent — this is a value constraint, not a slot-type / count / emptiness one) but the zero-width trimmed surface collapses: the `ADVANCED_FACE` built on it is silently dropped, so OCCT returns a shell with **zero faces** (`shape(1)` whose only sub-shape is an empty shell). gmsh returns nothing at all — a cross-oracle divergence on the same bytes.
Reproducer recipe
an `ADVANCED_FACE` whose `face_geometry` is a `RECTANGULAR_TRIMMED_SURFACE` with `u1 = u2` (or `v1 = v2`) — here trimming a `CONICAL_SURFACE` to `(0.0, 0.0)` in u.
Expected kernel behavior
reject a rectangular trim whose `u1` equals `u2` (or `v1` equals `v2`) per WR1/WR2; never silently drop the face built on a zero-extent trimmed surface.
Notes
RUNTIME-VERIFIED (2026-08-14, OCP/OCCT 7.8.1): `occt=shape(1)/shape(1)` but the returned shell carries **0 faces** — the face on the zero-width RTS is silently lost — while gmsh returns `empty` (a genuine cross-oracle divergence). part21 accepts, structural ok, so this is unrefusable pre-transfer. Distinct from Gp191 (a 2D **pcurve** trim collapse, `w1==w2`): this is a zero-width **surface** rectangular trim (`u1==u2`), a different construct and a different WHERE-rule. Synonyms: "zero-width RECTANGULAR_TRIMMED_SURFACE", "u1 equals u2 trim", "zero-extent rectangular trim", "collapsed trimmed surface drops face". Provenance tier: bytes-sufficient.
Expected validation
occt=shape(1)/shape(1) gmsh=empty ifc=schema_n/a
Byte assertions
contains(b"RECTANGULAR_TRIMMED_SURFACE('zerowidth',")matches(rb"RECTANGULAR_TRIMMED_SURFACE\('zerowidth',#\d+,0\.0,0\.0,")
Tier-3 assertions
shape_null == False
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Gs209: the ADVANCED_FACE's face_geometry is a RECTANGULAR_TRIMMED_SURFACE trimming the cone with u1 = u2 = 0.0 (zero angular width), violating ISO 10303-42 rectangular_trimmed_surface WR1 (u1 <> u2); OCCT accepts the file (part21 accepts, structural silent â a value constraint) but the zero-width trimmed surface collapses: the face is silently dropped and OCCT returns a shell with ZERO faces, while gmsh returns nothing at all (cross-oracle divergence); distinct from Gp191 (a 2D pcurve trim collapse w1==w2) â this is a zero-width surface rectangular trim; spec-driven, mined from the AP242 MIM rectangular_trimmed_surface WHERE-rules; expected strict behavior: reject a rectangular trim whose u1 equals u2 (or v1 equals v2); synonyms: zero-width RECTANGULAR_TRIMMED_SURFACE, u1 equals u2 trim, zero-extent rectangular trim, collapsed trimmed surface drops face; the zero-width trimmed surface is the defect carrier */ 3HEADER; 4FILE_DESCRIPTION(('Gs209'),'2;1'); 5FILE_NAME('Gs209.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=DIRECTION('',(0.0,0.0,1.0)); 12#3=DIRECTION('',(1.0,0.0,0.0)); 13#4=AXIS2_PLACEMENT_3D('',#1,#2,#3); 14#5=CONICAL_SURFACE('',#4,1.0,0.4); 15#6=RECTANGULAR_TRIMMED_SURFACE('zerowidth',#5,0.0,0.0,0.0,1.0,.T.,.T.); 16#7=CARTESIAN_POINT('',(1.0,0.0,0.0)); 17#8=CARTESIAN_POINT('',(0.577206781262,0.0,1.0)); 18#9=VERTEX_POINT('',#7); 19#10=VERTEX_POINT('',#8); 20#11=CARTESIAN_POINT('',(0.0,0.0,0.0)); 21#12=DIRECTION('',(0.0,0.0,-1.0)); 22#13=DIRECTION('',(1.0,0.0,0.0)); 23#14=AXIS2_PLACEMENT_3D('',#11,#12,#13); 24#15=CIRCLE('',#14,1.0); 25#16=EDGE_CURVE('',#9,#9,#15,.T.); 26#17=CARTESIAN_POINT('',(0.0,0.0,1.0)); 27#18=DIRECTION('',(0.0,0.0,1.0)); 28#19=DIRECTION('',(1.0,0.0,0.0)); 29#20=AXIS2_PLACEMENT_3D('',#17,#18,#19); 30#21=CIRCLE('',#20,0.577206781262); 31#22=EDGE_CURVE('',#10,#10,#21,.T.); 32#23=DIRECTION('',(-0.389418342309,0.0,0.921060994003)); 33#24=VECTOR('',#23,1.08570442838); 34#25=LINE('',#7,#24); 35#26=EDGE_CURVE('',#9,#10,#25,.T.); 36#27=ORIENTED_EDGE('',$,$,#26,.T.); 37#28=ORIENTED_EDGE('',$,$,#22,.T.); 38#29=ORIENTED_EDGE('',$,$,#26,.F.); 39#30=ORIENTED_EDGE('',$,$,#16,.F.); 40#31=EDGE_LOOP('',(#27,#28,#29,#30)); 41#32=FACE_OUTER_BOUND('',#31,.T.); 42#33=ADVANCED_FACE('',(#32),#6,.T.); 43#34=CLOSED_SHELL('',(#33)); 44#35=MANIFOLD_SOLID_BREP('',#34); 45#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 46#9051=PRODUCT('Gs209','Gs209','',(#9050)); 47#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 48#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 49#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 50#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 51#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 52#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 53#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 54#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 55#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 56#9061=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#35),#9060); 57#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 58ENDSEC; 59END-ISO-10303-21;