Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 5
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 534 times and has 4 replies Next Thread
dkleszyk
Newbie




Joined: Jun 14, 2024
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Contributing/Patch for walls with sloping base

I have been playing around with my local copy of sweethome3d to add support for walls with a sloping base.

I have found this much easier than creating invisible windows to cutout the base of the wall. The window technique can be seen in images 43/44 here https://www.sweethome3d.com/support/forum/vie...,11330_lastpage,yes#61532

This can be useful for dormers and such.

I have a working (I think) patch. Is this a behavior that there would be interest in adding to the base application.

Also, I don't see any FAQ for contributions, so: is there any contribution process?

Lastly, I am willing to work with my code to fit it within whatever guidelines are necessary.
[Jun 15, 2024, 12:02:05 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 1011
Status: Offline
Reply to this Post  Reply with Quote 
Re: Contributing/Patch for walls with sloping base

When I need a dormer I always create a custom full dormer object that is inserted in a gap in the roof. Easy to copy for multiple dormers and I can use it in multiple houses.

A wall, by definition, is usually a load baring part of the house. If the sides of a real dormer have a triangle gap at the bottom they are usually made of wood or another material that is not too heavy. A stone/concrete wall is too heavy for this type of construction. There is nothing to support the 'floating' high end. That we want to use a wall for the sides of a dormer is because it's convenient to draw.
A wall in Sweet Home 3D has specific properties like the ability to create a hole for a window. If your patch can let the wall keep all it's original properties this might be useful for some users but it would be better if you can reproduce this in a plugin that adds a special type of wall.

Did you take into account that a wall sinks into a floor at a level? You can't see that but it is to have full walls on the outside of a house. Otherwise there would be a gap where the floor is. A 250cm wall on a floor of 20cm is actually 270cm. From the top of the floor to the ceiling is still 250cm so you don't notice the added height at the bottom. You can see this when you export such a wall, the resulting object will be 270cm high, not 250cm.
----------------------------------------
Dodecagon.nl
700+ 3D models, manuals, and projects
[Jun 15, 2024, 11:05:47 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9371
Status: Offline
Reply to this Post  Reply with Quote 
Re: Contributing/Patch for walls with sloping base

Thanks for proposing to contribute to Sweet Home 3D, even if... I'm not sure that I would accept your idea to be able to change the elevation of the base of a wall. Sweet Home 3D must remain quite simple and the Wall modification dialog is already quite busy!
Anyway, you can propose your patch in a feature request or elsewhere if you want.

The FAQ has a whole paragraph about contributions, proposing to developers to program plug-ins if they want. Years after years, 48 plug-ins have been proposed by talented programmers, without counting the few ones that I developed myself (marked as "eTeks" developer here).
But plug-ins doesn't allow to program everything and the patch you want to propose must imply modifications in the core program itself. Actually, the few programmers who proposed their help for the core program (for example in this thread and that one) never went very far, so it has not been very motivating for me to support this kind of contribution and plug-ins proved to be a good way to add many features until now.
Still, a few programmers used Sweet Home 3D in projects proposed elsewhere as GitHub.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jun 15, 2024, 12:53:57 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dkleszyk
Newbie




Joined: Jun 14, 2024
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Contributing/Patch for walls with sloping base

Keet,

A wall, by definition, is usually a load baring part of the house. If the sides of a real dormer have a triangle gap at the bottom they are usually made of wood or another material that is not too heavy. A stone/concrete wall is too heavy for this type of construction. There is nothing to support the 'floating' high end. That we want to use a wall for the sides of a dormer is because it's convenient to draw.


I realize that it is nice to have a physical basis for the software model, but invisible windows aren't very "realistic" either. And a wood-framed wall is still a wall, even if it is not as solid as masonry.

A wall in Sweet Home 3D has specific properties like the ability to create a hole for a window. If your patch can let the wall keep all it's original properties this might be useful for some users but it would be better if you can reproduce this in a plugin that adds a special type of wall.

Did you take into account that a wall sinks into a floor at a level? You can't see that but it is to have full walls on the outside of a house. Otherwise there would be a gap where the floor is. A 250cm wall on a floor of 20cm is actually 270cm. From the top of the floor to the ceiling is still 250cm so you don't notice the added height at the bottom. You can see this when you export such a wall, the resulting object will be 270cm high, not 250cm.


The patch does keep all of the original properties of walls. The reason I initially went for a patch over a plugin was to get the already-existing functionality of walls for "free" (such as cutouts for windows).

As to the floor thickness beneath walls. For these new "floating" walls I decided not to generate separate geometry for the floor beneath such a wall. Since rooms also generate floor geometry, I do not believe this will be much of a issue in practice. I did account for this fact in the room generation code (i.e. floating walls do not contribute points to room boundaries).

Puybaret,

Thanks for proposing to contribute to Sweet Home 3D, even if... I'm not sure that I would accept your idea to be able to change the elevation of the base of a wall. Sweet Home 3D must remain quite simple and the Wall modification dialog is already quite busy!
Anyway, you can propose your patch in a feature request or elsewhere if you want.


Yes, I can see how the addition of more properties could make the wall panel a bit much. I theoretically could toggle the visibility for the elevation controls based on the checkbox that indicates whether the wall is floating or not.

The FAQ has a whole paragraph about contributions, proposing to developers to program plug-ins if they want. Years after years, 48 plug-ins have been proposed by talented programmers, without counting the few ones that I developed myself (marked as "eTeks" developer here).
But plug-ins doesn't allow to program everything and the patch you want to propose must imply modifications in the core program itself. Actually, the few programmers who proposed their help for the core program (for example in this thread and that one) never went very far, so it has not been very motivating for me to support this kind of contribution and plug-ins proved to be a good way to add many features until now.
Still, a few programmers used Sweet Home 3D in projects proposed elsewhere as GitHub.


Based on the response here, I think the easiest path forward would be for me to look into writing a plug-in that generates a "floating wall" geometry.

I will still make the code available on my github page so you or anyone else can look over the changes if there is interest.

Thanks all.
[Jun 15, 2024, 6:28:39 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
dkleszyk
Newbie




Joined: Jun 14, 2024
Post Count: 4
Status: Offline
Reply to this Post  Reply with Quote 
Re: Contributing/Patch for walls with sloping base

Two things:

First, I realize that the link in my first post to the dormer images is broken. The correct link is https://www.sweethome3d.com/support/forum/vie...ad,11330_offset,240#61532

Second, I have uploaded my code to github. The patchset can be viewed at https://github.com/dkleszyk/sweethome3d/compare/master...wall-sloping-base
[Jun 15, 2024, 7:26:41 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved