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: 13
Posts: 13   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 16657 times and has 12 replies Next Thread
rkv104
Newbie




Joined: Jun 22, 2013
Post Count: 19
Status: Offline
Reply to this Post  Reply with Quote 
adding skirting around rooms

is it possible to add a feature to add 'skirting' around room (as shown in images below'. we can develop code using room points as references and using shelf maple with thickness of 2 inches and height of 5 inches as skirt for each side of room (except at door points) for example.....

http://www.mediafire.com/view/hixr54o4r2d0420...20-%20virtual%20visit.jpg

http://www.mediafire.com/view/ixiu05cch205v27...e%20-%20aerial%20view.jpg

puyrabret...if you can give me sample code references for accessing room
points (room selected by user) and how to add furniture (shelf maple) using code to house..then i can try to develop a plugin for same....


thanks,
[Jan 22, 2014, 8:09:07 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rkv104
Newbie




Joined: Jun 22, 2013
Post Count: 19
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

dear puybaret, hansmex, okh,

please reply with your comments on this feature....

puybaret can you write me a sample code ( i tried coding but failed to create a rectangular boxes next to wall inside the room using room points, skipping the room points intersecting with door..) ... to create skirt around room using shelf maple ...

(the approach i used is that first i add a shelf maple box with name 'skirt' in my home and then i access room points of selected room and create copy of this shelf maple box with x'y coordinates same as room points and box width = difference between 2 room points ... i am finding hard excluding the room points that intersect with door and also the length of box created is larger ...)

the below mentioned zip .rar file (winrar) contains the jar file containing source code..

http://www.mediafire.com/download/ancmrsr99to9vfh/Skirt.rar

puybaret or anybody else.... can you change the code to work...the zip also contains the test home file...and plugin file.

the file containing code is "com.eteks.test.AddSkirtAroundRoom.java"

whatever the case please do reply

thanks,
[Jan 23, 2014, 5:23:14 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1545
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

Hi rkv104, very nice skirting board. Beyond that, I am certainly not in a position to comment on the coding or priorities.

I know other 3D software (FloorPlan) used to offer different options for walls (skirting boards etc), as well as multiple variables for doors, windows, stairs etc. While these features were nice enough, they complicated the software and made it much harder to make consistent designs. My preference would still be the simplicity of SH3D combined with customised models - but then, that is just a personal sentiment and I am sure others would find such a function (plugin) very useful.

ok
[Jan 23, 2014, 8:33:27 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rkv104
Newbie




Joined: Jun 22, 2013
Post Count: 19
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

thanks a lot okh for replying so fast ... u r the best :))

I totally agree with you on maintaining 'simplicity' of software.

as someone said 'If Solution is not SIMPLE it is a PROBLEM'...

i just saw skirt in some sample home designs and thought it would be nice to add feature to my existing home models.

i certainly agree that it should be added as plugin and not part of core software.....just that i am struggling to code it as plugin myself..hope when somebody has time he will help me or code the plugin for me..:))

thanks a million anyways...

your thoughts on simplicity indicates your maturity....
[Jan 23, 2014, 8:45:41 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
okh
Advanced Member




Joined: May 12, 2013
Post Count: 1545
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

..indicates your maturity....
smile Alas, us mature people have seen some brilliant projects drown in its own code. Often user driven. One of the reason I am impressed with SH3D is just because of its balance between function and simplicity.

ok
[Jan 23, 2014, 9:38:48 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rkv104
Newbie




Joined: Jun 22, 2013
Post Count: 19
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

How True.. You just caught my thoughts....kudos to puybaret...for being so balanced...oh..i mean mature :))
[Jan 23, 2014, 9:44: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 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

rkv104, I had a quick look at your code.
I think you wrongly place skirts, because HomePieceOfFurniture objects coordinates should indicate the center of the object, not one of its corners.
By the way, may I recall you that the length between two points can be easily computed with Point2D distance method and the angle of a line with Math atan2 method? That would make your plugin much more useful!
If you want to take into account doors placed in walls, you should inspire yourself from Wall3D createWallGeometries that computes this data too.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 23, 2014, 4:23:06 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
rkv104
Newbie




Joined: Jun 22, 2013
Post Count: 19
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

thanks Puybaret, i will try to finish skirt plugin using points as you suggested.

regards,
[Jan 24, 2014, 6:44:42 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
condo
Newbie




Joined: Feb 27, 2014
Post Count: 11
Status: Offline
Reply to this Post  Reply with Quote 
Re: adding skirting around rooms

Small skirts can be simulated by using an appropriate wall texture which is the same height as the room (so it wouldn't tile vertically).
I did that for my project, the effect is stunning, turned out a lot better than expected.
[Mar 2, 2014, 11:32:04 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
clanmills
Member
Member's Avatar

England
Joined: May 16, 2014
Post Count: 33
Status: Offline
Reply to this Post  Reply with Quote 
applause Re: adding skirting around rooms

Condo: Man, that's an amazing solution and does not require I line of code. Well done.

One of the amazing qualities of software is that puzzles can be solved in more than 1 way. If you write code, you tend to always solve puzzles by creating more code. This is an ingeneous solution with no code changes at all. Very Good.
[May 29, 2014, 11:34:05 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 13   Pages: 2   [ 1 2 | Next Page ]
[ 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-2024 eTeks - All rights reserved