Print at Dec 17, 2025, 8:53:45 AM

Posted by Keet at Dec 30, 2023, 1:56:24 PM
Deformation problem - Bug or by design?
I'm creating a lock&handles for a toilet door. The lock has a turn handle that can be turned to change open(white) to closed(red). Nothing special and there's no problem with this deformation in itself.

I want the complete model to be prepared for adding to any door that has a hinge_1 for opening.
To achieve this I used hinge_2 for the lock so the door itself can keep its hinge_1 for opening.
I added the prefix "sweethome3d_opening_on_hinge_1_" to the non-turning parts (i.e. the parts that don't turn on hinge_2 but should open when the door is opened on hinge_1).

Notice that I added "sweethome3d_opening_on_hinge_1_" for some parts while there is no "sweethome3d_hinge_1_" defined. This is no problem for importing the model.

However, to make the model completely prepared "sweethome3d_hinge_2_" must be expanded to "sweethome3d_hinge_2_and_sweethome3d_opening_on_hinge_1_". After adding "_and_sweethome3d_opening_on_hinge_1_" you can't import the model anymore. The furniture importer waits indefinitely on 'something' and doesn't import the model.

Combine the model without the "_and_" part with a door, export, add the "_and_" part, and import. Now the door functions completely as it should: the door opens with the complete lock and handles and I can turn the lock from white to red.

Adding the "_and_..." parts should not have been a problem to import the model since there is no requirement that the sourcing hinge is present in the model: several parts are defined to open on hinge_1 while there is no hinge_1. It is only when used as an extension on another hinge ("_and_") that import no longer functions. The resulting problem is that I can not use the model as a hardware piece that can be added to any door without the user having to add the missing string on every door.

The model prototype. The first g group in the object file has a preceding comment line with what it should be.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects