Dimensions mismatch
- Dominant language
- C++
- Stars
- 3.3k
- Forks
- 353
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 1
Description
Hi,
I'm using:
version: 2.80 (sub 41), branch: master, commit date: 2019-01-11 23:51, hash: ce3475f7479
build date: 11/01/2019, 17:03
platform: Windows 10
armory from yesterday
There's a problem with the dimension and the "bounding box" in armory. Here's my scene in blender:

On the left, there's a polygon with its origin close to (0,0,0). The right polygon has its origin at its center. Both have no scale applied.
When viewing them with debug in Krom, the output look like this (for the left polygon):

And like this for the right one:

Note that for the first polygon the x-dimension is 6.56 and for the second it's 3.3 (y dimensions differ as well)
Here's the .blend to reproduce the problem:
[DimensionBug.zip](https://github.com/armory3d/armory/files/3113949/DimensionBug.zip)
With this bug, no reliable calculation based on the dimension of the object can be performed.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by opening the attached DimensionBug.zip scene in Blender and reproducing the two polygons in Krom with debug output. Compare their reported dimensions and bounding boxes when their origins differ; done means equivalent geometry produces consistent, reliable dimension and bounding-box calculations regardless of origin placement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- blender
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100