You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when trying to execute an offset, you need to scale the value according to the scale of the coordinates (the original, before calling scale_to_clipper())
Passing -7.0 to PyclipperOffset as the docs suggest doesn't affect the path at all. I have to use a rather large number instead:
solution = pco.Execute(1500.0 ** 2)
Not sure whether this is a bug or a detail that may have escaped me, but I couldn't find anything about scaling the offset on the docs. It seems the offset depends on the path size too? For larger paths (300 meters in scale) I had to use 5000 ** 3 before seeing any change.
The text was updated successfully, but these errors were encountered:
I found out that the offset's value has to be multiplied by the scale's default parameter (2**31). And since I was trying to get sizes in mm with a coordinate system in meters, I also have to multiply it by 0.001 first. Feel free to close this if it's not a bug.
I see this same issue. If I do not use scale_to_clipper and scale_from_clipper, then the offset amount is applied as it should be to the polygon. If I scale the polygon, I have to scale the offset.
It seems that when trying to execute an offset, you need to scale the value according to the scale of the coordinates (the original, before calling
scale_to_clipper()
)I have a set of coordinates that look like this:
Passing -7.0 to PyclipperOffset as the docs suggest doesn't affect the path at all. I have to use a rather large number instead:
solution = pco.Execute(1500.0 ** 2)
Not sure whether this is a bug or a detail that may have escaped me, but I couldn't find anything about scaling the offset on the docs. It seems the offset depends on the path size too? For larger paths (300 meters in scale) I had to use
5000 ** 3
before seeing any change.The text was updated successfully, but these errors were encountered: