@Daaan,
Thank you for your detailed reply. I got it.
Both methods (DPoint,Point) constructing polygon works well.
# polygon1 = Polygon([DPoint(length, -w4), DPoint(length, w4), DPoint(length + w4, w4), DPoint(length + w4, -w4)]) polygon1…
@Daaan ,@Matthias,
Thank you for your answer. Both two methods can generate sized shape for a polygon.
As what Matthias said, the following way will apppear "ears", it acturally come up with some sharp points.
for i in range(len(x)):…