How to calculate visual center of polygon? lazarus / 39-Graphics ---------------------------------------------------------------------- loaded ยท 2023-05-25 05:47 Hi All, There is a sample application sent by @jamie in the relevant https://f orum.lazarus.freepascal.org/index.php/topic,63430.msg480438.html#msg48 0438link. The application calculates the visual and real centroids of the polygons. It gives correct results in screen coordinates. But it gives incorrect results in real world coordinates. What I need is the visual center point. When I want to write label information to the fields, visual confusion occurs in polygons whose center of gravity is outside the fiel In practice, when we convert the real world coordinates to screen coordinates and calculate, it takes a very long time to calculate about 100k polygons. I asked on @jamie but I guess he's too busy, he hasn't replied yet. I also want to ask you; I would be very pleased if the relevant experts would examine the example and explain the working logic when they are available. Respects.