Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Converting X_monotone_curve_2 to Curve_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] Converting X_monotone_curve_2 to Curve_2


Chronological Thread 
  • From: Shriramana Sharma <>
  • To:
  • Subject: [cgal-discuss] Converting X_monotone_curve_2 to Curve_2
  • Date: Fri, 8 Feb 2013 15:39:45 +0530

Hello.

I hope IUC that an X_monotone_curve_2 is in mathematical terms a valid
Curve_2, given that it is infact constructed as a segment of the
latter, but so that it preserves its nature i.e. being a segment of a
larger curve, it still holds a copy of its supporting Curve_2 and the
parameter range on that curve which define it.

Now I would like to know how to obtain the Curve_2 that is graphically
equivalent to a given X_monotone_curve_2, IOW actually split the
supporting curve within the given parameter range and get the result
as Curve_2 object?

For Bezier curves (which I am specifically interested in) I suppose
one could apply de Casteljau twice (split first at one of the
parameter values and then at the other (suitably scaled to correspond
to the post-splitting status of course)) but I guess with all the
generic programming going into CGAL there should be some "generic"
way, a generic API to be precise, for this?

I would also like a response to my separate question whether CGAL's
own de Casteljau code is part of the API or not.

Thanks!

--
Shriramana Sharma



Archive powered by MHonArc 2.6.18.

Top of Page