Print at Dec 18, 2025, 3:00:34 PM

Posted by Keet at Mar 16, 2024, 6:48:44 AM
Re: Custom 3D Model being imported without texture
The rail doesn't work because you effectively have no rail. This doesn't work because it doesn't create a rail:
sweethome3d_opening_on_hinge_1_and_sweethome3d_rail_1_

You get a rail when you start a g group with "g sweethome3d_rail_1_". To that you can add openings and another hinge or rail. And to that added hinge or rail you can add openings and yet another hinge or rail. You see the chain that's forming?

You should have only 4 'types' of possible groups:
g just_a_static_object
g a_hinge_or_rail
g opening_on_a_hinge_or_rail
g another_hinge_or_rail_AND_opening_on_a_previous_hinge_or_rail.

Notice that specifically the last group can only exist once in your object. Everything that is opening on another_hinge_or_rail will move along the previous_hinge_or_rail too because another_hinge_or_rail itself is opening on the previous_hinge_or_rail.


g a_static_object
g rail_1_
g opening_on_rail_1_
g opening_on_rail_1_
....
g hinge_1_and_opening_on_rail_1_
g opening_on_hinge_1_
g opening_on_hinge_1_
....
g hinge_2_and_opening_on_hinge_1_
g opening_on_hinge_2_
g opening_on_hinge_2_
....

The chain that you must preserve is like this:

g rail_1_
g hinge_1_ and_opening_on_rail_1_
g hinge_2_ and_opening_on_hinge_1_
g rail_2_ and_opening_on_hinge_2_

Take notice of how and where the same colors are listed.
All other parts can only have an opening_on_ for a single rail or hinge.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects