Print at Dec 16, 2025, 1:36:58 PM

Posted by Daniels118 at Feb 18, 2022, 11:33:30 AM
Re: Generate roof plugin
@dorin
this version is the stable one which don't allow negative value for weight
Sorry, I didn't realize negative weights wasn't available in this version. Hope you can get it work, otherwise just ask.
for 3D I've see this in src
You're right, I didn't see yet the code when I wrote about vertical positioning of the points. Looking at the video published on the research project page referenced on github I've learned the library is born specifically to build roofs, so now I'm expecting it is 3D-ready.

@ndorigatti
Thank you for your effort, but in the end it seems the vertical position comes out of the box (see above).
Anyway, I like exploring other solutions, so let me expose some thoughts. The method you proposed is easy to implement for simple shaped roofs, but it would require some kind of guessing for complex shapes, because not all inside points should be elevated by the same amount. If you look at the 2D image in my previous post, you can easily end up that the right side of the roof won't be as tall as the left side. This doesn't mean the method is wrong, it just means it requires some degree of intelligence, which require some effort to implements. Maybe we could come to a complete solution in 10 minutes, maybe not. Since the library developers seem to have already solved this problem, you could look at the code to understand how they did, if it really is of your interest.

Daniele