[vtkusers] PolyData to Image: extrusion problem ?

Alex Malyushytskyy alexmalvtk at gmail.com
Fri Apr 12 18:31:02 EDT 2013


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?


Change example to read data from vtp file.

Read initial data and your data and see if they are both shown properly.

Regards,





On Fri, Apr 12, 2013 at 3:06 PM, vlibertiaux <vlibertiaux at gmail.com> wrote:

> Hi VTK community !
>
> I am trying to create a binary image (png) that will be used as a mask
> starting from a list of points that define the edge of the mask contour.
>
> I tried to modify the example given on this page:
>
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataContourToImageData
>
> and then changed the way the polydata is produced and saved the final image
> as a png.  I generated one circle by computing the points coordinates and
> added the outer normals.
>
> I then generates the extruded PD the same way than in the original code and
> they look pretty similar (files attached).  However, the resulting png file
> is all black, no circle shown.
>
> Any help appreciated !
>
> Thank you very much,
>
> V
>
> extruded_original.vtp
> <http://vtk.1045678.n5.nabble.com/file/n5720033/extruded_original.vtp>
> extruded_modified.vtp
> <http://vtk.1045678.n5.nabble.com/file/n5720033/extruded_modified.vtp>
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/PolyData-to-Image-extrusion-problem-tp5720033.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130412/440ec325/attachment.htm>


More information about the vtkusers mailing list