[vtk-developers] Lazy vtkPoints & vtkPoints2D MTime management

Berk Geveci berk.geveci at kitware.com
Fri Jun 13 14:37:48 EDT 2014


+1

Those are heavyweight enough that adding Modified() to them should not be a
big issue. It is the setting of individual points that should not invoke
Modified().

-berk


On Fri, Jun 13, 2014 at 11:02 AM, Joachim Pouderoux <
joachim.pouderoux at kitware.com> wrote:

> Hi all,
>
> I felt in a trap with a vtkPoints2D object - but vtkPoints has the same
> behaviour - due to the fact that neither Reset nor SetNumberOfPoints method
> call Modified(). This is important because GetBounds (and ComputeBounds
> more precisely) caches the bounding boxes using MTime. So basically if you
> reuse a vtkPoints(2D) object, the bounding box will not be updated unless
> you think to call Modified by yourself whereas you could imagine that Reset
> and SetNumberOfPoints methods are important enough to change the MTime tag.
> Would you see any inconvenience if I add this Modified call in those 2
> methods and in Initialize() too.
>
> Best,
>
> *Joachim Pouderoux*
>
> *PhD, Technical Expert*
> *Kitware SAS <http://www.kitware.fr>*
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20140613/6e46a5b2/attachment-0002.html>


More information about the vtk-developers mailing list