Re: [R] Bezier to line segments

2016-01-09 Thread Adrian Dușa
Thanks Greg, I'll take a look on that package as well. I'm still unsure whether to calculate these splines at each function run, or to store the coordinates of each spline (curve) and read them when needed. There are performance issues to take into account, but from my current tests it seems that

Re: [R] Bezier to line segments

2016-01-07 Thread Greg Snow
You may also be interested in the xspline function (graphics package, so you don't need to install or load anything extra) since you mention general splines. These splines can be made similar to Bezier curves (but not exactly the same). The function returns a set of coordinates (when draw=FALSE)

Re: [R] Bezier to line segments

2016-01-06 Thread Adrian Dușa
I just found the package "bezier". Trying to find the needle, I missed the haystack... On Wed, Jan 6, 2016 at 9:56 AM, Adrian Dușa wrote: > Dear All, > > I am interested into transforming Bezier curves (or general splines) to a > series of line segments. > For simplicity,

[R] Bezier to line segments

2016-01-05 Thread Adrian Dușa
Dear All, I am interested into transforming Bezier curves (or general splines) to a series of line segments. For simplicity, the Bezier curves are either cubic (arches, no inflection points) or they have at most one inflection point. The entry parameters are exactly four points (with x and y