U037 — `RescaleGeometry` does not rescale triangulations

§12.5 units

P1 — silent data loss

units

Sources

Description

A part with both B-rep and triangulated representation is rescaled (e.g., from inches to millimetres). The rescale operates on the B-rep but skips the attached triangulation, producing a part whose mesh is at the wrong scale.

Reproducer recipe

Cube with `LENGTH_UNIT = INCH`, attached triangulation matching the inch-scale geometry. Rescale to millimetres. B-rep edges are 25.4 mm; triangulation vertices are 1.0 mm.

Expected kernel behavior

Heal and accept: normalize / rescale walks every representation form attached to a part — B-rep, mesh, polyline, point cloud — and applies the factor consistently.

Notes

**See also**: M046. Synonyms: "RescaleGeometry skips triangulation", "B-rep rescaled but mesh not", "triangulation at wrong scale after rescale", "OCCT rescale partial across representations", "mesh scale wrong after unit conversion".

Expected validation

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

Closure intent

solid — authored as a closed solid; openness is the defect — heal it shut.

Byte assertions

Tier-3 assertions

Cross-references

M046

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* U037: RescaleGeometry rescales B-rep but skips TRIANGULATED_FACE mesh */
3/* File declares INCH; 1x1x1 cube has B-rep coords and mesh coords both at inch scale */
4/* DEFECT: after RescaleGeometry to MM, B-rep becomes 25.4 mm but mesh stays 1.0 mm */
5/* Kernel must rescale all representation forms consistently */
6HEADER;
7FILE_DESCRIPTION(('U037: INCH cube with TRIANGULATED_FACE — rescale skips mesh'),'2;1');
8FILE_NAME('U037.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','','');
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
10ENDSEC;
11DATA;
12/* SI mm basis for conversion reference */
13#8=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.));
14/* INCH conversion: 25.4 mm per inch */
15#9=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(25.4),#8);
16/* File declares INCH as active length unit */
17#10=(CONVERSION_BASED_UNIT('INCH',#9) LENGTH_UNIT() NAMED_UNIT(*));
18#11=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.));
19#12=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT());
20#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(3.937E-5),#10,
21  'distance_accuracy_value','maximum model space distance between geometric entities');
22#14=(GEOMETRIC_REPRESENTATION_CONTEXT(3) GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13))
23  GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) REPRESENTATION_CONTEXT('ctx','3D'));
24/* B-rep geometry: 1x1x1 inch cube corners (values in inches) */
25#1=CARTESIAN_POINT('origin',(0.,0.,0.));
26#2=CARTESIAN_POINT('corner-x',(1.0,0.,0.));
27#3=CARTESIAN_POINT('corner-y',(0.,1.0,0.));
28#4=CARTESIAN_POINT('corner-z',(0.,0.,1.0));
29#5=CARTESIAN_POINT('corner-xyz',(1.0,1.0,1.0));
30/* TRIANGULATED_FACE mesh at inch scale */
31/* Mesh vertices: same 1-inch unit coords — RescaleGeometry skips these */
32#20=COORDINATES_LIST('cube_mesh_nodes',3,
33  ((0.,0.,0.),(1.,0.,0.),(1.,1.,0.),(0.,1.,0.),
34   (0.,0.,1.),(1.,0.,1.),(1.,1.,1.),(0.,1.,1.)));
35/* DEFECT: TRIANGULATED_FACE vertices at inch scale; B-rep will be rescaled to mm */
36#21=TRIANGULATED_FACE('cube_bottom_face',#20,.F.,2,
37  ((1,2,3),(1,3,4)));
38#22=TRIANGULATED_FACE('cube_top_face',#20,.F.,2,
39  ((5,6,7),(5,7,8)));
40/* Geometric curve set: model entity for ARCHETYPE-A — OCC returns empty shape */
41#30=GEOMETRIC_CURVE_SET('rescale-skips-triangulation',(#1,#2,#3,#4,#5));
42ENDSEC;
43END-ISO-10303-21;