step-examples/12-5-units/U018.stp
Sources
- 02-caxif.md "Tessellated annotation coordinates with no global unit context" (PMI v4.1 §8.2
- Tessellated Geometry §4.1)
Description
`coordinates_list.position_coords` are bare `REAL`s, not `length_measure`. If a tessellated annotation or tessellated shape sits under a `representation_context` that is not a `global_unit_assigned_context`, coordinates have no resolvable unit. Common breakage: tessellated PMI extracted out of context appears 25.4× the correct size.
Reproducer recipe
STEP file with one `tessellated_annotation_occurrence` whose `tessellated_geometric_set` references a `coordinates_list`; place that occurrence's `tessellated_shape_representation` under a generic `representation_context` lacking `global_unit_assigned_context`.
Expected kernel behavior
reject or warn on tessellated representations not anchored in a `global_unit_assigned_context`.
Notes
Synonyms: "tessellated annotation no global unit context", "PMI tessellation 25.4x wrong", "tessellated coords without unit anchor", "annotation outside global_unit_assigned_context", "tessellated PMI silent unit drop".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'TESSELLATED_SHAPE_REPRESENTATION')contains(b'TESSELLATED_ANNOTATION_OCCURRENCE') or contains(b'TESSELLATED_GEOMETRIC_SET') or contains(b'TESSELLATED_SHAPE_REPRESENTATION')
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/* U018: Tessellated annotation coords with no global_unit_assigned_context */ 3/* TESSELLATED_SHAPE_REPRESENTATION placed under bare REPRESENTATION_CONTEXT */ 4/* coordinates_list uses bare REAL values with no resolvable unit */ 5/* PMI tessellation appears 25.4x wrong size due to missing unit anchor */ 6HEADER; 7FILE_DESCRIPTION(('U018: Tessellated PMI with no global_unit_assigned_context'),'2;1'); 8FILE_NAME('U018.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12/* Main geometry context â properly unit-assigned */ 13#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 14#2=CARTESIAN_POINT('corner-x',(50.0,0.,0.)); 15#3=CARTESIAN_POINT('corner-y',(0.,50.0,0.)); 16#4=CARTESIAN_POINT('corner-z',(0.,0.,25.0)); 17#5=CARTESIAN_POINT('corner-xyz',(50.0,50.0,25.0)); 18/* Proper unit context for main geometry */ 19#10=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.)); 20#11=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.)); 21#12=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT()); 22#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 23 'distance_accuracy_value','maximum model space distance between geometric entities'); 24#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 25 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) REPRESENTATION_CONTEXT('main-ctx','3D')); 26/* Main model entity */ 27#20=GEOMETRIC_CURVE_SET('main-geometry',(#1,#2,#3,#4,#5)); 28/* DEFECT: tessellated PMI placed under bare REPRESENTATION_CONTEXT */ 29/* No GLOBAL_UNIT_ASSIGNED_CONTEXT => coordinates have no resolvable unit */ 30#50=COORDINATES_LIST('annot-pts',3,( 31 (0.0,0.0,0.0),(50.0,0.0,0.0),(50.0,50.0,0.0),(0.0,50.0,0.0), 32 (0.0,0.0,0.0))); 33#51=TESSELLATED_GEOMETRIC_SET('tess-outline',(#50)); 34#52=TESSELLATED_ANNOTATION_OCCURRENCE('dim-label',(),(#51)); 35/* DEFECT: bare REPRESENTATION_CONTEXT â no GLOBAL_UNIT_ASSIGNED_CONTEXT */ 36#60=REPRESENTATION_CONTEXT('tess-pmi-ctx','3D'); 37#61=TESSELLATED_SHAPE_REPRESENTATION('tess-pmi-rep',(#52),#60); 38ENDSEC; 39END-ISO-10303-21;