<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
Thanks David.
<div><br>
</div>
<div>I have tested and it’s working great. Also, the overall speed of my program is much faster since I no longer have to use vtkCleanPolyData.</div>
<div><br>
</div>
<div>- Ryan<br>
<div>
<div>On Oct 20, 2014, at 10:35 AM, David Gobbi [via VTK] <<a href="/user/SendEmail.jtp?type=node&node=5729181&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite">
<div dir="ltr">Hi Richard, Ryan,
<div><br>
</div>
<div>I have modified vtkPolyDataToImageStencil so that it works with the data sets that you provided (thanks for making them available to me). Richard's data used to fail because it had several short horizontal line segments, and there was a bug in the code
when horizontal line segments were close to a pixel boundary. Ryan's data set had some short "spurs" (tiny line segments branching off of the main contour) that confused the algorithm, but I've extended the algorithm so that it removes short branches.</div>
<div><br>
</div>
<div>The most recent code is at the following URL. It will hopefully be merged into VTK sometime this week. Thanks again for the test code and the data, it made it much easier for me to pinpoint the bugs.</div>
<div><br>
</div>
<div><a href="http://review.source.kitware.com/#/c/17021/" target="_top" rel="nofollow" link="external">http://review.source.kitware.com/#/c/17021/</a><br>
</div>
<div><br>
</div>
<div> - David</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Oct 8, 2014 at 11:45 AM, Ricardo A Corredor <span dir="ltr">
<<a href="x-msg://16/user/SendEmail.jtp?type=node&node=5729180&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">
That's good to know!<br>
<br>
Just an additional info, I could reproduce @ryan45 error. In this data, this<br>
problem happens with a relatively small spacing: around 2.5 (included) and<br>
below; with higher values the result is correct. Polydata bounds> X:<br>
2.32e+03 to 4.16e+03 (delta: 1.84e+03), Y: 2.47e+03 to 4.47e+03 (2e+03)<br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729052.html" target="_blank" rel="nofollow" link="external">
http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729052.html</a><br>
<div class="HOEnZb">
<div class="h5">Sent from the VTK - Users mailing list archive at <a href="http://Nabble.com" target="_top" rel="nofollow" link="external">
Nabble.com</a>.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank" rel="nofollow" link="external">
www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank" rel="nofollow" link="external">
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" rel="nofollow" link="external">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank" rel="nofollow" link="external">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________ <br>
Powered by <a href="http://www.kitware.com" target="_top" rel="nofollow" link="external">www.kitware.com</a> <br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_top" rel="nofollow" link="external">
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="_top" rel="nofollow" link="external">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe: <br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_top" rel="nofollow" link="external">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br>
<br>
<hr noshade="noshade" size="1">
<div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729180.html" target="_top" rel="nofollow" link="external">http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729180.html</a>
</div>
<div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
To unsubscribe from Fixing vtkPolyDataToImageStencil, <a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
</div>
</blockquote>
</div>
<br>
</div>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729181.html">Re: Fixing vtkPolyDataToImageStencil</a><br/>
Sent from the <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html">VTK - Users mailing list archive</a> at Nabble.com.<br/>