[vtk-developers] Marking data modified

Shawn Waldon shawn.waldon at kitware.com
Mon Aug 15 11:59:58 EDT 2016


Hi all,

I have been tracking down a bug in the vtkBoxRepresentation where the
selected face never updated.  The issue was that the widget was calling
ReplaceCell on the vtkCellArray for the selected face polydata, but never
calling Modified() on the cell array (though it did call Modified() on the
polydata).  With the new OpenGL backend this matters.  The documentation
for ReplaceCell doesn't say that you have to do this afterward and the
writer of vtkBoxRepresentation used that documentation.

So my question is this: why doesn't ReplaceCell mark the cell array as
modified? Is this a bug or on purpose for performance reasons?  I will
update the docs or fix ReplaceCell once I know which is wrong.

Thank you,
Shawn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160815/e47f06c3/attachment.html>


More information about the vtk-developers mailing list