jbuckmccready / CavalierContours

2D polyline library for offsetting, combining, etc.
MIT License
419 stars 78 forks source link

Not clipped polyline after offset #33

Open kadircanik opened 3 years ago

kadircanik commented 3 years ago

After offset operation if the new polyline self intersected, the intersected edges clipped and created polylines more than one. Is that possible to get the intersected polyline without clipping?

jbuckmccready commented 3 years ago

You can use the raw offset function here (cavc::internal::createRawOffsetPline). It will return the raw offset polyline (which may have self intersects and have invalid sub parts).