Print at Dec 20, 2025, 7:09:14 AM

Posted by Puybaret at Sep 15, 2014, 3:14:22 PM
Re: Floor and Ceiling
how should i do with ceilings and floors, because the model is not containing floor and ceiling parts.
As long as you don't superimpose rooms at the same level, consider floor parts as Room instances, as well as ceiling parts If you don't want to take into account sloping walls (anyway computing room volume would be much more difficult with sloping walls). If you want to compute rooms on the fly from existing walls, see createRoomAt method in PlanController.RoomDrawingState class to have an idea how rooms are created when the user double clicks in an area surrounded by walls.

Another thing would be the creation of the walls - would there be any possibility of creating them not on the center-line, but on the borderline of the wall?
No

I'd like also when selecting a wall that it shows coloured (while selected) in the 3d view. i tried adding a Selectionlistener to Homecontroller3d, but from there i got no access to the plancontroller, which would allow me to check if it is in creationstate or not, because now its getting coloured already while creating). Any hint for me here?
You'll have to give the PlanController instance to HomeController3D instance at its creation. That shouldn't cause any issue, except that you'll create a dependency between these two classes.

Good luck! smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator