Subject: CGAL users discussion list
List archive
- From: Ben Supnik <>
- To:
- Subject: Re: [cgal-discuss] degenerate beziers in an arrangement
- Date: Wed, 03 Mar 2010 09:23:14 -0500
Thanks Fernando,
That's what I was afraid of....
AFAICT they would both render the same (or maybe not? I never tried
such a degenerate cubic).
Sadly they do not...the problem is that the weighting of the control points is different - more weight on the "one good" control point (and not enough on the end point colocated with the degeneracy) than in the quadratic case.
Hrm...it looks like I might be able to fudge things, if I can accept small error.
In a degenerate bezier, P1, C1, C2, P2 (p1 == c1) the curve starting at P1 is tangent to the line P1 C2.
So if I "create" a point C1 along the line P1 C2, the non-degenerate curve approaches the degenerate curve as C1 approaches P1.
If I can accept very slow exact processing and small amounts of error, I can construct a CGAL-happy bezier. :-)
cheers
Ben
--
Scenery Home Page: http://scenery.x-plane.com/
Scenery blog: http://xplanescenery.blogspot.com/
Plugin SDK: http://www.xsquawkbox.net/xpsdk/
X-Plane Wiki: http://wiki.x-plane.com/
Scenery mailing list:
Developer mailing list:
- [cgal-discuss] degenerate beziers in an arrangement, Ben Supnik, 03/02/2010
- Re: [cgal-discuss] degenerate beziers in an arrangement, Fernando Cacciola, 03/03/2010
- Re: [cgal-discuss] degenerate beziers in an arrangement, Ben Supnik, 03/03/2010
- Re: [cgal-discuss] degenerate beziers in an arrangement, Fernando Cacciola, 03/03/2010
Archive powered by MHonArc 2.6.16.