Subject: CGAL users discussion list
List archive
- From: Ophir Setter <>
- To:
- Subject: Re: [cgal-discuss] intersection of infinite conic arcs
- Date: Mon, 12 Jul 2010 21:52:34 +0300
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=h8n/po26peKtW3ONnpaghvZgYwZNJkdeqA7uPCatVIHm2Km0Iysinq3FniHEQyEkEd bIU3uv9adLsozSDs+XQyj5SwML2htY9P1+loVQ7aVS4E8PQrMOu4/clAInDqQYU0HyVF YRXyIbmkiqx9tAmZ9UbJYMzzlwNdR0Gla6Iy8=
If you are referring to Arr_conic_traits_2 then they do not support intersection of infinite conics. If you just need the intersection we can search in the code for the way to compute the intersection points.
If you want to construct an arrangement then you should wait for a near future release which will contain the ability to construct arrangement of general algebraic curves.
Regards,
Ophir
If you want to construct an arrangement then you should wait for a near future release which will contain the ability to construct arrangement of general algebraic curves.
Regards,
Ophir
On Tue, Jul 6, 2010 at 6:56 AM, Vu, Khuong <> wrote:
Hi everyone,
Does anyone have idea how we can compute the intersection of 2 infinite conic arcs? CGAL provides methods but when I tried to compute the intersection of a infinite hyperbolic arc, say xy - 1 =0, with an ellipse, the segmentation fault occurred. My code just followed CGAL's examples:
...
Conic_arc_2 c1 (0, 0, 1, 0, 0, -1); // xy - 1 =0;
Conic_arc_2 c2 (58, 72, -48, 0, 0, -360); // 58xˆ2 + 72yˆ2 - 48xy - 360 = 0
std::list<Point_2> pts;
Conic_arc_2 conic_arcs[ ]= {c1, c2};
CGAL::compute_intersection_points (conic_arcs, conic_arcs + 2, std::back_inserter (pts));
std::cout << "Found " << pts.size() << " intersection points: " <<
std::endl;
std::copy (pts.begin(), pts.end(),
std::ostream_iterator<Point_2>(std::cout, "\n"));
...
Any hint would be very appreciated. Thanks so much.
Khuong
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
- [cgal-discuss] intersection of infinite conic arcs, Vu, Khuong, 07/06/2010
- Re: [cgal-discuss] intersection of infinite conic arcs, Ophir Setter, 07/12/2010
- RE: [cgal-discuss] intersection of infinite conic arcs, Vu, Khuong, 07/12/2010
- Re: [cgal-discuss] intersection of infinite conic arcs, Ophir Setter, 07/12/2010
Archive powered by MHonArc 2.6.16.