This seems to be a very common question (around my university as well as on the mailing list). Joel, maybe once you get it working you can post the procedure/code on the examples wiki (<a href="http://www.vtk.org/Wiki/VTK">http://www.vtk.org/Wiki/VTK</a>)? Or send me the code/sample data set and I can try to clean/comment it for posting.<br>
<br clear="all">Thanks,<br><br>David<br>
<br><br><div class="gmail_quote">On Wed, Apr 29, 2009 at 6:11 AM, Bryn Lloyd <span dir="ltr">&lt;<a href="mailto:blloyd@vision.ee.ethz.ch">blloyd@vision.ee.ethz.ch</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Joel,<br>
<br>
I guess you want to run an inside/outside test with the polylines. I would suggest you have look at this post:<br>
<br>
<a href="http://www.nabble.com/extracting-binary-label-image-from-poly-data-contour-td22079030.html" target="_blank">http://www.nabble.com/extracting-binary-label-image-from-poly-data-contour-td22079030.html</a><br>
<br>
<br>
Cheers<br>
Bryn<div class="im"><br>
<br>
<br>
<br>
<br>
Joel Schaerer wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I&#39;m trying to create a 3D surface mesh from a stack of 2D contours created<br>
from a semi-manual contouring platform I have no control on. For now I have<br>
succesfully converted the contours to vtk polylines. My idea is to binarize<br>
the the polylines, and to run a marching cubes on the resulting binary<br>
volume.<br>
<br>
Unfortunately, vtkPolyDataToImageStencil doesn&#39;t work for polylines. So<br>
before I start coding a polyline binarizer, would anyone have a better idea,<br>
or such a binarizer in stock? (the code will be integrated into the<br>
open-source 4D viewer vv)<br>
<br>
Thanks,<br>
<br>
joel<br>
</blockquote>
<br>
<br>
-- <br></div>
-------------------------------------------------<br><font color="#888888">
Bryn Lloyd<br>
Computer Vision Laboratory<br>
ETH Zürich, Sternwartstrasse 7<br>
CH - 8092 Zürich, Switzerland<br>
Tel: +41 44 63 26668<br>
Fax: +41 44 63 21199<br>
-------------------------------------------------</font><div><div></div><div class="h5"><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>