Is it possible to use a joinStyle that isn't JOIN_ROUND when doing single-sided offsetting of a Polygon geometry? #1105
-
I'm calling OffsetCurve(myPolygon, offsetDistance, bufferParams).getCurve() and I always end up with an offset that has rounded corners, even though my bufferParams.joinStyle = JOIN_MITRE Is this expected behavior? Is there a way to get a mitre joinStyle for a Polygon that gets passed into OffsetCurve()? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
No, currently the OffsetCurve algorithm does not respect the join style. This is a bug - the parameters are not being passed to the underlying buffer call. It's easy to do this manually,l however. Simply construct the buffer of the polygon (on the required side, and with the desired parameters) and extract its boundary. |
Beta Was this translation helpful? Give feedback.
-
Now supported - see #1109 |
Beta Was this translation helpful? Give feedback.
No, currently the OffsetCurve algorithm does not respect the join style. This is a bug - the parameters are not being passed to the underlying buffer call.
It's easy to do this manually,l however. Simply construct the buffer of the polygon (on the required side, and with the desired parameters) and extract its boundary.