Polygon area Home › Forums › General discussions › Polygon area Tagged: polygon area This topic contains 3 replies, has 4 voices, and was last updated by Nader Belal 2 months, 1 week ago. Author Posts December 19, 2019 at 11:20 #18494 Jože MarinkoParticipant 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,y call “PolygonOperations”, parameters opcode=6, srcPolygon1=2, result=1, returned_parameters _area December 19, 2019 at 13:27 #18496 Péter BaksaParticipant Hi, Does it help if your polygon is regularized? Counterclockwise order of points, no self-intersection, no points on other edges. Currently we don’t have an universal solution for area calculation in the ARCHICAD Library. You can write your own code using the Shoelace formula. Péter Baksa Library Platform, Software Engineer GRAPHISOFT SE February 27, 2020 at 07:37 #18591 Harry AlexBlocked 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. May 29, 2020 at 12:35 #18836 Nader BelalParticipant @Harry Alex, The Shoelace formula is easier to implement. @Jože Marinko 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 You must be logged in to reply to this topic.