I get the problem when trying to create interior of the ClosedPath.
z1 = 0 + 0im; z2 = 3 + 1im; z3 = 2 + 2im; z4 = 1 + 3im;
p = ClosedPath([Segment(z1, z2), Segment(z2, z3), Segment(z3, z4), Segment(z4, z1)])
I get the following error:
ERROR: AssertionError: Curve endpoints do not match for pieces 1 and 2
Why? How to solve the problem?