Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: About Bezier curves in Arrangement

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: About Bezier curves in Arrangement


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: About Bezier curves in Arrangement
  • Date: Tue, 01 Feb 2011 12:05:55 +0100

stzpz wrote:
Thanks very much for your reply!

Please found attached patch files that should solve your problem.
Can you try them and tell us whether it works now?


For the first question, is that better to let the returning supporting_curve() contains the correct auxiliary data? Because the returning type of supporting_curve() is Arr_curve_data_traits_2.
The return type of
Arr_curve_data_traits_2<Traits_org_2,CurveNumber>::X_monotone_curve_2::supporting_curve() is Traits_org_2::Curve_2 because it inherits from Traits_org_2::X_monotone_curve_2


In addition, I have one more question. Because I want to calculate the new control points of each sub bezier curve (X_monotone_curve_2), I use parameter_range() with de_Casteljau_2() to do that. But it seems that the returned values of parameter_range() is not so accurate for some case and hence influences the result of de_Casteljau_2(). For example, in the following code,

As documented parameter_range() returns "the approximate parameter range defining the subcurve b."


S.
[snip]


Attachment: patch.tgz
Description: application/compressed-tar




Archive powered by MHonArc 2.6.16.

Top of Page