
How can i calculate area of that kind of polygon. I know the coordinates of all vertices. I apply Shoelace formula, but it gives me wrong value then expected. Autocad application calculates true value. How can it calculates. What is the correct approach for calculating area of this kind of polygons?
Thanks.
EDIT
Coordinates are :
- PointD p1 = new PointD(-50, 0);
- PointD p2 = new PointD(50, 0);
- PointD p3 = new PointD(50, 8);
- PointD p4 = new PointD(15, 8);
- PointD p5 = new PointD(3, 20);
- PointD p6 = new PointD(3, 76);
- PointD p7 = new PointD(15, 88);
- PointD p8 = new PointD(50, 88);
- PointD p9 = new PointD(50, 96);
- PointD p10 = new PointD(-50, 96);
- PointD p11 = new PointD(-50, 88);
- PointD p12 = new PointD(-15, 88);
- PointD p13 = new PointD(-3, 76);
- PointD p14 = new PointD(-3, 20);
- PointD p15 = new PointD(-15, 8);
- PointD p16 = new PointD(-50, 8);