Legal self-intersecting input for offset operation #738
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
-
With regard to the documentation here that states "offsetting should not be performed on self-intersecting polygons as doing so will almost always produce unexpected results", this advice does not pertain to open paths (polylines). It's quite OK to offset polylines that self-intersect, though doing so will flatten the resulting polygon generated by the offset. The following example offsets an open path that self-intersects and demonstrates flattening of the overlap region:
Edit: I've now updated the documentation to further clarify this. |
Beta Was this translation helpful? Give feedback.
With regard to the documentation here that states "offsetting should not be performed on self-intersecting polygons as doing so will almost always produce unexpected results", this advice does not pertain to open paths (polylines). It's quite OK to offset polylines that self-intersect, though doing so will flatten the resulting polygon generated by the offset.
The following example offsets an open path that self-intersects and demonstrates flattening of the overlap region: