This discussion is archived
0 Replies Latest reply: Jul 20, 2011 1:19 AM by 876696 RSS

Converting CubicCurve2d and/or QuadCurve2d into set of Line2d's and Arc2d's

876696 Newbie
Currently Being Moderated
Hi,

i have to recreate a shape using lines/circles/arcs ...
First I used FlatteningPathIterator, but when i feed the geometry data to a native lib (which accepts only lines/circles/arcs as geometry data), it stops working because of too many segments ...
Therefore i need to convert QuadCurve2D and CubicCurve2D spilnes into set of Line2D and Arc2D objects.

Any hints would be much appreciated.

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points