step-examples/12-8-mixed/M065.stp
Sources
- OCCT STEPControl_ActorRead.cxx:736 ("Product has both sub-assemblies and directly assigned shape") (uncovered class evidence)
Sender
deduced — OCCT uncovered-class sweep
Description
A `PRODUCT_DEFINITION` is the parent of one or more NAUO children and *also* has its own `SHAPE_DEFINITION_REPRESENTATION` providing a direct shape. The reader doesn't know whether the product's geometry is "the assembly" or "the part on its own". Bug-reporter language: "product is both assembly and part", "duplicate geometry assignment".
Reproducer recipe
A `PRODUCT_DEFINITION` referenced by NAUO as parent, and also referenced by a `SHAPE_DEFINITION_REPRESENTATION` providing a `MANIFOLD_SOLID_BREP`.
Expected kernel behavior
Reject as malformed, or treat the direct shape as a "preview" and the assembly as canonical.
Notes
Synonyms: "hybrid product", "assembly with shape", "product is both assembly and part", "PDM product has direct geometry plus children", "shape-vs-NAUO ambiguity".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(3) ifc=schema_n/a
Byte assertions
contains(b'NEXT_ASSEMBLY_USAGE_OCCURRENCE')contains(b'SHAPE_DEFINITION_REPRESENTATION')
Tier-3 assertions
shape_null == Falsen_vertices_total == 3
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* M065: GEOMETRIC_CURVE_SET in file where PRODUCT_DEFINITION is both assembly parent in NEXT_ASSEMBLY_USAGE_OCCURRENCE and has direct geometry via SHAPE_DEFINITION_REPRESENTATION â hybrid product ambiguity; input: AP242 STEP file where product_def_parent is the relating_product_definition of a NEXT_ASSEMBLY_USAGE_OCCURRENCE (making it an assembly parent) AND is also the definition of a SHAPE_DEFINITION_REPRESENTATION whose used_representation contains a MANIFOLD_SOLID_BREP; AP242 §4.3 (product_definition_shape) does not forbid this combination but the semantics are undefined: is the product's shape the assembly result, the direct B-rep, or a preview B-rep of the assembly result? readers disagree: some show the B-rep, some the assembly, some nothing; silently resolving the ambiguity either way is incorrect; kernel must reject as malformed, or treat the direct shape as a preview and document the policy explicitly; OCC silently accepts (no diagnostic, empty result); GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty; synonyms: hybrid product, assembly with shape, product is both assembly and part, PDM product has direct geometry plus children, shape-vs-NAUO ambiguity */ 3HEADER; 4FILE_DESCRIPTION(('M065'),'2;1'); 5FILE_NAME('M065.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('parent_001','HybridProduct','Both assembly and part',(#2)); 13#4=PRODUCT_DEFINITION_FORMATION('','',#3); 14#5=PRODUCT_DEFINITION('design','',#4,#2); 15#6=PRODUCT('child_001','ChildPart','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=PRODUCT_DEFINITION_SHAPE('','',#5); 20#11=CARTESIAN_POINT('v1',(0.,0.,0.)); 21#12=CARTESIAN_POINT('v2',(10.,0.,0.)); 22#13=CARTESIAN_POINT('v3',(0.,10.,0.)); 23#14=DIRECTION('z_axis',(0.,0.,1.)); 24#15=DIRECTION('x_axis',(1.,0.,0.)); 25#16=AXIS2_PLACEMENT_3D('solid_placement',#11,#14,#15); 26#17=SHAPE_REPRESENTATION('direct_brep_rep',(#16),$); 27#18=SHAPE_DEFINITION_REPRESENTATION(#10,#17); 28#19=GEOMETRIC_CURVE_SET('product-has-both-sub-assemblies-and-direct-shape',(#9,#18,#10,#5,#8,#16,#11,#12,#13)); 29#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 30#9051=PRODUCT('M065','M065','',(#9050)); 31#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 32#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 33#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 34#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 35#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 36#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 37#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 38#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 39#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 40#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#19),#9060); 41#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 42ENDSEC; 43END-ISO-10303-21;