Joined: Jun 22, 2013
Post Count: 19
Status:
Offline
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.....
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....
Joined: Jun 22, 2013
Post Count: 19
Status:
Offline
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..
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
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.
Joined: Jun 22, 2013
Post Count: 19
Status:
Offline
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....
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: adding skirting around rooms
..indicates your maturity....
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.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
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 Point2Ddistance method and the angle of a line with Mathatan2 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 Wall3DcreateWallGeometries that computes this data too.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Feb 27, 2014
Post Count: 11
Status:
Offline
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.
England
Joined: May 16, 2014
Post Count: 33
Status:
Offline
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.