Subject: CGAL users discussion list
List archive
- From: Ben Supnik <>
- To:
- Subject: [cgal-discuss] degenerate beziers in an arrangement
- Date: Tue, 02 Mar 2010 13:46:51 -0500
Hi Y'all,
I'm working with the bezier curve traits and the arrangement classes.
My source beziers always have two control points, e.g. they are always
P1--C1--C2--P2
always cubics. But...sometimes either C1==P1 or C2==P2.
Since my own code simply runs the parameterized equation from t=0 to 1, my code doesn't terribly care that the bezier is "degenerate" at one end. This condition triggers a precondition violation in CGAL.
Is there a conversion to convert a "degenerate" cubic bezier into, um, something else? Or a way to represent this safely in CGAL? Currently I reduce the bezier to a quadratic and I can see the error of my ways...
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.