U020 — Validation properties (mass / area / volume) emitted with units mismatched to GRC

§12.5 (sub-class: mixed-unit / validation)

P1 — silent data loss

units

Sources

Description

Validation properties (volume, surface area, centroid) emitted with measure units that don't match the model's `GEOMETRIC_REPRESENTATION_CONTEXT`; or with no `unit_component` at all.

Reproducer recipe

XCAF with validation properties exported in non-mm units while geometry GRC is mm; or `MEASURE_REPRESENTATION_ITEM` with no `unit_component` reference.

Expected kernel behavior

Heal and accept: normalize emit / validate to the same unit on validation properties as on geometry; coerce `unit_component` to be present and consistent.

Notes

Synonyms: "validation properties units mismatch GRC", "mass area volume in different unit than geometry", "MEASURE_REPRESENTATION_ITEM no unit_component", "STEP validation property unit drift", "validation property unit not consistent".

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* U020: Validation properties (area/volume) with units mismatched to geometry GRC */
3/* Geometry context is mm; validation properties use metre-based measures */
4/* Also: one MEASURE_REPRESENTATION_ITEM has no unit_component reference */
5HEADER;
6FILE_DESCRIPTION(('U020: Validation property units mismatched to GRC'),'2;1');
7FILE_NAME('U020.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
8FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
9ENDSEC;
10DATA;
11/* Geometry: 50x50x10 mm block */
12#1=CARTESIAN_POINT('origin',(0.,0.,0.));
13#2=CARTESIAN_POINT('corner-x',(50.0,0.,0.));
14#3=CARTESIAN_POINT('corner-y',(0.,50.0,0.));
15#4=CARTESIAN_POINT('corner-z',(0.,0.,10.0));
16#5=CARTESIAN_POINT('corner-xyz',(50.0,50.0,10.0));
17/* Geometry context: mm */
18#10=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
19#11=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.));
20#12=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT());
21#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10,
22  'distance_accuracy_value','maximum model space distance between geometric entities');
23#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
24  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) REPRESENTATION_CONTEXT('ctx','3D'));
25/* Main model entity */
26#20=GEOMETRIC_CURVE_SET('geometry',(#1,#2,#3,#4,#5));
27/* DEFECT: Validation-property context uses METRE (not MILLI METRE) */
28/* Area: 50x50 mm = 2500 mm^2, but emitted as 0.0025 m^2 in a metre context */
29#30=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT($,.METRE.));
30/* DEFECT: AREA_MEASURE uses metre-squared unit — mismatched to mm GRC */
31#31=(AREA_UNIT() NAMED_UNIT(*) SI_UNIT($,.SQUARE_METRE.));
32/* DEFECT: VOLUME_MEASURE uses metre-cubed unit — mismatched to mm GRC */
33#32=(NAMED_UNIT(*) SI_UNIT($,.CUBIC_METRE.) VOLUME_UNIT());
34/* Validation property: surface area in m^2 (should be mm^2 to match GRC) */
35#40=MEASURE_WITH_UNIT(AREA_MEASURE(2.5E-3),#31);
36#41=MEASURE_REPRESENTATION_ITEM('surface_area',AREA_MEASURE(2.5E-3),#31);
37/* Validation property: volume in m^3 (should be mm^3 to match GRC) */
38#42=MEASURE_WITH_UNIT(VOLUME_MEASURE(2.5E-5),#32);
39#43=MEASURE_REPRESENTATION_ITEM('volume',VOLUME_MEASURE(2.5E-5),#32);
40/* DEFECT: centroid item with no unit_component reference -- dimensionless value */
41#44=MEASURE_REPRESENTATION_ITEM('centroid_x',LENGTH_MEASURE(25.0),$);
42ENDSEC;
43END-ISO-10303-21;