Subject: CGAL users discussion list
List archive
- From:
- To:
- Subject: Re: [cgal-discuss] Intersection of circles?
- Date: Fri, 25 May 2007 18:37:47 +0200
Thomas Zangl - Home wrote:
Circular_k::Intersect_2 intersection;
CGAL::Object O;
intersection(iterCircleOne, iterCircleTwo, O);
IntersectionArc iArc;
IntersectionPoint iPoint;
if (O.assign(iArc)) {
Hi Thomas,
The signature of the operator is:
--
template < class OutputIterator >
OutputIterator fo ( Type1 obj1, Type2 obj2, OutputIterator intersections)
Copies in the output iterator the intersection elements between the two objects. intersections iterates on elements of type CGAL::Object.
--
So you need to give it an *output iterator* as third argument.
It can be something like
std::list<CGAL::Object> intersections_objects;
intersection(..., std::back_inserter(intersections_objects));
Then you can traverse the (possibly empty) list named intersections_objects and get the CGAL::Object, that you can try to assign to points or arcs.
Monique
- Re:[cgal-discuss] Intersection of circles?, Thomas Zangl - Home, 05/25/2007
- Re: [cgal-discuss] Intersection of circles?, Monique . Teillaud, 05/25/2007
- Re:[cgal-discuss] Intersection of circles?, Thomas Zangl - Home, 05/25/2007
- Re: [cgal-discuss] Intersection of circles?, Monique . Teillaud, 05/25/2007
Archive powered by MHonArc 2.6.16.