M019 — TRIANGLE_STRIP / TRIANGLE_FAN in COMPLEX_TRIANGULATED_FACE mis-decoded

§12.8 (sub-class: tessellation)

P1 — silent data loss

crash

Sources

Description

STEP `COMPLEX_TRIANGULATED_FACE` with strip/fan topology was incorrectly imported (indices misaligned).

Reproducer recipe

AP242e2 file with mixed `triangle_strip` + `triangle_fan` + plain triangles.

Expected kernel behavior

heal; correctly unfold strips/fans to individual triangles preserving orientation.

Notes

Synonyms: "TRIANGLE_STRIP indices misaligned", "fan strip mis-decoded", "complex_triangulated_face strip wrong", "tessellation strip topology mishandled".

Expected validation

occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a

Byte assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* M019: GEOMETRIC_CURVE_SET containing COMPLEX_TRIANGULATED_FACE with mixed triangle_strip and triangle_fan topology; input: AP242e2 STEP file where COMPLEX_TRIANGULATED_FACE encodes geometry with strip/fan index packing; OCCT 588ee92 (Mantis 0033491) mis-decoded indices — strips and fans were misaligned, producing incorrect facets; kernel must heal: correctly unfold strips/fans to individual triangles preserving orientation; OCC silently accepts (no diagnostic, empty result); GEOMETRIC_CURVE_SET IS the model entity — OCC yields empty; synonyms: TRIANGLE_STRIP indices misaligned, fan strip mis-decoded, complex_triangulated_face strip wrong, tessellation strip topology mishandled */
3HEADER;
4FILE_DESCRIPTION(('M019'),'2;1');
5FILE_NAME('M019.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }'));
7ENDSEC;
8DATA;
9#9000=APPLICATION_CONTEXT('mechanical design');
10#1=COORDINATES_LIST('strip_fan_verts',3,((5.,5.,0.),(0.,0.,0.),(10.,0.,0.),(10.,10.,0.),(0.,10.,0.),(20.,0.,0.),(20.,10.,0.)));
11#2=COMPLEX_TRIANGULATED_FACE('strip_fan_face',#1,$,((.FALSE.,.FALSE.,.FALSE.,.FALSE.,.FALSE.,.FALSE.,.FALSE.)),((1,2,5,6)),((0,(1,2,3,4))),((0,2,3)));
12#3=GEOMETRIC_CURVE_SET('complex-triangulated-face-strip-fan',(#2));
13#9050=PRODUCT_CONTEXT('',#9000,'mechanical');
14#9051=PRODUCT('M019','M019','',(#9050));
15#9052=PRODUCT_DEFINITION_FORMATION('','',#9051);
16#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design');
17#9054=PRODUCT_DEFINITION('','','',#9052,#9053);
18#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054);
19#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.));
20#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.));
21#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT());
22#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value','');
23#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D'));
24#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#3),#9060);
25#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061);
26ENDSEC;
27END-ISO-10303-21;