Subject: CGAL users discussion list
List archive
[cgal-discuss] Bug: CGAL::natural_neighbor_coordinates_2() with CGAL::Triangulation_euclidean_traits_...
Chronological Thread
- From: "Lehtonen, Matti/HIIT" <>
- To:
- Subject: [cgal-discuss] Bug: CGAL::natural_neighbor_coordinates_2() with CGAL::Triangulation_euclidean_traits_...
- Date: Thu, 01 Jul 2010 11:50:51 +0300
Hi!
Only one of following calls is compiled without "error: no matching function
for
call to natural_neighbor_coordinates_2(...)". I don't see any reason (==no
need to be incompatible with euclidean traits), why they all shouldn't be
compiled successfully.
Because GCC (gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3) is so unhelpful to tell why
compilation fails (see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40793), so
I
cannot say exactly why these examples fail. This example is collected by the
hard way, spending many, Many hours to identify the direction to the actual
problem.
Versions:
// $URL:
svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Interpolation/include/CGAL/natural_neighbor_coordinates_2.h
$
// $Id: natural_neighbor_coordinates_2.h 44490 2008-07-27 11:54:19Z spion $
// $URL:
svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Triangulation_2/include/CGAL/Triangulation_euclidean_traits_2.h
$
// $Id: Triangulation_euclidean_traits_2.h 48844 2009-04-21 18:28:04Z spion $
patched:
// $URL:
svn+ssh:///svn/cgal/branches/CGAL-3.6-branch/Triangulation_2/include/CGAL/Triangulation_euclidean_traits_xy_3.h
$
// $Id: Triangulation_euclidean_traits_xy_3.h 57043 2010-06-24 07:56:01Z
sloriot
$
// $URL:
svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Triangulation_2/include/CGAL/Delaunay_triangulation_2.h
$
// $Id: Delaunay_triangulation_2.h 46169 2008-10-08 13:44:06Z pmachado $
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef CGAL::Triangulation_euclidean_traits_2<Kernel> Gt2;
typedef CGAL::Triangulation_euclidean_traits_xy_3<Kernel> Gt3;
typedef CGAL::Delaunay_triangulation_2<Kernel> DTr1;
typedef CGAL::Delaunay_triangulation_2<Gt2> DTr2;
typedef CGAL::Delaunay_triangulation_2<Gt3> DTr3;
typedef DTr1::Geom_traits::Point_2 Point1;
typedef DTr2::Geom_traits::Point_2 Point2;
typedef DTr3::Geom_traits::Point_2 Point3;
DTr1 T1;
DTr2 T2;
DTr3 T3;
Point1 p1;
Point2 p2;
Point3 p3;
std::vector<std::pair<Point1, FT> > coords1;
std::vector<std::pair<Point2, FT> > coords2;
std::vector<std::pair<Point3, FT> > coords3;
// My code: fails
(void) CGAL::natural_neighbor_coordinates_2( T3, p3, std::back_inserter(
coords3 ) );
// Test case: fails
(void) CGAL::natural_neighbor_coordinates_2( T2, p2, std::back_inserter(
coords2 ) );
// Exactly like in example: okay
(void) CGAL::natural_neighbor_coordinates_2( T1, p1, std::back_inserter(
coords1 ) );
Lehtonen, Matti
Researcher, head programmer - Helsinki Institute for Information Technology
HIIT
http://www.hiit.fi/
--
Life is complex. It has real and imaginary parts.
- [cgal-discuss] Bug: CGAL::natural_neighbor_coordinates_2() with CGAL::Triangulation_euclidean_traits_..., Lehtonen, Matti/HIIT, 07/01/2010
- Re: [cgal-discuss] Bug: CGAL::natural_neighbor_coordinates_2() with CGAL::Triangulation_euclidean_traits_..., Sebastien Loriot (GeometryFactory), 07/05/2010
- Re: [cgal-discuss] Bug: CGAL::natural_neighbor_coordinates_2() with CGAL::Triangulation_euclidean_traits_..., Lehtonen, Matti/HIIT, 07/07/2010
- Re: [cgal-discuss] Bug: CGAL::natural_neighbor_coordinates_2() with CGAL::Triangulation_euclidean_traits_..., Sebastien Loriot (GeometryFactory), 07/05/2010
Archive powered by MHonArc 2.6.16.