<div dir="ltr"><div dir="ltr">Hi Berti,<div><br></div><div>It's nice to see that the orientation voting gives such a clean result.  To get a result without gaps it would be necessary to take a completely different approach to the rasterization: rasterize the polygons themselves, instead of rasterizing the volume enclosed by the polygons.</div><div><br></div><div>Neither of the filters is parallel.  I designed them both so that they could be parallel, but I never wrote the threading code because they already worked fast enough for my application.</div><div><br></div><div>For instance, vtkPolyDataToImageStencil has this method:</div><div><br></div><div><div>    void vtkPolyDataToImageStencil::ThreadedExecute(</div><div>      vtkImageStencilData *data,</div><div>      int extent[6],</div><div>      int threadId)</div></div><div><br></div><div>The vtkImageStencilData object is made so that it can be written and read in a thread-safe manner, so in order to multithread this filter, one would just have to subdivide the extent along Z and then write a threaded "For()" loop, e.g. with vtkSMPTools.h.</div><div><br></div><div> - David</div></div></div>