step-examples/12-8-mixed/M020.stp
Sources
- 08-occt-gitlog.md (G036)
- OCCT 9d93d9b
- Mantis 0033638
Description
When a face is encoded as `TESSELLATED_FACE`/`COMPLEX_TRIANGULATED_SURFACE_SET`, the style attached to it was not bound (no shape binder created).
Reproducer recipe
`TESSELLATED_FACE` with associated `STYLED_ITEM`.
Expected kernel behavior
Heal and accept: bind style to tessellated shape; preserve color. Must not silently lose color.
Notes
Synonyms: "tessellated face style binding lost", "TransferBRep_ShapeBinder not created", "complex triangulated face has no style", "tessellated face color not bound". **See also**: A019, Pmi049, M017.
Expected validation
occt=signal(11)/signal(11) gmsh=signal(11) ifc=schema_n/a
Byte assertions
contains(b'STYLED_ITEM')contains(b'TRIANGULATED_FACE')contains(b'COLOUR_RGB')
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/* M020: GEOMETRIC_CURVE_SET containing TESSELLATED_FACE with STYLED_ITEM and COLOUR_RGB referencing it; input: AP242 STEP file where TESSELLATED_FACE (TRIANGULATED_FACE) has an associated STYLED_ITEM with COLOUR_RGB but the style binding is not propagated to a shape binder; OCCT 9d93d9b (Mantis 0033638): no TransferBRep_ShapeBinder created for tessellated face style; color silently lost on import; kernel must heal: bind STYLED_ITEM color to tessellated shape; preserve color; must not silently lose color; OCC silently accepts (no diagnostic, empty result); GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty; synonyms: tessellated face style binding lost, TransferBRep_ShapeBinder not created, complex triangulated face has no style, tessellated face color not bound */ 3HEADER; 4FILE_DESCRIPTION(('M020'),'2;1'); 5FILE_NAME('M020.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('tface_verts',3,((0.,0.,0.),(8.,0.,0.),(8.,8.,0.),(0.,8.,0.))); 11#2=TRIANGULATED_FACE('tface_quad',#1,$,((.FALSE.,.FALSE.,.FALSE.,.FALSE.)),((0,1,2),(0,2,3))); 12#3=COLOUR_RGB('face_colour',0.2,0.6,0.9); 13#4=FILL_AREA_STYLE_COLOUR('',#3); 14#5=FILL_AREA_STYLE('face_fill',(#4)); 15#6=SURFACE_STYLE_FILL_AREA(#5); 16#7=SURFACE_SIDE_STYLE('face_side_style',(#6)); 17#8=SURFACE_STYLE_USAGE(.BOTH.,#7); 18#9=PRESENTATION_STYLE_ASSIGNMENT((#8)); 19#10=STYLED_ITEM('tface_styled',(#9),#2); 20#11=GEOMETRIC_CURVE_SET('tessellated-face-style-binding-lost',(#2,#10)); 21#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 22#9051=PRODUCT('M020','M020','',(#9050)); 23#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 24#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 25#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 26#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 27#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 28#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 29#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 30#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 31#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 32#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#11),#9060); 33#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 34ENDSEC; 35END-ISO-10303-21;