[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Problems with bbox code and cubic bezier curves
From: |
Tom Kacvinsky |
Subject: |
Re: [Devel] Problems with bbox code and cubic bezier curves |
Date: |
Tue, 24 Apr 2001 16:52:09 -0400 (EDT) |
OK, but what are the parametric equations in t for the x and y coordinates?
One has to find the roots and guarantee that they are in the interval (0,1).
There are either 0, 1, or 2 roots, and there are degenerate cases to take
care of. Moreover, one has to then find the corresponding point(s) on the
graph of parametric equations and determine if they are extrema or not, and
so on.
Its not just a matter of finding the roots. As you can see, it gets
complicated rather quickly...
Tom
On Mon, 23 Apr 2001, Nathan Hurst wrote:
> Toby pointed out that the bounding box of a bezier can be computed by
> computing the max and min of the x and y coords of the parametric equation of
> the curve, which for a cubic would occur at either the end points or the
> solutions of:
>
> t^2[A-3B-C-3D] + t[2B+6D] + [C-3D]
>
> where A,B,C,D are the x or y coords of the control points.
>
> This requires 2 sqrts per curve, but I suspect that that would be cheaper than
> an unknown number of splits?
>
> njh
>
>
- Re: [Devel] Problems with bbox code and cubic bezier curves, (continued)
- Re: [Devel] Problems with bbox code and cubic bezier curves, Werner LEMBERG, 2001/04/23
- Re: [Devel] Problems with bbox code and cubic bezier curves, Nathan Hurst, 2001/04/23
- Re: [Devel] Problems with bbox code and cubic bezier curves, Werner LEMBERG, 2001/04/24
- Re: [Devel] Problems with bbox code and cubic bezier curves, Tom Kacvinsky, 2001/04/24
- Re: [Devel] Problems with bbox code and cubic bezier curves, Nathan Hurst, 2001/04/24
- Re: [Devel] Problems with bbox code and cubic bezier curves, Tom Kacvinsky, 2001/04/24
- Re: [Devel] Problems with bbox code and cubic bezier curves, David Turner, 2001/04/25
- Re: [Devel] Problems with bbox code and cubic bezier curves, Tom Kacvinsky, 2001/04/25
- Re: [Devel] Problems with bbox code and cubic bezier curves,
Tom Kacvinsky <=
- Re: [Devel] Problems with bbox code and cubic bezier curves, Just van Rossum, 2001/04/24
- Re: [Devel] Problems with bbox code and cubic bezier curves, Tom Kacvinsky, 2001/04/24
RE: [Devel] Problems with bbox code and cubic bezier curves, Ivan Nincic, 2001/04/24
RE: [Devel] Problems with bbox code and cubic bezier curves, Ivan Nincic, 2001/04/24