[vtk-developers] potential speedup for the vtkpolydatatoimagestencil

David Gobbi david.gobbi at gmail.com
Mon Feb 27 15:58:26 EST 2012


On Mon, Feb 27, 2012 at 1:24 PM, Mark Roden <mmroden at gmail.com> wrote:

> David, if you could please shed some light on how to use the faster code path-- right now, it produces blank binary images.

See line 320 in the source code.  That's the "if" statement that
chooses the cutter-path (if the input is polys) or the direct path (if
the input is polyline contours that are aligned with the slices).

http://vtk.org/gitweb?p=VTK.git;a=blob;f=Hybrid/vtkPolyDataToImageStencil.cxx;#l320

If you want to be sure about what path your data is taking, you can
add print statements to the code, or run your program in a debugger.

 - David



More information about the vtk-developers mailing list