<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Nov 9, 2018 at 11:39 AM Will Schroeder <<a href="mailto:will.schroeder@kitware.com">will.schroeder@kitware.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:verdana,sans-serif">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.</div></div></blockquote><div><br></div><div>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.<br><br>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 =)<br><br>Allie</div></div></div>