I need to calculate area from polygon, which is defined with matrix points:
x[i],y[i]…
I found macro PolygonOperation, but result is wrong. In some cases smaller, in some cases even negative.
My syntax is:
for i=1 to segments
put x[i],y[i]
next i
put x[1],y[1]
call “PolygonOperations”,
parameters opcode=6,
srcPolygon1=2,
result=1,
returned_parameters _area
For any two basic polygons of equivalent territory, the Bolyai–Gerwien hypothesis declares that the first can be cut into polygonal pieces which can be reassembled to shape the subsequent polygon.
Note: For calculating area of close non-self intersection polygon, the vertices must go anti-clock wise, and for negative areas (holes) you must go clock wise.
@Harru Alex,
Can you implement Bolyai–Gerwien hypothesis in GDL ?
Author
Posts
Viewing 3 reply threads
The forum ‘General discussions’ is closed to new topics and replies.