Re: Pointlist to Bezier?

2022-06-14 Thread Craig Newman via use-livecode
ote: >> Searching around for a function in LC. It should take the points of a >> graphic and return a smoothed the points of a smoothed line. I’ve found lots >> of bezier style experiments but no “curve fitting” code. Anyone have a >> function? >> >> 📆 Schedule

Re: Pointlist to Bezier?

2022-06-14 Thread David Bovill via use-livecode
uld take the points of a graphic > and return a smoothed the points of a smoothed line. I’ve found lots of > bezier style experiments but no “curve fitting” code. Anyone have a function? > > 📆    Schedule a call with me > On 6 Dec 2015, 12:10 +, Michael Kristensen > , wrote: &g

Re: Pointlist to Bezier?

2022-06-14 Thread David Bovill via use-livecode
Kristensen , wrote: > Pointlist to Bezier > > Hi there > > I wonder if any have code to take a point-list and turn it into a > smooth-lined bezier. > > There are explanations around the net for C-code but it is very hard to > understand. > > (one here said t

Re: Pointlist to Bezier?

2015-12-08 Thread stephen barncard
On Tue, Dec 8, 2015 at 5:10 PM, Alejandro Tejada wrote: > Are they recalculating the whole line, while the user > is still drawing? > > Al > I think so - this is intentional ... fast! -- Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words ___ use

Re: Pointlist to Bezier?

2015-12-08 Thread Alejandro Tejada
happening with this line while the user is drawing. Are they recalculating the whole line, while the user is still drawing? Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Pointlist-to-Bezier-tp4699320p4699360.html Sent from the Revolution - User mailing list

Re: Pointlist to Bezier?

2015-12-08 Thread Michael Kristensen
A video of live vector drawing can be seen here. (there is no lag at all) https://www.youtube.com/watch?v=eP1CVHiRvXk Herman - approximating closely would be great! Michael ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit t

Re: Pointlist to Bezier?

2015-12-07 Thread [-hh]
> Roland H. wrote: > Also I could not see a change applying those to selected drawings. Because it's a demo only the smoothing is only active while the check is ON and then only for the FOLLOWING drawings. Selecting is for editing the points of your drawings only. The slider at bottom for the tw

Re: Pointlist to Bezier?

2015-12-07 Thread Roland Huettmann
It looks pretty amazing and very nice in the web browser (Chrome). And comparing to the actual stack it really is a true representation of the original stack.. ) A very nice user interface! Unfortunately I can not comment any of the algorithms. Also I could not see a change applying those to selec

Re: Pointlist to Bezier?

2015-12-07 Thread [-hh]
Hi Michael and all, meanwhile I looked closer at the math of the two algorithms that Alejandro implemented. TMO, this is the answer, no matter if you wish to approximate/smooth bezier-curves or any other path by curves of lower/higher order: [1] If you have not too much points, say an N-gon wi

Re: Pointlist to Bezier?

2015-12-07 Thread Michael Kristensen
Thanks to Scott, Hermann and Alejandro for your extensive replies. Herman your smoothing app is cool and working very well! I might not have been precise enough….what I meant was: To a given curve (or pointlist) which bezier will fit it. Kind of reverse-engeneering beziers Thanks Michael

Re: Pointlist to Bezier

2015-12-06 Thread Alejandro Tejada
Hi Michael, > Michael K. wrote: > Pointlist to Bezier > Hi there, I wonder if any have code to take a > point-list and turn it into a smooth-lined bezier. Look at this stack, that implements two polygon smoothing algorithms: Chaikin and Shemanarev http://andregarzia.on-rev.com/alej

Re: Pointlist to Bezier?

2015-12-06 Thread [-hh]
> Michael K. wrote: > Pointlist to Bezier > Hi there > I wonder if any have code to take a point-list and turn it > into a smooth-lined bezier. A bezier curve is a mathematical model. It can only approximately be drawn by polygons. LC's path method is as good as others, has on

Re: Pointlist to Bezier?

2015-12-06 Thread Scott Rossi
hael Kristensen" wrote: >Pointlist to Bezier > >Hi there > >I wonder if any have code to take a point-list and turn it into a >smooth-lined bezier. > >There are explanations around the net for C-code but it is very hard to >understand. > >(one here said to be good b

Pointlist to Bezier?

2015-12-06 Thread Michael Kristensen
Pointlist to Bezier Hi there I wonder if any have code to take a point-list and turn it into a smooth-lined bezier. There are explanations around the net for C-code but it is very hard to understand. (one here said to be good but misses the graphics:) http://www.benknowscode.com/2012/09/path