|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Get the list of Piece of Furniture that is displayed in the panel |
|
| Print at Dec 20, 2025, 9:15:24 PM | View all posts in this thread on one page |
| Posted by Mitsaki at Jun 17, 2012, 4:25:16 PM |
|
Get the list of Piece of Furniture that is displayed in the panel Hello community, I think I have a rather easy question. I have this code somewhere in my program for (HomePieceOfFurniture piece : home.getFurniture()) {which I used in order to get the furniture that is visible in my room. The thing is that if some pieces are displayed twice, "i" doesn't count them, which is logical. How can I get the list of the furniture that are displayed in the panel which is placed in the bottom left corner in SH3D? Thanks in advance guys:)) Mitsaki |
| Posted by Puybaret at Jun 17, 2012, 5:31:30 PM |
|
Re: Get the list of Piece of Furniture that is displayed in the panel Each piece displayed in the home has a matching HomePieceOfFurniture instance even if it uses more than once a model in the catalog. Thus, your loop looks ok. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Mitsaki at Jun 18, 2012, 7:59:27 PM |
|
Re: Get the list of Piece of Furniture that is displayed in the panel Yeap, you are right:) I was under panic attack:) |
|
|
Current timezone is GMT Dec 20, 2025, 9:15:24 PM |