<br>Hello, <br><br>Thanks, It works!!!<br><br><div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>My best guess is that Delaunay is derived from
<br><br> CGAL::Triangulation_2<<br> CGAL::Cartesian<double><br> , CGAL::Tds2<<br> CGAL::Tvb<CGAL::Cartesian<double>, CGAL::Tdsvb<void> ><br> , CGAL::Tdsfb<void>
<br> ><br> ><br><br>which supplies finite_vertices_begin and finite_vertices_end. Since<br>you haven't wrapped that, and Boost.Python doesn't know it's a base<br>class of Delaunay, you get the error.</blockquote>
<div><br>Yes. You are right. <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You have two choices:<br><br>1. pre-assign finite_vertices_end/begin to variables (or cast to
<br> temporaries) of type<br><br> Finite_vertices_iterator (Delaunay::*)()<br><br> and pass those to range(...)</blockquote><div><br>This method works fine. Thanks !!!<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
2. Use the first form of range<NextPolicies,Target>(...) described<br> here: <a href="http://boost.org/libs/python/doc/v2/iterator.html#range-spec">http://boost.org/libs/python/doc/v2/iterator.html#range-spec</a></blockquote>
<div><br>The mechanisms of NextPolicies and Terget are a little obscur to me... </div>Today, I don't understand everything about this kind of stuffs.<br><br>Just a question : <br>Is there a third method where I can define the iterator and member of the class Triangulation2<...> and define the inheritance between Triangulation_2 and Delaunay using boost?
<br>That would let the Python binding looks more like the C++ original library...<br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">HTH,
</blockquote><div><br>Happy Being Helped!!!<br> </div></div>Cyril<br>