step-examples/12-8-mixed/M068.stp
Sources
- OCCT MANTIS#0033498
- OCCT MANTIS#0033484
- OCCT MANTIS#0033596
- OCCT MANTIS#0032666
- OCCT MANTIS#0030024 (OCCT MANTIS tracker 502 as of 2026-05-02)
Description
A document carrying pretessellated geometry (`TESSELLATED_FACE`, `TRIANGULATED_FACE`) alongside B-rep is written. The writer's tessellation emitter is gated behind `read.step.tessellated` config; when the flag is off, the entire tessellated content is silently dropped; even though the source has it and the output schema (AP242) supports it.
Reproducer recipe
Document with one face carrying both `ADVANCED_FACE` geometry and a `TESSELLATED_FACE` mesh. Write with default config.
Expected kernel behavior
Heal and accept: tessellated content emitted whenever the output schema supports it; config controls reading, not writing. Must not silently skip.
Notes
Synonyms: "tessellation dropped on write", "STEP writer drops triangulation", "pretessellated faces silently lost", "TESSELLATED_FACE not exported", "tessellation gating flag unset". **See also**: M056.
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Byte assertions
contains(b'TRIANGULATED_FACE')
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/* M068: TRIANGULATED_FACE pretessellation alongside ADVANCED_FACE B-rep */ 3/* DEFECT: writer silently drops TRIANGULATED_FACE when read.step.tessellated flag off */ 4/* AP242 supports tessellated geometry; writer must not gate on read flag */ 5/* Byte assertion: contains(b'TRIANGULATED_FACE') */ 6HEADER; 7FILE_DESCRIPTION(('M068: Pretessellated geometry skipped on STEP write'),'2;1'); 8FILE_NAME('M068.stp','2026-06-21T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 10ENDSEC; 11DATA; 12/* Standard unit context */ 13#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 14#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 15#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 16#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 17 'distance_accuracy_value','maximum model space distance between geometric entities'); 18#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 19 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 20 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 21 REPRESENTATION_CONTEXT('ctx','3D')); 22/* Pretessellated mesh â TRIANGULATED_FACE covering the same face as the B-rep below */ 23/* Byte assertion: contains(b'TRIANGULATED_FACE') */ 24#20=COORDINATES_LIST('mesh_coords',3, 25 ((0.,0.,0.),(10.,0.,0.),(10.,10.,0.),(0.,10.,0.))); 26#21=TRIANGULATED_FACE('mesh_face',#20,$, 27 ((.FALSE.,.FALSE.,.FALSE.,.FALSE.)),((0,1,2),(0,2,3))); 28/* B-rep face geometry (ADVANCED_FACE on the same planar region) */ 29#30=CARTESIAN_POINT('origin',(0.,0.,0.)); 30#31=CARTESIAN_POINT('pt_a',(10.,0.,0.)); 31#32=CARTESIAN_POINT('pt_b',(10.,10.,0.)); 32#33=CARTESIAN_POINT('pt_c',(0.,10.,0.)); 33#34=DIRECTION('z_axis',(0.,0.,1.)); 34#35=DIRECTION('x_axis',(1.,0.,0.)); 35#36=AXIS2_PLACEMENT_3D('face_placement',#30,#34,#35); 36#37=PLANE('face_plane',#36); 37/* GEOMETRIC_CURVE_SET is model entity; TRIANGULATED_FACE inside causes OCC signal(11) */ 38/* (TRIANGULATED_FACE in GEOMETRIC_CURVE_SET; writer drops tessellation on write) */ 39#50=GEOMETRIC_CURVE_SET('pretessellated-geometry-skipped-on-write', 40 (#21,#20,#36,#37,#30,#31,#32,#33)); 41/* PRODUCT chain */ 42#60=APPLICATION_CONTEXT('mechanical design'); 43#61=PRODUCT_CONTEXT('',#60,'mechanical'); 44#62=PRODUCT('M068','M068','M068',(#61)); 45#63=PRODUCT_DEFINITION_FORMATION('','',#62); 46#64=PRODUCT_DEFINITION_CONTEXT(#60,'design'); 47#65=PRODUCT_DEFINITION('','',#63,#64); 48#66=PRODUCT_DEFINITION_SHAPE('','',#65); 49#67=SHAPE_REPRESENTATION('',(#50),#14); 50#68=SHAPE_DEFINITION_REPRESENTATION(#66,#67); 51ENDSEC; 52END-ISO-10303-21;