step-examples/12-8-mixed/M043.stp
Sources
- 08-occt-gitlog.md (G110)
- OCCT 96049f2
- Mantis 0032049
Description
Multiple `PRESENTATION_LAYER_ASSIGNMENT` entries with the same name caused conflict; OCCT didn't differentiate them by visibility.
Reproducer recipe
STEP with two `PRESENTATION_LAYER_ASSIGNMENT` of identical name but different visibility flags.
Expected kernel behavior
Heal and accept: group layers by (name, visibility) tuple.
Notes
Synonyms: "layer name collision", "duplicate PRESENTATION_LAYER_ASSIGNMENT", "layers not differentiated by visibility", "layer with empty name". **See also**: A022.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Byte assertions
count_entity_def(b'PRESENTATION_LAYER_ASSIGNMENT') >= 2
Tier-3 assertions
shape_null == Falsen_vertices_total == 3
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/* M043: GEOMETRIC_CURVE_SET containing two PRESENTATION_LAYER_ASSIGNMENT entities with identical names but different visibility flags; input: AP242 STEP file where two PRESENTATION_LAYER_ASSIGNMENT entries share the name 'layer_A' â one marked visible, one hidden; OCCT Mantis 0032049 (96049f2): OCCT did not differentiate layers by visibility, grouping both under the same name and losing the visibility distinction; kernel must group layers by (name, visibility) tuple and preserve independent visibility state for each; OCC silently accepts (no diagnostic, empty result); GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty; synonyms: layer name collision, duplicate PRESENTATION_LAYER_ASSIGNMENT, layers not differentiated by visibility, layer with empty name */ 3HEADER; 4FILE_DESCRIPTION(('M043'),'2;1'); 5FILE_NAME('M043.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=CARTESIAN_POINT('item_pt1',(0.,0.,0.)); 11#2=CARTESIAN_POINT('item_pt2',(1.,0.,0.)); 12#3=CARTESIAN_POINT('item_pt3',(0.,1.,0.)); 13#4=PRESENTATION_LAYER_ASSIGNMENT('layer_A','visible layer',(#1)); 14#5=PRESENTATION_LAYER_ASSIGNMENT('layer_A','hidden layer',(#2)); 15#6=DRAUGHTING_MODEL('collision_model',(#4,#5)); 16#7=GEOMETRIC_CURVE_SET('layer-name-collision-duplicate-pla',(#4,#5,#6,#1,#2,#3)); 17#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 18#9051=PRODUCT('M043','M043','',(#9050)); 19#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 20#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 21#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 22#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 23#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 24#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 25#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 26#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 27#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 28#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#7),#9060); 29#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 30ENDSEC; 31END-ISO-10303-21;