Print at Dec 18, 2025, 7:47:57 PM

Posted by deverne at Feb 21, 2011, 10:21:26 PM
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