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: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2194 times and has 2 replies Next Thread
Bubblobill
Member



Australia
Joined: May 21, 2017
Post Count: 77
Status: Offline
Reply to this Post  Reply with Quote 
How is the 3d wall object (baserail specifically) constructed?

I am exploring possible enhancements to the wall object, specifically the addition of a profile path to the baseboard with the intention of duplicating its functionality as a cornice.

Straight walls are no problem as we are just bulding boxes and the functionality of a cornice isn't really required as I can just add them as furniture and stretch to fit.

Curved walls are where the fun is.

As baseboards start out life as a box I can see two ways that they would be constructed; 1) Calculate the curve and extrude vertically, or 2) Take the vertical profile and extrude along the curve.

1 would not adapt easily to a variable profile but 2 would be doable.

I'm trying to make sense of the wall3D class and from having a look it seems that the three visible points of a baseboard are propagated along the curve. This implies that it might be possible to increase the number of visible points to produce a profile that is not square.

Am I reading it right?

Jay
[Sep 1, 2019, 8:22: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: 7222
Status: Offline
Reply to this Post  Reply with Quote 
Re: How is the 3d wall object (baserail specifically) constructed?

If you look at Wall3D class, you'll see that the method createWallGeometries is used to create the main parts of a wall and also to create baseboards as if they were some small walls. Maybe you could inspire yourself of the same system for a cornice, except that you will have to manage a profile in createVerticalPartGeometry method instead of a simple vertical plan which makes it more difficult.
Round walls are actually a serial of small vertical parts and you should create a getWallCornicePoints that will return the global shape of the cornice along the wall like getWallBaseboardPoints does.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Sep 1, 2019, 3:29:09 PM] Show Printable Version of Post    View Member Profile    Send Private Message    Hidden to Guest [Link] Report threatening or abusive post: please login first  Go to top 
Bubblobill
Member



Australia
Joined: May 21, 2017
Post Count: 77
Status: Offline
Reply to this Post  Reply with Quote 
Re: How is the 3d wall object (baserail specifically) constructed?

Thanks. Shall see how I go.
[Sep 2, 2019, 8:10:20 AM] 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 2006-2020 eTeks - All rights reserved