Print at Dec 27, 2025, 9:16:16 AM

Posted by Keet at Mar 21, 2023, 12:47:44 PM
Change the bounding box for an object
Is there a way to change the bounding box for an object without changing the size of the object itself?

I have 2 objects, virtually the same but one has small protrusions on 2 sides. This makes the bounding boxes of the two objects different. Stacking the smaller on top of the larger means I have to align top-left and then move the smaller one a little to fit on top of the larger one where it correctly aligns with the base part the larger object. Of course I know the numbers so this is easy but if I want to share those models it's difficult for other users.
There are several tricks to accomplish the correct alignment but they are all a little awkward for a user that doesn't know the internal numbers of the objects. I want to offer the simple align top-left for these models.

As I see it this can be accomplished if I can set a larger bounding box for the smaller object so the normal alignment tools can be used. This means setting a different top, left, bottom, and right line around the actual object without changing the size of the object itself. In a way it's like setting a cutout shape: define a different square without changing the size of the object. The object just gets a little extra space around to match the larger object. This also has the advantage that resizing both objects keeps the alignment as it should.

In the Home.xml file and in the PluginFurnitureCatalog.properties file you can set additional properties that are not available through the user interface (wall-distance, sash, etc). Are there properties available to set such a bounding box? I searched the API docs but I can't find if there is such a thing.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects