<div dir="ltr">+1<div><br></div><div>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().</div><div><br></div><div>

-berk</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 13, 2014 at 11:02 AM, Joachim Pouderoux <span dir="ltr"><<a href="mailto:joachim.pouderoux@kitware.com" target="_blank">joachim.pouderoux@kitware.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi all,<br><br></div>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.<br>



</div>Would you see any inconvenience if I add this Modified call in those 2 methods and in Initialize() too.<br><div><div><div><br></div><div>Best,<br></div><div><br clear="all"><div><div><div><div><div dir="ltr"><b>Joachim Pouderoux</b><br>



<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="1"><i>PhD, Technical Expert</i></font><br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br>



</blockquote>
</div></div>
</div></div></div></div></div></div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
<br></blockquote></div><br></div>