step-examples/12-8-mixed/M014.stp
Sources
- 02-caxif.md
- Supplemental Geometry §5.4
Description
Supplemental geometry referenced by PMI `geometric_item_specific_usage` must use the `constructive_geometry_representation` as `used_representation`. If the writer uses the part's `shape_representation` instead, the PMI link is invalid.
Reproducer recipe
PMI element references a supplemental plane via GISU whose `used_representation` is the `advanced_brep_shape_representation` of the manufactured shape, not the CGR.
Expected kernel behavior
Reject the broken link with diagnostic: kernel must check `used_representation` actually contains the referenced item.
Notes
Synonyms: "anonymous CGR relationship breaks PMI", "GISU links wrong representation", "PMI link to part shape instead of CGR", "supplemental geometry PMI binding lost".
Expected validation
occt=shape(1)/shape(1) gmsh=shape(27) ifc=schema_n/a
Tier-3 assertions
face[0].surface_type == "plane"face[5].surface_type == "plane"
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* M014: Anonymous CGR relationship breaks PMI link; input: AP242 STEP file with MANIFOLD_SOLID_BREP (1 mm cube) plus CONSTRUCTIVE_GEOMETRY_REPRESENTATION containing a datum plane; PMI annotation uses GEOMETRIC_ITEM_SPECIFIC_USAGE (GISU) to reference the datum plane, but GISU.used_representation points at the ADVANCED_BREP_SHAPE_REPRESENTATION (the manufactured shape) instead of the CGR; Supplemental Geometry §5.4: GISU.used_representation must be the CGR that contains the supplemental element; kernel must reject the broken link with diagnostic; OCC loads the shape without diagnostic (reads as healing); synonyms: anonymous CGR relationship breaks PMI, GISU links wrong representation, PMI link to part shape instead of CGR, supplemental geometry PMI binding lost */ 3HEADER; 4FILE_DESCRIPTION(('M014'),'2;1'); 5FILE_NAME('M014.stp','2026-06-21T00: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#1=APPLICATION_CONTEXT('managed model based 3d engineering'); 10#2=APPLICATION_PROTOCOL_DEFINITION('international standard', 11 'ap242_managed_model_based_3d_engineering',2014,#1); 12#10=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 13#11=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 14#12=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 15#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.E-6),#10,'distance_accuracy_value',''); 16#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) 17 GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 18 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) 19 REPRESENTATION_CONTEXT('part','3D')); 20#300=PRODUCT('cube','cube','',(#310)); 21#310=MECHANICAL_CONTEXT('',#1,'mechanical'); 22#320=PRODUCT_DEFINITION_FORMATION('','',#300); 23#330=PRODUCT_DEFINITION('design','',#320,#340); 24#340=PRODUCT_DEFINITION_CONTEXT('part definition',#1,'design'); 25#350=PRODUCT_DEFINITION_SHAPE('','',#330); 26#500=MANIFOLD_SOLID_BREP('cube_solid',#510); 27#5700=CARTESIAN_POINT('p000',(0.0,0.0,0.0)); 28#5701=CARTESIAN_POINT('p100',(1.0,0.0,0.0)); 29#5702=CARTESIAN_POINT('p110',(1.0,1.0,0.0)); 30#5703=CARTESIAN_POINT('p010',(0.0,1.0,0.0)); 31#5704=CARTESIAN_POINT('p001',(0.0,0.0,1.0)); 32#5705=CARTESIAN_POINT('p101',(1.0,0.0,1.0)); 33#5706=CARTESIAN_POINT('p111',(1.0,1.0,1.0)); 34#5707=CARTESIAN_POINT('p011',(0.0,1.0,1.0)); 35#5710=VERTEX_POINT('',#5700); 36#5711=VERTEX_POINT('',#5701); 37#5712=VERTEX_POINT('',#5702); 38#5713=VERTEX_POINT('',#5703); 39#5714=VERTEX_POINT('',#5704); 40#5715=VERTEX_POINT('',#5705); 41#5716=VERTEX_POINT('',#5706); 42#5717=VERTEX_POINT('',#5707); 43#5720=DIRECTION('dx',(1.0,0.0,0.0)); 44#5721=DIRECTION('dy',(0.0,1.0,0.0)); 45#5722=DIRECTION('dz',(0.0,0.0,1.0)); 46#5723=DIRECTION('dxn',(-1.0,0.0,0.0)); 47#5724=DIRECTION('dyn',(0.0,-1.0,0.0)); 48#5725=DIRECTION('dzn',(0.0,0.0,-1.0)); 49#5730=VECTOR('vx',#5720,1.0); 50#5731=VECTOR('vy',#5721,1.0); 51#5732=VECTOR('vz',#5722,1.0); 52#5740=LINE('',#5700,#5730); 53#5741=LINE('',#5701,#5731); 54#5742=LINE('',#5703,#5730); 55#5743=LINE('',#5700,#5731); 56#5744=LINE('',#5704,#5730); 57#5745=LINE('',#5705,#5731); 58#5746=LINE('',#5707,#5730); 59#5747=LINE('',#5704,#5731); 60#5748=LINE('',#5700,#5732); 61#5749=LINE('',#5701,#5732); 62#5750=LINE('',#5702,#5732); 63#5751=LINE('',#5703,#5732); 64#5760=EDGE_CURVE('',#5710,#5711,#5740,.T.); 65#5761=EDGE_CURVE('',#5711,#5712,#5741,.T.); 66#5762=EDGE_CURVE('',#5713,#5712,#5742,.T.); 67#5763=EDGE_CURVE('',#5710,#5713,#5743,.T.); 68#5764=EDGE_CURVE('',#5714,#5715,#5744,.T.); 69#5765=EDGE_CURVE('',#5715,#5716,#5745,.T.); 70#5766=EDGE_CURVE('',#5717,#5716,#5746,.T.); 71#5767=EDGE_CURVE('',#5714,#5717,#5747,.T.); 72#5768=EDGE_CURVE('',#5710,#5714,#5748,.T.); 73#5769=EDGE_CURVE('',#5711,#5715,#5749,.T.); 74#5770=EDGE_CURVE('',#5712,#5716,#5750,.T.); 75#5771=EDGE_CURVE('',#5713,#5717,#5751,.T.); 76#5780=AXIS2_PLACEMENT_3D('',#5700,#5725,#5720); 77#5781=AXIS2_PLACEMENT_3D('',#5704,#5722,#5720); 78#5782=AXIS2_PLACEMENT_3D('',#5700,#5724,#5720); 79#5783=AXIS2_PLACEMENT_3D('',#5703,#5721,#5720); 80#5784=AXIS2_PLACEMENT_3D('',#5700,#5723,#5721); 81#5785=AXIS2_PLACEMENT_3D('',#5701,#5720,#5721); 82#5790=PLANE('',#5780); 83#5791=PLANE('',#5781); 84#5792=PLANE('',#5782); 85#5793=PLANE('',#5783); 86#5794=PLANE('',#5784); 87#5795=PLANE('',#5785); 88#5800=ORIENTED_EDGE('',*,*,#5763,.T.); 89#5801=ORIENTED_EDGE('',*,*,#5762,.T.); 90#5802=ORIENTED_EDGE('',*,*,#5761,.F.); 91#5803=ORIENTED_EDGE('',*,*,#5760,.F.); 92#5804=ORIENTED_EDGE('',*,*,#5764,.T.); 93#5805=ORIENTED_EDGE('',*,*,#5765,.T.); 94#5806=ORIENTED_EDGE('',*,*,#5766,.F.); 95#5807=ORIENTED_EDGE('',*,*,#5767,.F.); 96#5808=ORIENTED_EDGE('',*,*,#5760,.T.); 97#5809=ORIENTED_EDGE('',*,*,#5769,.T.); 98#5810=ORIENTED_EDGE('',*,*,#5764,.F.); 99#5811=ORIENTED_EDGE('',*,*,#5768,.F.); 100#5812=ORIENTED_EDGE('',*,*,#5771,.T.); 101#5813=ORIENTED_EDGE('',*,*,#5766,.T.); 102#5814=ORIENTED_EDGE('',*,*,#5770,.F.); 103#5815=ORIENTED_EDGE('',*,*,#5762,.F.); 104#5816=ORIENTED_EDGE('',*,*,#5768,.T.); 105#5817=ORIENTED_EDGE('',*,*,#5767,.T.); 106#5818=ORIENTED_EDGE('',*,*,#5771,.F.); 107#5819=ORIENTED_EDGE('',*,*,#5763,.F.); 108#5820=ORIENTED_EDGE('',*,*,#5761,.T.); 109#5821=ORIENTED_EDGE('',*,*,#5770,.T.); 110#5822=ORIENTED_EDGE('',*,*,#5765,.F.); 111#5823=ORIENTED_EDGE('',*,*,#5769,.F.); 112#5830=EDGE_LOOP('',(#5800,#5801,#5802,#5803)); 113#5831=EDGE_LOOP('',(#5804,#5805,#5806,#5807)); 114#5832=EDGE_LOOP('',(#5808,#5809,#5810,#5811)); 115#5833=EDGE_LOOP('',(#5812,#5813,#5814,#5815)); 116#5834=EDGE_LOOP('',(#5816,#5817,#5818,#5819)); 117#5835=EDGE_LOOP('',(#5820,#5821,#5822,#5823)); 118#5840=FACE_OUTER_BOUND('',#5830,.T.); 119#5841=FACE_OUTER_BOUND('',#5831,.T.); 120#5842=FACE_OUTER_BOUND('',#5832,.T.); 121#5843=FACE_OUTER_BOUND('',#5833,.T.); 122#5844=FACE_OUTER_BOUND('',#5834,.T.); 123#5845=FACE_OUTER_BOUND('',#5835,.T.); 124#5850=ADVANCED_FACE('bottom',(#5840),#5790,.F.); 125#5851=ADVANCED_FACE('top',(#5841),#5791,.T.); 126#5852=ADVANCED_FACE('front',(#5842),#5792,.F.); 127#5853=ADVANCED_FACE('back',(#5843),#5793,.T.); 128#5854=ADVANCED_FACE('left',(#5844),#5794,.F.); 129#5855=ADVANCED_FACE('right',(#5845),#5795,.T.); 130#510=CLOSED_SHELL('',(#5850,#5851,#5852,#5853,#5854,#5855)); 131/* ADVANCED_BREP_SHAPE_REPRESENTATION â the part's main shape repr (#520) */ 132#520=ADVANCED_BREP_SHAPE_REPRESENTATION('',(#500),#14); 133#530=SHAPE_DEFINITION_REPRESENTATION(#350,#520); 134/* Supplemental datum plane in its own CGR (#620) */ 135#600=CARTESIAN_POINT('',(0.5,0.5,0.5)); 136#601=DIRECTION('',(0.0,0.0,1.0)); 137#602=DIRECTION('',(1.0,0.0,0.0)); 138#603=AXIS2_PLACEMENT_3D('',#600,#601,#602); 139#604=PLANE('datum_A',#603); 140/* CGR that properly owns the datum plane */ 141#620=CONSTRUCTIVE_GEOMETRY_REPRESENTATION('cgr_datums',(#604),#14); 142/* GISU â Defect: used_representation points at #520 (the ABREP shape) */ 143/* Correct: used_representation should be #620 (the CGR) */ 144/* Kernel must check that GISU.used_representation actually contains #604 */ 145#700=GEOMETRIC_ITEM_SPECIFIC_USAGE('pmi_plane_link','pmi link to datum A', 146 #604, 147 #520); 148/* #520 is the ADVANCED_BREP_SHAPE_REPRESENTATION: it does NOT contain #604. 149 A conformant reader must reject this broken PMI link. */ 150ENDSEC; 151END-ISO-10303-21;