[vtk-developers] Lazy vtkPoints & vtkPoints2D MTime management

Joachim Pouderoux joachim.pouderoux at kitware.com
Fri Jun 13 11:02:09 EDT 2014


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>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20140613/f5a88bc4/attachment.html>


More information about the vtk-developers mailing list