<div dir="ltr">Could someone convert it to python. I tried, but it throws some error at<br><br><pre class="de1"><font style="font-family: arial,helvetica,sans-serif;" size="2">vtkIdType <span class="sy2">*</span>indices<span class="sy4">;</span><br>
  vtkIdType numberOfPoints<span class="sy4">;</span><br>  <span class="kw4">unsigned</span> <span class="kw4">int</span> lineCount <span class="sy1">=</span> <span class="nu0">0</span><span class="sy4">;</span><br>  <span class="kw1">for</span> <span class="br0">(</span>cells<span class="sy2">-</span><span class="sy1">&gt;</span>InitTraversal<span class="br0">()</span><span class="sy4">;</span><br>
       cells<span class="sy2">-</span><span class="sy1">&gt;</span>GetNextCell<span class="br0">(</span>numberOfPoints, indices<span class="br0">)</span><span class="sy4">;</span><br>       lineCount<span class="sy2">++</span><span class="br0">)<br>
<br><br>Thanks,<br><br>Jothy<br></span></font><br></pre> <br><br><div class="gmail_quote">On Wed, May 19, 2010 at 1:24 PM, Bill Lorensen <span dir="ltr">&lt;<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">I&#39;ve added an example that illustrates one way to place labels on<br>
isolines generated by vtkContourFilter.<br>
<br>
<a href="http://vtk.org/Wiki/VTK/Examples/Visualization/LabelContours" target="_blank">http://vtk.org/Wiki/VTK/Examples/Visualization/LabelContours</a><br>
<font color="#888888"><br>
Bill<br>
</font><div><div></div><div class="h5"><br>
On Tue, May 18, 2010 at 9:35 PM, rashedk &lt;<a href="mailto:rashed.vtk@googlemail.com">rashed.vtk@googlemail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Thanks Bill!  I agree to your T&amp;C :)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; rashedk wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi all,<br>
&gt;&gt;<br>
&gt;&gt; vtkContourFilter can draw contours on a dataset, however, is it possible<br>
&gt;&gt; to label/annotate these contours? I looked at vtkLabeledDataMapper but it<br>
&gt;&gt; only seems to label points, cells, etc.<br>
&gt;&gt;<br>
&gt;&gt; Rashed.<br>
&gt;&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://old.nabble.com/labelling-iso-lines-tp28597889p28603314.html" target="_blank">http://old.nabble.com/labelling-iso-lines-tp28597889p28603314.html</a><br>
&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br></div>