<div dir="ltr"><div>Do you really think we are able to guess what is wrong in your code just looking at the difference of intermediate data it produces?<br></div><div></div><div><pre class=""><span class=""><br>Change example to read data from vtp file.<br>
</span></pre><pre class=""><span class="">Read initial data and your data and see if they are both shown properly.<br></span></pre><pre class=""><span class="">Regards,<br></span></pre><br></div><div><br> </div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Apr 12, 2013 at 3:06 PM, vlibertiaux <span dir="ltr"><<a href="mailto:vlibertiaux@gmail.com" target="_blank">vlibertiaux@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi VTK community !<br>
<br>
I am trying to create a binary image (png) that will be used as a mask<br>
starting from a list of points that define the edge of the mask contour.<br>
<br>
I tried to modify the example given on this page:<br>
<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData</a><br>
<br>
and then changed the way the polydata is produced and saved the final image<br>
as a png. I generated one circle by computing the points coordinates and<br>
added the outer normals.<br>
<br>
I then generates the extruded PD the same way than in the original code and<br>
they look pretty similar (files attached). However, the resulting png file<br>
is all black, no circle shown.<br>
<br>
Any help appreciated !<br>
<br>
Thank you very much,<br>
<br>
V<br>
<br>
extruded_original.vtp<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5720033/extruded_original.vtp" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5720033/extruded_original.vtp</a>><br>
extruded_modified.vtp<br>
<<a href="http://vtk.1045678.n5.nabble.com/file/n5720033/extruded_modified.vtp" target="_blank">http://vtk.1045678.n5.nabble.com/file/n5720033/extruded_modified.vtp</a>><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/PolyData-to-Image-extrusion-problem-tp5720033.html" target="_blank">http://vtk.1045678.n5.nabble.com/PolyData-to-Image-extrusion-problem-tp5720033.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<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>
</blockquote></div><br></div>