Print at Dec 19, 2025, 12:07:37 AM

Posted by gromit at Nov 2, 2009, 9:10:01 PM
Cut Objects for perspective view
Hello,

first of all congratulations for this project, is a very good development.
I have been working on a modification of the code to allow to cut objects, like walls, doors or windows, to prevent them hidding rooms on obliques perspectives. So, not just changing githe eight of the objects, but actually cutting them at a certain height, including the glass of the window. This is now working on my computer and looks nice. This way is posible to lower certain walls and objects to a half to make a better view.



I use ModelClip class of java3d and basically I have added a new property in the HomePieceOfFurniture class, with all the support to propagate the changes to controllers and view.
Now if you modify the new property 'cut height' of any object, it gets cut at that eight.

I had to change several classes in the model and the views. If you are interested I could send the changes in a controlled way, is not that much.
And I have some questions, for example how to get the windows and doors attached to a wall, if there is a direct method. I have not seen it.

Regards!