Subject: CGAL users discussion list
List archive
- From: Pierre Alliez <>
- To:
- Subject: Re: [cgal-discuss] Why do_intersect and not an intersection?
- Date: Thu, 16 Jul 2009 11:25:38 +0200
- Organization: INRIA
hi Ashwin,
the API is not yet complete mostly for lack of time - but as this is an open source project you can contribute at any time by submitting the missing functions together with their unitary tests.
we are working on completing these functions in CGAL but this will not be for the next release.
in the meantimg I can send you the current missing functions that we have for triangles.
best,
Pierre Alliez
INRIA Sophia Antipolis - Mediterranee Project-team GEOMETRICA http://www-sop.inria.fr/members/Pierre.Alliez/
Tel: +33 4 92 38 76 77
Fax: +33 4 97 15 53 95
Ashwin Nanjappa a écrit :
Hi,
Recently I had to write some code to find the intersection of a
Triangle_3 and Segment_3. I noticed that I could do a
CGAL::do_intersect() [1] of these to find *if* there is any
intersection. But, I *cannot* do a CGAL::intersection() [2] of these
objects to obtain the intersection object. What is the reason for this
API design?
Currently, I get around this by:
(1) Getting the Plane_3 of the triangle using Triangle_3::supporting_plane()
(2) CGAL::intersection of the Plane_3 and the Segment_3 to get the
intersection object.
(3) Checking if the intersection CGALObject thus obtained lies on the
Triangle_3.
Is there a better way to do this?
[1]
<http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Kernel_23_ref/Function_do_intersect.html>
[2]
<http://www.cgal.org/Manual/3.4/doc_html/cgal_manual/Kernel_23_ref/Function_intersection.html>
Regards,
~ash
- [cgal-discuss] Why do_intersect and not an intersection?, Ashwin Nanjappa, 07/16/2009
- Re: [cgal-discuss] Why do_intersect and not an intersection?, Pierre Alliez, 07/16/2009
- Re: [cgal-discuss] Why do_intersect and not an intersection?, Matthew Denno, 07/16/2009
- Re: [cgal-discuss] Why do_intersect and not an intersection?, Camille Wormser, 07/16/2009
- Re: [cgal-discuss] Why do_intersect and not an intersection?, Ashwin Nanjappa, 07/27/2009
- Re: [cgal-discuss] Why do_intersect and not an intersection?, Pierre Alliez, 07/16/2009
Archive powered by MHonArc 2.6.16.