Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt
Chronological Thread
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt
- Date: Tue, 22 Feb 2011 08:42:33 +0100
You need the patch from the mail you were citing.
With this patch the joint main is working for me.
S.
tochaf wrote:
You mean:
struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt;
typedef CGAL::Triangulation_vertex_base_2<Gt> Vb;
typedef CGAL::Triangulation_face_base_2<Gt> Fb;
typedef CGAL::Triangulation_data_structure_2<Vb,Fb> Tds;
typedef CGAL::Delaunay_triangulation_2<Gt,Tds> Delaunay;
CGAL::Delaunay_triangulation_2<Gt,Tds>
PointCloudManip::delaunayTriangulation()
{
typedef K::Point_3 Point_3;
std::vector<Point_3> points;
points.push_back(Point_3(0,0,1));
points.push_back(Point_3(4,0,1));
points.push_back(Point_3(0,4,1));
points.push_back(Point_3(4,4,1));
points.push_back(Point_3(5,4,1));
Delaunay dt;
dt.insert(points.begin(), points.end());
return dt;
}
void PointCloudManip::validate_CBH_Delaunay_Neighbors2(const
CGAL::Delaunay_triangulation_2<Gt,Tds> dt)
{
const std::string validationCBH
("/home/aferraz/Bureau/validationCBH.txt");
ofstream f (validationCBH.c_str(),ios::app);
typedef Delaunay::Face_handle Face_handle;
typedef std::vector<std::pair<K::Point_3,K::FT> > Point_coordinates_vector;
K::Point_3 p(0.5,0.3,1);
Point_coordinates_vector coords;
Face_handle start = Face_handle();
CGAL::Triple<std::back_insert_iterator<Point_coordinates_vector>,K::FT,bool>
result=CGAL::natural_neighbor_coordinates_2(dt,p,std::back_inserter(coords),start);
}
Lead to the same, or at least, similar error:
(CGAL::Delaunay_triangulation_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_ds_vertex_base_2<void> >,
CGAL::Triangulation_face_base_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_ds_face_base_2<void> > > >)’:
/home/aferraz/code/Forest/src/manip/PointCloudManip.cpp:4705: error: no
matching function for call to ‘natural_neighbor_coordinates_2(const
CGAL::Delaunay_triangulation_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_ds_vertex_base_2<void> >,
CGAL::Triangulation_face_base_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_ds_face_base_2<void> > > >&,
CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double> > >&,
std::back_insert_iterator<std::vector<std::pair<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>
std::allocator<std::pair<CGAL::Point_3<CGAL::Filtered_kernel<CGAL::Simple_cartesian<double>, double>,
PointCloudManip::validate_CBH_Delaunay_Neighbors2(CGAL::Delaunay_triangulation_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,, double> > > >,
CGAL::Triangulation_data_structure_2<CGAL::Triangulation_vertex_base_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_ds_vertex_base_2<void> >,
CGAL::Triangulation_face_base_2<CGAL::Triangulation_euclidean_traits_xy_3<K>,
CGAL::Triangulation_ds_face_base_2<void> > > >)::Face_handle&)’
A.
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> #include <CGAL/Delaunay_triangulation_2.h> #include <CGAL/natural_neighbor_coordinates_2.h> #include <CGAL/Triangulation_euclidean_traits_xy_3.h> #include <fstream> struct K : CGAL::Exact_predicates_inexact_constructions_kernel {}; typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt; typedef CGAL::Triangulation_vertex_base_2<Gt> Vb; typedef CGAL::Triangulation_face_base_2<Gt> Fb; typedef CGAL::Triangulation_data_structure_2<Vb,Fb> Tds; typedef CGAL::Delaunay_triangulation_2<Gt,Tds> Delaunay; CGAL::Delaunay_triangulation_2<Gt,Tds> delaunayTriangulation() { typedef K::Point_3 Point_3; std::vector<Point_3> points; points.push_back(Point_3(0,0,1)); points.push_back(Point_3(4,0,1)); points.push_back(Point_3(0,4,1)); points.push_back(Point_3(4,4,1)); points.push_back(Point_3(5,4,1)); Delaunay dt; dt.insert(points.begin(), points.end()); return dt; } int main() { CGAL::Delaunay_triangulation_2<Gt,Tds> dt; const std::string validationCBH ("/home/aferraz/Bureau/validationCBH.txt"); std::ofstream f (validationCBH.c_str()); typedef Delaunay::Face_handle Face_handle; typedef std::vector<std::pair<K::Point_3,K::FT> > Point_coordinates_vector; K::Point_3 p(0.5,0.3,1); Point_coordinates_vector coords; Face_handle start = Face_handle(); CGAL::Triple<std::back_insert_iterator<Point_coordinates_vector>,K::FT,bool> result= CGAL::natural_neighbor_coordinates_2(dt,p,std::back_inserter(coords),start); }
- [cgal-discuss] CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/20/2011
- Re: [cgal-discuss] CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/21/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/21/2011
- Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/21/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/21/2011
- Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/22/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/22/2011
- Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/22/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/22/2011
- Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/22/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/22/2011
- Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/22/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/22/2011
- Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/22/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/21/2011
- Re: [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/21/2011
- [cgal-discuss] Re: CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, tochaf, 02/21/2011
- Re: [cgal-discuss] CGAL::natural_neighbor_coordinates_2 and typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt, Sebastien Loriot (GeometryFactory), 02/21/2011
Archive powered by MHonArc 2.6.16.