Ask Your Question

Draw, indicate area (and perimeter) of a closed polygon ? [closed]

asked 2014-04-06 20:00:07 +0200

twinsun gravatar image

updated 2020-08-07 03:00:18 +0200

Alex Kemp gravatar image

Area, perimeter, as part of description of a closed polygon ? It could also be useful as a tool to calculate an surface area on a bitmap layer.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2016-03-03 17:35:27.958410

2 Answers

Sort by » oldest newest most voted

answered 2014-09-10 00:34:28 +0200

JohannF gravatar image

updated 2014-09-10 10:16:14 +0200

Hello, some months ago I did some tests with a drawing, containing several shapes (closed polygons as a polypolygonshape, I think) So, on mouseclick the question was , which shape I had selected. The macro worked. You have first to check the mouse coordinates and then run through all shapes, if the shape "contains" the mouse-coordinates, there exist C++ code in the internet, i converted to LO-basic ) If your question is still valid, I could try to "reanimate" the macro. And, i suppose, this is only part of the real question ?!

on administrators request I try to give more details. first, I have no exact solution for the question. But what did I do and why. I have got a drawing with several shapes (polgonshapes with LINES as edges). I wanted to move a shape close to another shape without any gap. (sewing together and make a group) So first you have to select two shapes. You have to mouseclick th shapes and in the macro, you have to identify the shapes , where you clicked inside. Then you have access to the objebt "shape" and can move it, compute perimeters, chage colors/bitmaps or anything else. ( I found no other solution within LO (or OO) to identifiy a shape by mouseclick and to calculate anything you want do )

I see also, that it is a pity, that within LO it seems, that this "simple" topic: "return to me the name/address of a selected shape" has to be coded by the macro-developper. It should be a call to a subroutine

edit flag offensive delete link more


@JohannF, as per my other comment, feel free to provide greater detail about how you managed this (or a link to the macro). Thanks.

oweng gravatar imageoweng ( 2014-09-10 05:26:00 +0200 )edit

i try to extend my answer

JohannF gravatar imageJohannF ( 2014-09-10 10:00:35 +0200 )edit

answered 2014-04-08 10:10:11 +0200

ROSt52 gravatar image

@twinsun - I understand your contribution as an idea for a new feature. Thus I would like to point to this page
Here you can file an enhancement request.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-04-06 20:00:07 +0200

Seen: 1,120 times

Last updated: Sep 10 '14