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 5830 times and has 4 replies Next Thread
deverne
Newbie




Joined: Feb 21, 2011
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
projection of room walls on a 2D plan

Hello,

I'm a newbie to Sweet Home 3D and a new Java developer.
I work on house plan with Sweet Home 3D which is a very nice application.

I need to generate 2D plan of the wall from the 3D model. I read at the SH3D API which is very well documented and try for one week to generate a SVG file containing the projection of the wall.

Today, the result is not as good as expected. I encounter the following issues:
- Unable to locate the door and windows on the wall and draw them at the right place.

- Unable to detect precisely which room is behind a given wall. What is the way to do that?

- Look's like sometimes the room boundary points are in clockwise order, and sometime in anticlockwise. So I suspect that some of my rooms are drawn in reverse order...

- Difficult to remove the very little walls generating when a door is encountered in a wall. Like in the following draw:


Before:
Wall 1 Wall 5
-------+ Wall 3 +---------
W2 +-----------+ W4



After:
Wall 1
-----------------------------


The code is available for every one. Where should I sent it? Just ask it ?

The obtained plans are very useful to prepare the future quotations...

Thanks for your help,

Deverne
[Feb 21, 2011, 10:21:26 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
hansmex
Advanced Member
Member's Avatar

Netherlands
Joined: Sep 26, 2009
Post Count: 4002
Status: Offline
Reply to this Post  Reply with Quote 
Re: projection of room walls on a 2D plan

Deverne,

I can't follow what you're trying to explain, and it's not because of my English...
If you share your SH3D file, maybe that would explain some things. You can also share a Java file, maybe someone else understands that (but not me).

1 - The command Plan --> Export to SVG format produces an SVG file with a high quality 2D plan, but I guess that's not what you want? Do you need a cross-section? Can you give an example of what you need? Some image from Google Images maybe?
2 - I tried drawing a few rooms in all kinds of orders: clockwise, counterclockwise, random direction walls. When I inspect the inserted rooms with the AdvancedEdit plug-in, all room points are given in clockwise order, so that doesn't confirm your suspicion, although the plug-in may sort room points in that order.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info
[Feb 21, 2011, 10:42:59 PM] 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: 9426
Status: Offline
Reply to this Post  Reply with Quote 
Re: projection of room walls on a 2D plan

Deverne,
I'm not sure to fully understand what kind of projection you're trying to build, and for which purpose.
A drawing is sometimes much more helpful than any word.
If you're trying to create a parallel projection, using Java 3D parallel projection should help you to get a result much faster (but you won't get an SVG output).
You can upload your code anywhere and add a link to it here.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Feb 22, 2011, 9:01:31 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
deverne
Newbie




Joined: Feb 21, 2011
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: projection of room walls on a 2D plan

Hello Hansmex and Puybaret,

Thanks for your quick reply. I wrote a blog entry at Deverne Blog explaining more precisely what I try to do.

What I want is a SVG file containing: What I want

The code I wrote is:
RoomWalls.zip

The result I obtain is:
Current version

Thanks for your help,

Deverne
[Feb 22, 2011, 9:17:28 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Jerry2012
Newbie




Joined: Oct 12, 2012
Post Count: 14
Status: Offline
Reply to this Post  Reply with Quote 
Re: projection of room walls on a 2D plan

Hi,

are there any news on this topic, this wall projection tool would be perfect to use.
Did someone finish it?

best regards, Jerry
[Dec 27, 2012, 10:15:13 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