<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>&nbsp;&nbsp;CGAL::Triangulation_2&lt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CGAL::Cartesian&lt;double&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp; , CGAL::Tds2&lt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CGAL::Tvb&lt;CGAL::Cartesian&lt;double&gt;, CGAL::Tdsvb&lt;void&gt; &gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , CGAL::Tdsfb&lt;void&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt;<br>&nbsp;&nbsp;&gt;<br><br>which supplies finite_vertices_begin and finite_vertices_end.&nbsp;&nbsp;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>&nbsp;&nbsp; temporaries) of type<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finite_vertices_iterator (Delaunay::*)()<br><br>&nbsp;&nbsp; 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&lt;NextPolicies,Target&gt;(...) described<br>&nbsp;&nbsp; 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...&nbsp;</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&lt;...&gt; 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>&nbsp;</div></div>Cyril<br>