|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Cut Objects for perspective view |
|
| Print at Dec 18, 2025, 10:32:09 AM | View all posts in this thread on one page |
| 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! |
| Posted by Puybaret at Nov 4, 2009, 4:56:38 PM |
|
Re: Cut Objects for perspective view Very nice. Feel free to submit your code as an attachment of a feature request. There's no direct method to get the wall which windows and doors are attached to. Don't be misled by the isBoundToWall method: it tells if a door or window was dropped on a wall last time it was moved, and is used just to adjust resizing behavior of doors and windows. Holes in walls are computed in the createWallGeometries method of Wall3D class, but you probably saw that already. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by alied at Dec 23, 2009, 2:43:31 PM |
|
Re: Cut Objects for perspective view Hi, I've been doing some work, and I get to the problem of knowing which window is attached to a wall. Maybe this can help: |
| Posted by Kentusky at Aug 29, 2013, 4:06:22 PM |
Re: Cut Objects for perspective viewThat's exactly what I'm trying to achieve. Any news about that? ![]() |
| Posted by ZsoltET at Dec 11, 2014, 6:56:26 PM |
|
Re: Cut Objects for perspective view Hi, I have a question about the section cut. There is a way to cut out not only walls, but to cut my object 2(windows, doors). I found your post with invisible box, but that only cuts the walls, and that can be done only with the wall height. Sry for my english:) Maybe this one was done I just can't figured it out. |
|
|
Current timezone is GMT Dec 18, 2025, 10:32:09 AM |