| View previous topic :: View next topic |
| Author |
Message |
hgnet General User

Joined: 22 Dec 2005 Posts: 21
|
Posted: Sat Oct 27, 2007 6:20 am Post subject: Calculate square occupied by shapes |
|
|
Dear colleagues,
I currently use OO Draw to evaluate real estate. Therefor I cover plans (scans) with shapes (rectangles, triangles, trapezoid) and then set the measurements in relation to reality to calculate manually the square of, e.g., a room.
Does anyone know a function, add-on etc. to calculate the square covered by some shape (maybe even of free-hand drawings -- rooms are not always rectangular . . .) automatically?
Thanks,
Herbert |
|
| Back to top |
|
 |
acknak Moderator


Joined: 13 Aug 2004 Posts: 4295 Location: ~ 40°N,75°W
|
Posted: Sat Oct 27, 2007 10:16 am Post subject: |
|
|
There is no such function in OOo. You might ask over on the Macros & API forum, although I think for anything other than the simplest case (a sum of rectangular areas), this is going to require a clever algorithm.
PS: Actually, the construction of the algorithm must be very clever, but the actual code for the calculation itself is very simple! See, e.g. this thread: http://valis.cs.uiuc.edu/~sariel/research/CG/compgeom/msg00824.html, and follow-up answers. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|