FreeCAD / FreeCAD/FreeCAD

Core: The bounding box takes global coordinates into account. This is incorrect.

Open
#28,098 3 comments 3 reactions 0 assignees View on GitHub
Mod: Part Type: Feature
Dominant language
C++
Stars
33.6k
Forks
6k
Avg merge
3d 17h
Merged PRs (30d)
196

Description

### Problem description

In the image, you see a table. One is oriented along the primary axes.
The second is rotated around the Z-axis.

![Image](https://github.com/user-attachments/assets/61345e91-81a2-4476-a5b8-e22806228713)

In this case, you either need to introduce a separate bounding box parameter for local coordinates (in addition to the current one).
Or make the bounding box take rotation into account.

**This is very important when using expressions!**

### Workbench affected?

Core (App, Gui,...)

### Steps to reproduce

File

[Boundin_box.FCStd_remove_zip_and_this.zip](https://github.com/user-attachments/files/25751285/Boundin_box.FCStd_remove_zip_and_this.zip)

Blender example

![Image](https://github.com/user-attachments/assets/c0ca9042-c162-4fdc-85c8-936be67f8820)

![Image](https://github.com/user-attachments/assets/b311769c-b5f1-4870-83a5-c7c245f8ba9c)

### Expected behavior

---

### Actual behavior

---

### Development version About Info (in Safe Mode)

```shell
OS: Manjaro Linux (KDE/plasmax11/xcb)
Architecture: x86_64
Version: 1.2.0dev.20260303 (Git shallow) AppImage
Build date: 2026/03/03 22:57:35
Build type: Release
Branch: grafted,grafted
Hash: 637463ac354f093e14dacfc5059eb70c2b1216fd
Python 3.11.14, Qt 6.8.3, Coin 4.0.3, Vtk 9.3.1, boost 1_86, Eigen3 3.4.0, PySide 6.8.3
shiboken 6.8.3, xerces-c 3.3.0, IfcOpenShell 0.8.2, OCC 7.8.1
Locale: Russian/Russia (ru_RU)
Navigation Style/Orbit Style/Rotation Mode: Revit/Turntable/Drag at cursor
Stylesheet/Theme/QtStyle: unset/FreeCAD Classic/
Logical DPI/Physical DPI/Pixel Ratio: 96/92.6073/1
```

### Last known good version (optional)

```shell
---
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.