U006 — PrePoMax double-applies inch→mm scaling on inch STEP (25.4× too large)

§12.5 (sub-class: inch-conversion / receiver-side double scaling)

P1 — silent data loss

units

Sources

Sender

SolidWorks (inch units)

Description

PrePoMax recognizes the STEP file as inch and then multiplies coordinates by 25.4, leaving the body 25.4× too large; the conversion is applied where coordinates are already in mm.

Reproducer recipe

inch SolidWorks STEP with `CONVERSION_BASED_UNIT('INCH',#lmwu)` and `LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(25.4),#mm)` — coordinates in mm — receiver multiplies by 25.4 again.

Expected kernel behavior

Heal and accept: normalize / apply the `CONVERSION_BASED_UNIT` factor exactly once; never compose with target-unit conversion on the same coordinates.

Notes

**See also**: N029, U023. Synonyms: "PrePoMax double-applies inch scaling", "STEP body 25.4x too large in PrePoMax", "inch STEP scaled twice by 25.4", "double inch-to-mm conversion", "PrePoMax inch import 25.4x off".

Expected validation

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

Byte assertions

Tier-3 assertions

Cross-references

N029, U023

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* U006: PrePoMax double-applies inch->mm scaling on SolidWorks inch STEP */
3/* File declares CONVERSION_BASED_UNIT('INCH',...) with 25.4 mm factor */
4/* Coordinates are in mm (25.4 = 1 inch, 50.8 = 2 inches) */
5/* PrePoMax sees INCH unit and multiplies by 25.4 again => 25.4x too large */
6HEADER;
7FILE_DESCRIPTION(('U006: SolidWorks inch STEP; PrePoMax double-applies 25.4x factor'),'2;1');
8FILE_NAME('U006.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
10ENDSEC;
11DATA;
12/* Geometry: 1x2x1 inch part; coordinates in mm (25.4 mm = 1 in, 50.8 mm = 2 in) */
13#1=CARTESIAN_POINT('origin',(0.,0.,0.));
14#2=CARTESIAN_POINT('corner-x',(25.4,0.,0.));
15#3=CARTESIAN_POINT('corner-y',(0.,50.8,0.));
16#4=CARTESIAN_POINT('corner-z',(0.,0.,25.4));
17#5=CARTESIAN_POINT('corner-xyz',(25.4,50.8,25.4));
18#6=DIRECTION('xdir',(1.,0.,0.));
19#7=DIRECTION('zdir',(0.,0.,1.));
20/* DEFECT: CONVERSION_BASED_UNIT declares INCH; coordinates are already in mm */
21/* PrePoMax applies the 25.4 inch->mm factor a second time => 25.4x too large */
22/* SI mm basis for the inch conversion factor */
23#8=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
24/* 1 inch = 25.4 mm — this is the conversion factor */
25#9=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(25.4),#8);
26/* DEFECT: CONVERSION_BASED_UNIT('INCH') triggers double-scaling in PrePoMax */
27#10=(CONVERSION_BASED_UNIT('INCH',#9) LENGTH_UNIT() NAMED_UNIT(*));
28#11=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.));
29#12=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT());
30#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.0254),#8,
31  'distance_accuracy_value','maximum model space distance between geometric entities');
32#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
33  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) REPRESENTATION_CONTEXT('ctx','3D'));
34/* Model entity is GEOMETRIC_CURVE_SET — OCC returns empty shape */
35#20=GEOMETRIC_CURVE_SET('solidworks-inch-mm-coords',(#1,#2,#3,#4,#5));
36ENDSEC;
37END-ISO-10303-21;