step-examples/12-8-mixed/M082.stp
Sources
- deduced from AP209 §6 element node-ordering convention
Sender
deduced — FEA exporter with mesh-orientation export bug
Description
A `SURFACE_3D_ELEMENT_DESCRIPTOR` for a `linear_quadrilateral` lists its corner nodes in clockwise order when viewed from the surface normal (CCW is the convention). The element's Jacobian determinant is negative everywhere; integral computations come out with reversed sign. Bug-reporter language: "FEM element has negative Jacobian", "quad winding wrong", "AP209 reversed element".
Reproducer recipe
A planar-square quad with corners (0,0)(1,0)(1,1)(0,1) listed in order n1,n4,n3,n2.
Expected kernel behavior
detect negative Jacobian; reject, reverse the node order, or warn the consumer that downstream signs may be inverted.
Notes
Synonyms: "negative Jacobian element", "wound backwards", "element flipped".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'STRUCTURAL_ANALYSIS_DESIGN')contains(b'SURFACE_3D_ELEMENT_DESCRIPTOR')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M082: AP209 surface element node order is clockwise (negative Jacobian) */ 3/* DEFECT: linear_quadrilateral nodes listed CW: n1(0,0),n4(0,1),n3(1,1),n2(1,0) */ 4/* CCW convention: n1(0,0),n2(1,0),n3(1,1),n4(0,1) */ 5/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */ 6/* Byte assertion: contains(b'SURFACE_3D_ELEMENT_DESCRIPTOR') */ 7HEADER; 8FILE_DESCRIPTION(('M082: AP209 linear_quadrilateral with clockwise node order'),'2;1'); 9FILE_NAME('M082.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 10/* Byte assertion: contains(b'STRUCTURAL_ANALYSIS_DESIGN') */ 11FILE_SCHEMA(('STRUCTURAL_ANALYSIS_DESIGN { 1 0 10303 209 1 0 0 }')); 12ENDSEC; 13DATA; 14#1=APPLICATION_CONTEXT('structural_analysis_design'); 15#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 16 'structural_analysis_design',2001,#1); 17/* Standard unit context */ 18#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 22 'distance_accuracy_value','maximum model space distance between geometric entities'); 23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 24 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 25 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 26 REPRESENTATION_CONTEXT('fea','3D')); 27/* Unit-square quad corners */ 28/* n1=(0,0,0) n2=(1,0,0) n3=(1,1,0) n4=(0,1,0) in geometric CCW order */ 29#100=CARTESIAN_POINT('n1',(0.0,0.0,0.0)); 30#101=CARTESIAN_POINT('n2',(1.0,0.0,0.0)); 31#102=CARTESIAN_POINT('n3',(1.0,1.0,0.0)); 32#103=CARTESIAN_POINT('n4',(0.0,1.0,0.0)); 33#110=NODE('n1',(#100),$); 34#111=NODE('n2',(#101),$); 35#112=NODE('n3',(#102),$); 36#113=NODE('n4',(#103),$); 37/* Byte assertion: contains(b'SURFACE_3D_ELEMENT_DESCRIPTOR') */ 38/* DEFECT: node list is n1,n4,n3,n2 â clockwise winding, negative Jacobian */ 39/* CCW convention would be n1,n2,n3,n4 */ 40/* Clockwise: (0,0) -> (0,1) -> (1,1) -> (1,0) viewed from +Z */ 41#120=SURFACE_3D_ELEMENT_DESCRIPTOR('quad','linear_quadrilateral', 42 (#110,#113,#112,#111)); 43/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 44#300=GEOMETRIC_CURVE_SET('ap209-linear-quadrilateral-clockwise-negative-jacobian', 45 (#110,#111,#112,#113,#120)); 46/* Product chain */ 47#400=APPLICATION_CONTEXT('mechanical design'); 48#401=PRODUCT_CONTEXT('',#400,'mechanical'); 49#402=PRODUCT('M082','M082','M082',(#401)); 50#403=PRODUCT_DEFINITION_FORMATION('','',#402); 51#404=PRODUCT_DEFINITION_CONTEXT(#400,'design'); 52#405=PRODUCT_DEFINITION('','',#403,#404); 53#406=PRODUCT_DEFINITION_SHAPE('','',#405); 54#407=SHAPE_REPRESENTATION('',(#300),#14); 55#408=SHAPE_DEFINITION_REPRESENTATION(#406,#407); 56ENDSEC; 57END-ISO-10303-21;