MeshBuilder.CreatePolygon Polygon with holes error. The two holes were not generated correctly。

Adding @Evgeni_Popov who already played a bit with this kind of code and might have an idea :slight_smile:

You have an edge which is shared by the two holes, so you should create a single hole and not two.

If you still want two holes, you should make sure the vertices of this common edge are not exactly the same ones:

But that is a hack, you should definitely create a single hole.

1 Like