[vtk-developers] RFC: STL algos and C++11 for-range syntax with vtkDataArrays

Allie Vacanti allison.vacanti at kitware.com
Fri Nov 9 12:21:17 EST 2018

On Fri, Nov 9, 2018 at 11:39 AM Will Schroeder <will.schroeder at kitware.com>

> Personally I'd love to see one of the core algorithms (isocontouring?)
> currently using GetVoidPointer() / vtkTemplateMacro rewitten using the
> preferred approach of your choosing :-) (or alternatively point us to good,
> non-trivial examples). Along with benchmarking to see what the impacts
> are... IMO code examples like this can go a long way to helping others do
> the right thing.

>From the a quick glance at the vtkMarchingCubes code, this would actually
be a decent candidate for the iterators. It would take some serious
refactoring, but it's essentially four locations in the scalar array moving
sequentially through the data simultaneously -- something that could be
modeled with iterators fairly easily.

I agree, some more "real life" examples would be useful, right now it's
just a matter of finding the cycles to undertake something like this =)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtk-developers/attachments/20181109/53580f56/attachment.html>

More information about the vtk-developers mailing list