love struck Thoughts about roof-plugin

This topic has been viewed 83344 times and has 34 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
User avatar
youseeus
Posts: 11
Joined: Fri Aug 31, 2012 10:50 am

Re: Thoughts about roof-plugin

Post by youseeus »

I would suggest that you request to draw this line in a clone of the current home that will display only walls. You could display this clone in your dialog box with your own plan component / controller, using subclasses of PlanComponent and PlanController classes (VideoPanel class uses for example a subclass of PlanComponent).

Thanks for the suggestion :) I think this approach could be used in a future version. One of my main goals is, to store the roof-model (the gabels and the properties, so you can recalculate the roof after adding some jutty) so it would 'survive' to be opened and saved again by a blank SH3D (no plugins). i didn't get familiar with the saving process so i'll follow the first approach for my MVP.
I currently created custom components for my roof, and i do have a dormer that "cuts" half of the roof to create space for a big door window.
This dormer has a gabel. So just add the gabel.
To join Roofs is one of my main goals... so 'checked' [:D]
I would also point out that usually (at least here where i live) roofs extends over the walls and covers also the outside!
i called this feature overhang. It will be part of the MVP
User avatar
youseeus
Posts: 11
Joined: Fri Aug 31, 2012 10:50 am

Re: Thoughts about roof-plugin

Post by youseeus »

If someone want to get involved... i created a private repro at bitbucket, but i can add everyone who is interested. If the first version is finished i'll open that repro.
User avatar
youseeus
Posts: 11
Joined: Fri Aug 31, 2012 10:50 am

Re: Thoughts about roof-plugin

Post by youseeus »

i confused gable with ridge in all of my posts [#-o]
clentl
Posts: 1
Joined: Tue Mar 05, 2019 2:59 pm

Re: Thoughts about roof-plugin

Post by clentl »

This is great idea . I used to design pools using pool studio and it had great auto roof maker. I'm really confused by this program doesn't have it. I think even the sims 1 had an auto roof...I hope you get this finished!
User avatar
Gildaniel
Posts: 135
Joined: Fri Aug 11, 2017 10:57 am
Country: Russia

Re: Thoughts about roof-plugin

Post by Gildaniel »

Hello!

Some ideas about roofing:

1. Draw roof on plane view point by point by polyline, then feature create projection of it on needed angle with specified roof tickness


2. I'm not sure if this logic easy to implement to SH or not, but roof could be created with frontal sloping walls.

Big bonus of this - standard windows could be used as roof window.

Now if i need roof with windows - I create wall (adjust ens heights if needed), put window there, copy as a furniture, paste and adjust needed angle. But I need to do it many times, because very hard to find good heights and lenght after angled.

So, use case: draw wall, adjust up and lower heights and set needed andgle. After I can adjust heights and dimensions in parameters

2. Is it possible to make "adjustable box", tuning it like posing of mannequin?
JustRosy
Posts: 1
Joined: Wed Sep 16, 2020 6:36 pm

Re: Thoughts about roof-plugin

Post by JustRosy »

If the interior walls are 4" thick and the exterior walls are 6" thick (this is standard in Architectural Drafting), then couldn't the algorithm just automatically snap the edges of a roof to the endpoints of the 6" thick exterior walls, and be set to draw center-lines either vertically or horizontally, so they connect with the longest center line perpendicularly or at an angle selected by the user when right clicking on them?
User avatar
Xlance
Posts: 122
Joined: Mon Mar 23, 2020 8:36 am

Re: Thoughts about roof-plugin

Post by Xlance »

Hello All
If someone has programming experience and still interested in creating a plugin for Roofs, I have 40 sample images + 40 different palettes to import into "Eclipse" to create Java dialogues with
details / dimensions of each Roof Type.
Cheers

01_A-Frame-Roof-Dim.png
02_Bonnet-Roof-Dim.png
03_Butterfly-Roof-Dim.png
04_Gable-and-Valley-Roof-Dim.png
05_Flat-Roof-Dim.png
06_Gable-Roof-with-Dormer-Window-Dim.png
07_Gambrel-Roof-Dim.png
08_Hip-and-Valley-Roof-Dim.png
09_Hip-Roof-Dim.png
10_Pyramid-Mansard-Roof-Dim.png
11_Mansard-Roof-that-Flares-Out-Dim.png
12_Mansard-Roof-Design-Dim.png
13_Pyramid-Hip-Roof-Dim.png
14_Saltbox-Roof-Dim.png
15_Shed-Roof-or-Sloped-Roof-Dim.png
16_Box-Gable-Roof-Dim.png
17_Clerestory-Roof-Dim.png
18_Combination-Roof-Dim.png
19_Cross-Gabled-Roof-Dim.png
20_Cross-Hipped-Roof-Dim.png
21_Curved-Roof-Dim.png
22_Dome-Roof-Dim.png
23_Dormer-Roof-Dim.png
24_Dutch-Gable-Roof-Dim.png
25_Front-Gable-Roof-Dim.png
26_Gable-Roof-with-Shed-Roof-Addition-Dim.png
27_Half-Hipped-Roof-Dim.png
28_Hexagonal-Gazebo-Dim.png
29_Jerkinhead-Gazebo-Dim.png
30_Mansard-Roof-Dim.png
31_M-Shaped-Roof-Dim.png
32_Open-Gable-Roof-Dim.png
33_Parapet-Roof-Dim.png
34_Shed-Roof-or-Skillion-Dim.png
35_Simple-Hip-Roof-Dim.png
36_SkillionRoof-Dim.png
37_Double-Hipped-Roof-Dim.png
38_Well-Hipped-Roof-Dim.png
39_Lean-to-Roof-Dim.png
40_Custom-Roof-Dim.png

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
User avatar
dorin
Posts: 824
Joined: Thu Apr 24, 2014 9:14 am
Country: Vatra Dornei, Suceava, Romania

Re: Thoughts about roof-plugin

Post by dorin »

If someone has programming experience

I don't have BUT
still interested in creating a plugin for Roofs
I am.
I have 40 sample images + 40 different palettes to import into "Eclipse"

BUT where is the png and sources for Eclipse ???
Make a zip and put it somewhere to be downloaded.
Don't expect too much from me but who knows??
BTW
Why don't try to give us some codes?
I usually stole it but now I accept it for free.
PS
I'll by You a beer when I meet You.
A computer program does what you tell it to do, not what you want it to do. Murphy's Law
When all else fails, read the instructions. Murphy's Law
If you don't like "AS IS", DIY. Dorin's law
User avatar
youseeus
Posts: 11
Joined: Fri Aug 31, 2012 10:50 am

Re: Thoughts about roof-plugin

Post by youseeus »

I didn't do much since my last post. (except i built a house 😅) I'm still interested in this plug-in. But my priorities just shifted a bit :) i invested some time on understanding the code. I'm a professional java developer, but at some points i just didn't understand the data structure and -flow.
User avatar
Xlance
Posts: 122
Joined: Mon Mar 23, 2020 8:36 am

Re: Thoughts about roof-plugin

Post by Xlance »

@youseeus

Source code:
https://sourceforge.net/p/sweethome3d/f ... 1007/#b78b

It's a work in Progress, any improvements / suggestions or modifications are welcomed!

Windows 64bit | Intel i7 | 8GB Ram | SH3D 7.5 + Plugins
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest