| Description |
|---|
| Consolidates Mesh transformations by resetting each selected mesh's origin to the document (world) origin, without moving the geometry. Ideal after using an alignment tool (e.g. Mesh Alignment), to bake the alignment into the vertex coordinates instead of relying on a Placement offset or a parent container. Macro version: 0.2 Last modified: 2026-06-09 FreeCAD version: 1.1.1 (<1.0 should work but not tested) Download: ToolBar icon Author: de-seingalt |
| Author |
| de-seingalt |
| Download |
| ToolBar icon |
| Links |
| GitHub repository Macros recipes How to install macros |
| Macro Version |
| 0.2 |
| Date last modified |
| 2026-06-09 |
| FreeCAD Version(s) |
| 1.1.1 (<1.0 should work but not tested) |
| Default shortcut |
| None |
| See also |
| None |
Macro MeshResetOrigin is a macro that consolidates Mesh transformations by resetting each selected mesh's origin to the document (world) origin, without moving the geometry. It is meant to be used after an alignment operation (e.g. Edit → Align To… on Mesh objects), to bake the resulting alignment into the mesh coordinates rather than keeping it as a Placement offset or relying on a parent container.
Each selected Mesh::Feature is processed as follows:
The mesh does not move on screen; only its origin now coincides with the world origin, since the transform lives in the mesh geometry instead of in the Placement property. The whole operation is wrapped in a single undo transaction, so one Undo reverts everything.
Objects that are not meshes, and meshes that live inside a parent container (e.g. App::Part), are skipped with a warning printed to the Report View. Meshes already at the origin are left untouched.
Mesh workbench (external/optional macro).
If a mesh is inside an App::Part, drag it out of the container first, then run the macro.
A typical workflow is aligning a 3D scan mesh to the world axes to make it easier to work with:
A step-by-step illustrated walkthrough is available on the GitHub repository.
Licensed under LGPL v2.
Temporary code for external macro link. Do not use this code. This code is used exclusively by Addon Manager. Link for optional manual installation: Macro
# This code is copied instead of the original macro code
# to guide the user to the online download page.
# Use it if the code of the macro is larger than 64 KB and cannot be included in the wiki
# or if the RAW code URL is somewhere else in the wiki.
from PySide import QtGui, QtCore
diag = QtGui.QMessageBox(QtGui.QMessageBox.Information,
"Information",
"This macro must be downloaded from this link\n"
"\n"
"https://raw.githubusercontent.com/de-seingalt/MeshResetOrigin/main/MeshResetOrigin.FCMacro" + "\n"
"\n"
"Quit this window to access the download page")
diag.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint)
diag.setWindowModality(QtCore.Qt.ApplicationModal)
diag.exec_()
import webbrowser
webbrowser.open("https://raw.githubusercontent.com/de-seingalt/MeshResetOrigin/main/MeshResetOrigin.FCMacro")