Apply Scale and Rotation introducing scale differences up to 0.9mm in small scale objects #97244

Closed
opened 2022-04-11 12:38:02 +02:00 by Alexander Dumproff · 10 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: Quadro P2000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11

Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: c77597cd0e

Short description of error
An object of smaller scale can introduce scale differences of up to 0.9mm when rotation is applied to the model.
Original object:
grafik.png

Applied Object:
grafik.png

Exact steps for others to reproduce the error
Please take a look at the attached file and compare the scale of the two objects.
When the Rotation is applied to the original object you will notice the scale shift slighty.
The example file is reconstructed as the original one I was working on is under NDA and can't be posted to a public bugtracker.

Example file:
Apply_ScaleDiff_example.blend

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: Quadro [P2000](https://archive.blender.org/developer/P2000.txt)/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11 **Blender Version** Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash: `c77597cd0e` **Short description of error** An object of smaller scale can introduce scale differences of up to 0.9mm when rotation is applied to the model. Original object: ![grafik.png](https://archive.blender.org/developer/F12995064/grafik.png) Applied Object: ![grafik.png](https://archive.blender.org/developer/F12995068/grafik.png) **Exact steps for others to reproduce the error** Please take a look at the attached file and compare the scale of the two objects. When the Rotation is applied to the original object you will notice the scale shift slighty. *The example file is reconstructed as the original one I was working on is under NDA and can't be posted to a public bugtracker.* Example file: [Apply_ScaleDiff_example.blend](https://archive.blender.org/developer/F12995031/Apply_ScaleDiff_example.blend)

Added subscriber: @A.Lex_3D

Added subscriber: @A.Lex_3D

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

Can you upload mesh where you need to apply rotation to reproduce this from "good state"?

From what I remember Dimensions property is calculated from mesh. It can happen with small meshes, that precision of vertex positions will result in usually very small difference. Not exactly sure if this is the case here as this mesh isn't that small.

Can you upload mesh where you need to apply rotation to reproduce this from "good state"? From what I remember Dimensions property is calculated from mesh. It can happen with small meshes, that precision of vertex positions will result in usually very small difference. Not exactly sure if this is the case here as this mesh isn't that small.

Just checked how boundbox looks like and I can see that one is rotated, so I would consider this to be expected behavior unless I am missing something

#97244.png

Just checked how boundbox looks like and I can see that one is rotated, so I would consider this to be expected behavior unless I am missing something ![#97244.png](https://archive.blender.org/developer/F12998452/T97244.png)

If you want to reproduce it, then

  • duplicate the rotated mesh "Oricinal Sculpt"
  • expand the N-Panel
  • watch the Y-Dimension when hitting Apply Rotation and scale.

Object "Original Sculpt" has rotational values and it's dimenstions are [24.5,28.1, 7.49].
As soon as you apply the rotation to the mesh the displayed scale of the mesh changes to [24.5, 27.9, 7.49]

In this example it's merely 0.18 mm and it doesn't seem like the mesh actually changed when overlapping them.
In the file I was working on at work the scale difference was much more noticeable with nearly 1 mm difference in the X-axis.

Nearly 1mm of rounding difference seems quite a lot to me if this was to be a 3D printed piece, for example.

If you want to reproduce it, then * duplicate the rotated mesh "Oricinal Sculpt" * expand the N-Panel * watch the Y-Dimension when hitting Apply Rotation and scale. Object "Original Sculpt" has rotational values and it's dimenstions are [24.5,**28.1**, 7.49]. As soon as you apply the rotation to the mesh the displayed scale of the mesh changes to [24.5, **27.9**, 7.49] In this example it's merely 0.18 mm and it doesn't seem like the mesh actually changed when overlapping them. In the file I was working on at work the scale difference was much more noticeable with nearly 1 mm difference in the X-axis. Nearly 1mm of rounding difference seems quite a lot to me if this was to be a 3D printed piece, for example.

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'

Thanks for clarification.

This is correct behavior though. Probably better explanation is when you align boundboxes:
#97244.png

You can see that since you have rotated mesh itself, dimensions of object are in fact different. These dimensions are calculated from boundbox which is defined by object coordinate system not by best fitting the object.

Thanks for clarification. This is correct behavior though. Probably better explanation is when you align boundboxes: ![#97244.png](https://archive.blender.org/developer/F13001660/T97244.png) You can see that since you have rotated mesh itself, dimensions of object are in fact different. These dimensions are calculated from boundbox which is defined by object coordinate system not by best fitting the object.

Ah, I see. Thank you.
So just for clarification: It is expected behaviour that the dimensions can only be trusted 100% as long as there is no odd rotation applied to the object, correct?

Ah, I see. Thank you. So just for clarification: It is expected behaviour that the dimensions can only be trusted 100% as long as there is no odd rotation applied to the object, correct?

I guess that would depends for what purposes. The value describes box bounding the mesh - if you rotate completely asymetric mesh, the box dimensions will change to fit the mesh. With your example, it's hard to define what rotation would be "odd" as it has no symmetry.

I am not familiar with 3D printing very much, but if you want to array these objects with rectangular pattern and ensure they are not touching, the dimensions provided would provide accurate minimum spacing when you apply rotation. They would also provide accurate necessary printer volume.

I guess that would depends for what purposes. The value describes box bounding the mesh - if you rotate completely asymetric mesh, the box dimensions will change to fit the mesh. With your example, it's hard to define what rotation would be "odd" as it has no symmetry. I am not familiar with 3D printing very much, but if you want to array these objects with rectangular pattern and ensure they are not touching, the dimensions provided would provide accurate minimum spacing when you apply rotation. They would also provide accurate necessary printer volume.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#97244
No description provided.