step-examples/12-8-mixed/M069.stp
Sources
- OCCT MANTIS#0033410
- OCCT MANTIS#0033491 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A `TRIANGULATED_FACE` is supposed to reference vertex indices via `pnval` (parametric values). When the tessellation was built from a non-parametric source (mesh-only), `pnval` is empty; AP242 readers expect at least one entry and reject the entity, dropping the face.
Reproducer recipe
`TRIANGULATED_FACE` with `pnval = ()` (empty list).
Expected kernel behavior
Heal and accept: empty `pnval` is legal; fall back to 3D vertex indices for parameterless meshes; emit synthetic UV when downstream consumers require it.
Notes
Synonyms: "TRIANGULATED_FACE missing pnval", "AP242 reader rejects empty pnval", "tessellated face has no parametric indices", "mesh-only triangulation lacks UV indices". **See also**: M057.
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Byte assertions
contains(b'TRIANGULATED_FACE')contains(b'no_pnval')contains(b"TRIANGULATED_FACE('no_pnval','',(#100),(),(),(),'',$)")
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/* M069: TRIANGULATED_FACE emitted without pnval indices */ 3/* DEFECT: empty pnval () causes AP242 readers to reject and drop the face */ 4/* Kernel must heal: empty pnval is valid for non-parametric mesh sources */ 5/* Byte assertion: contains(b'TRIANGULATED_FACE') */ 6/* Byte assertion: contains(b'no_pnval') */ 7/* Byte assertion: contains(b"TRIANGULATED_FACE('no_pnval','',(#100),(),(),(),'',\$)") */ 8HEADER; 9FILE_DESCRIPTION(('M069: TRIANGULATED_FACE emitted without pnval indices'),'2;1'); 10FILE_NAME('M069.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 11FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 12ENDSEC; 13DATA; 14/* Standard unit context */ 15#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 16#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 17#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 18#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 19 'distance_accuracy_value','maximum model space distance between geometric entities'); 20#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 21 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 22 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 23 REPRESENTATION_CONTEXT('ctx','3D')); 24/* COORDINATES_LIST for the tessellated face vertices */ 25#100=COORDINATES_LIST('mesh_verts',3, 26 ((0.,0.,0.),(5.,0.,0.),(5.,5.,0.),(0.,5.,0.))); 27/* TRIANGULATED_FACE with empty pnval () â the defect */ 28/* AP242 TRIANGULATED_FACE attributes: name, description, coordinates, 29 pnindex, normals, pnval, geometry_link, face_shape_representation */ 30/* Byte assertion: contains(b'no_pnval') */ 31#101=TRIANGULATED_FACE('no_pnval','',(#100),(),(),(),'',$); 32/* GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty */ 33#110=GEOMETRIC_CURVE_SET('triangulated-face-missing-pnval-indices', 34 (#100,#101)); 35/* PRODUCT chain */ 36#120=APPLICATION_CONTEXT('mechanical design'); 37#121=PRODUCT_CONTEXT('',#120,'mechanical'); 38#122=PRODUCT('M069','M069','M069',(#121)); 39#123=PRODUCT_DEFINITION_FORMATION('','',#122); 40#124=PRODUCT_DEFINITION_CONTEXT(#120,'design'); 41#125=PRODUCT_DEFINITION('','',#123,#124); 42#126=PRODUCT_DEFINITION_SHAPE('','',#125); 43#127=SHAPE_REPRESENTATION('',(#110),#14); 44#128=SHAPE_DEFINITION_REPRESENTATION(#126,#127); 45ENDSEC; 46END-ISO-10303-21;