Heading west on Sunset (that winding bit just north of the Los Angeles Country Club), when a charcoal grey Lamborghini Murcielago pulls out just ahead of me. Nice. It made a lovely sound and went from zero to 40 in about 2 seconds. Really expensive cars tend to actually be…
Month: March 2008
Splines and modulation
My efforts to equally subdivide a curve along its length have, in part, been leading to this. First, I extended the sampling to work with splines (made up of cubic Bézier curves with c1 continuity). This shot shows 4 curves put together to form a spline: Next, I wrote some…
And it was done
Since I already had the binary search and interpolation code, it was just a matter of writing different samplers for ellipses and Bézier curves. ;; make a sampler function for a bezier curve (defun make-bezier-sampler (p0 p1 p2 p3) (lambda (k) (decasteljau p0 p1 p2 p3 k))) ;; make a…
More on ellipses
I think I will use the same method as I do for Bézier curves to step along the circumference. Another generalisation I had to make from the circle code is with respect to the normal. For a circle of radius r, centred on the origin, and parameterised by angle θ,…
On ellipses
Having conquered equidistant spacing along a Bézier curve, my thoughts now turn to the same problem for an ellipse. I have solved the problem for a circle of course, which is a special case of an ellipse. One would think that going from a circle to an ellipse would be…
Bore da
Happy St David’s Day to all my Wales-connected friends. I’m not remotely Welsh. But I can say Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch. I suppose it’s been St David’s Day for 8 hours already, actually…