[vtkusers] Ordering wrong when convert vtkImageData to vtkPolyData

Summer Sun sunxiasx at foxmail.com
Thu Mar 16 09:23:18 EDT 2017


I have a 2d vtkImageData with only two value, 0 and 255. 

I want to get a boundary of pixels valued 255.

Currently I use vtkMarchingSquares to get the vtkPolyData but the order of
points are wrong, therefore the result is shown below.
<http://vtk.1045678.n5.nabble.com/file/n5742492/chaos.png> 

How may I fix this ordering probem? 
Or is there any other way for me to get and draw the boundary on original
image?



--
View this message in context: http://vtk.1045678.n5.nabble.com/Ordering-wrong-when-convert-vtkImageData-to-vtkPolyData-tp5742492.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list