|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: how to get area of room » » » » Post: Re: how to get area of room |
Print at Dec 20, 2025, 12:18:04 AM |
| Posted by Puybaret at Jun 23, 2011, 2:47:17 PM |
|
Re: how to get area of room No need to create a new subject. If you're a student and want to become a serious developer, you must learn how to use an API from its documentation or its source code when available. The Javadoc of the Room class says its constructor takes an array of coordinates as parameter, it also proposes methods to modify the coordinates of a room. If you don't know how to interpret the documentation of a method or a constructor, you can take profit of working with an open source program and search in its source code how it's used (for example at line 2033 of the PlanController class). If you don't know how to search in the code, learn Eclipse search menu items, it will save you hours of work. Finally, from the source code you proposed, I repeat: "since when a line has an area?". In case you didn't get it, this was a clue to help you fix your program. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
|
|
Current timezone is GMT Dec 20, 2025, 12:18:04 AM |