4

I am using Clipper Library in which it is quite easy to do Polygon Offsetting, BUT MY PROBLEM IS TO DO POLYLINE OFFSETTING preferably using Clipper.

While searching on web I found a function called OffsetPaths, but the function offsets in two directions, that is it takes only positive argument as offset distance.

I can understand that unlike in closed Polygons where it is easy to specify direction, enlarging being positive and deflating as negative, Polylines do not have the same luxury. But my requirement is such.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
Aditya
  • 149
  • 1
  • 8
  • Do you mean you want to offset open polygons? – abenci Sep 02 '14 at 13:06
  • Beware that "enlarging" and "deflating" have no meaning when it comes to polylines, better say offset to the left or to the right. –  Sep 03 '14 at 14:20
  • The offsetting operation is a truly non-trivial one, and you won't easily find solutions of the quality of Clipper and ready-made. If you have the skills, an option could be to adapt the existing offset function yourself. –  Sep 03 '14 at 14:38
  • Alberto : Yes, I am talking about open Polygons. Yves Daoust : Thanks for the suggestion. Since I could not find any ready made library, I extended the clipper functionality by just making it a closed polygon. – Aditya Sep 10 '14 at 08:20

0 Answers0