Print at Dec 19, 2025, 7:47:50 AM

Posted by Keet at Apr 25, 2025, 8:52:26 AM
Re: Generate roof plugin
@Keet
1.
By-the-way, what is the difference between normal windows and the roof windows?
You have to look at properties file:
doorOrWindow#1=false
roof_window#1=true
roof_window_deep#1=11.0
First indicate that's NOT a window;
Second is used to identify it as roof_window;
Three it is a value needed to correctly calculate the "window" position.
I did notice it was NOT marked as Door or window. But you are right, I should have examined the properties files.
If I wanted to create a roof window, how do I determine what the roof_window_deep value should be? Or is it always 11.0?

2. You didn't look at the posted file (RoofChallangeD ). It is different even it have the same name as the one from last year.
I took a closer look. A few remarks. First of all: great that you could generate this with the roof generator! That is a huge achievement. The borders are double. There are two sets of faces for every border where you only need one. Probably a double line somewhere in your code. And there are (double) borders between connecting roof parts that you never see. In itself not a problem but the object will be more efficient if these are left out.

3. Shelves/sides were simple but the door was a struggle with keeping the handle and hinges the same size when the size of the door itself changes.
I've encountered the same problem. In the real life the doors or windows keep their sizes, so I've made the model at same dimensions and I've set the property
doorOrWindowWidthDepthDeformable#1=false
Usualy I do the same for all doors and windows in all the libraries.
I know the doorOrWindowWidthDepthDeformable property but that was not the problem. My code accepts parameters for the dimensions of a door. I mathematically recalculate the vertice coordinates of a template model to get a door in the given dimensions. And then the hinges and handle must be added but those must remain the same size AND at the correct position on the model. It's not about deforming when inserted in a wall, but generating an object partly re-dimensioned and partially with static dimensions. This particular door is not to add in a wall but for a cabinet.
----------------------------------------
Dodecagon.nl
1300+ 3D models, manuals, and projects