[vtkusers] Fixing vtkPolyDataToImageStencil
ryan45
ryan45 at uab.edu
Mon Oct 20 14:16:32 EDT 2014
Thanks David.
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.
- Ryan
On Oct 20, 2014, at 10:35 AM, David Gobbi [via VTK] <ml-node+s1045678n5729180h32 at n5.nabble.com<mailto:ml-node+s1045678n5729180h32 at n5.nabble.com>> wrote:
Hi Richard, Ryan,
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.
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.
http://review.source.kitware.com/#/c/17021/
- David
On Wed, Oct 8, 2014 at 11:45 AM, Ricardo A Corredor <[hidden email]<x-msg://16/user/SendEmail.jtp?type=node&node=5729180&i=0>> wrote:
That's good to know!
Just an additional info, I could reproduce @ryan45 error. In this data, this
problem happens with a relatively small spacing: around 2.5 (included) and
below; with higher values the result is correct. Polydata bounds> X:
2.32e+03 to 4.16e+03 (delta: 1.84e+03), Y: 2.47e+03 to 4.47e+03 (2e+03)
--
View this message in context: http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729052.html
Sent from the VTK - Users mailing list archive at Nabble.com<http://Nabble.com>.
_______________________________________________
Powered by www.kitware.com<http://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://public.kitware.com/mailman/listinfo/vtkusers
_______________________________________________
Powered by www.kitware.com<http://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://public.kitware.com/mailman/listinfo/vtkusers
________________________________
If you reply to this email, your message will be added to the discussion below:
http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729180.html
To unsubscribe from Fixing vtkPolyDataToImageStencil, click here<http://vtk.1045678.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5728811&code=cnlhbjQ1QHVhYi5lZHV8NTcyODgxMXw3MzIwMjc5MTM=>.
NAML<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>
--
View this message in context: http://vtk.1045678.n5.nabble.com/Fixing-vtkPolyDataToImageStencil-tp5728811p5729181.html
Sent from the VTK - Users mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141020/500eb85a/attachment.html>
More information about the vtkusers
mailing list