step-examples/12-8-mixed/M062.stp
Sources
- OCCT STEPControl_ActorRead.cxx:1149 ("SRR reverses relation defined by NAUO") (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
A `SHAPE_REPRESENTATION_RELATIONSHIP` declares parent→child while a corresponding `NEXT_ASSEMBLY_USAGE_OCCURRENCE` declares child→parent. The reader silently picks one. Bug-reporter language: "assembly relation reversed", "parent/child conflict in STEP", "SRR vs NAUO direction mismatch".
Reproducer recipe
An NAUO declaring A is parent of B, plus an SRR with the opposite direction.
Expected kernel behavior
Reject the conflict with diagnostic; trust NAUO by convention but make the choice explicit. Must not silently resolve.
Notes
Synonyms: "assembly direction conflict", "SRR vs NAUO direction mismatch", "parent/child conflict in STEP", "assembly relation reversed".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE')contains(b'SHAPE_REPRESENTATION_RELATIONSHIP')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M062: GEOMETRIC_CURVE_SET in file where NEXT_ASSEMBLY_USAGE_OCCURRENCE declares product_A as parent of product_B, but SHAPE_REPRESENTATION_RELATIONSHIP encodes the opposite direction (rep_Bârep_A) â assembly relation conflict; input: AP242 STEP assembly file with NAUO(relating=product_def_A, related=product_def_B) and SRR(rep_A=shape_rep_B, rep_B=shape_rep_A), reversing the parentâchild direction established by the NAUO; AP242 §4.3.2 (assembly_component_usage) requires SRR and NAUO to be consistent: the SRR.rep_1 must be the representing_item for the NAUO's relating_product_definition, and SRR.rep_2 for the related; the conflict means one direction is authoritative and the other is wrong; readers that trust NAUO will invert the assembly; readers that trust SRR will produce the same wrong result; silently resolving either way is a bug; kernel must reject the conflict with a diagnostic; or trust NAUO by convention and make the choice explicit in a warning; OCC silently accepts (no diagnostic, empty result); GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty; synonyms: assembly direction conflict, SRR vs NAUO direction mismatch, parent/child conflict in STEP, assembly relation reversed */ 3HEADER; 4FILE_DESCRIPTION(('M062'),'2;1'); 5FILE_NAME('M062.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=APPLICATION_CONTEXT('mechanical design'); 11#2=PRODUCT_CONTEXT('',#1,'design'); 12#3=PRODUCT('A','Assembly_A','Parent assembly',(#2)); 13#4=PRODUCT_DEFINITION_FORMATION('','',#3); 14#5=PRODUCT_DEFINITION('design','',#4,#2); 15#6=PRODUCT('B','Component_B','Child component',(#2)); 16#7=PRODUCT_DEFINITION_FORMATION('','',#6); 17#8=PRODUCT_DEFINITION('design','',#7,#2); 18#9=NEXT_ASSEMBLY_USAGE_OCCURRENCE('u1','','uses',#5,#8,$); 19#10=GEOMETRIC_REPRESENTATION_CONTEXT(3); 20#11=SHAPE_REPRESENTATION('rep_A',(),#10); 21#12=SHAPE_REPRESENTATION('rep_B',(),#10); 22#13=SHAPE_REPRESENTATION_RELATIONSHIP('srr_reversed','reversed direction',#12,#11); 23#14=GEOMETRIC_CURVE_SET('srr-reverses-nauo-assembly-relation-direction',(#9,#13,#11,#12,#5,#8)); 24#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 25#9051=PRODUCT('M062','M062','',(#9050)); 26#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 27#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 28#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 29#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 30#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 31#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 32#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 33#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 34#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 35#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#14),#9060); 36#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 37ENDSEC; 38END-ISO-10303-21;