[vtkusers] vtkAppendPolyData delete the scalars

Jana Sefcikova neollie at gmail.com
Tue Aug 7 17:09:17 EDT 2012


Hi Gonzalo,
at the first look, i do not trust little to this :
myPolyData->ShallowCopy(otherPolyData);
I think that this will make that myPolyData is pointing internally to same
shared memory (points, celles ...) as otherPolyData.
Than you run subdivision, so you change structure both polydata holders are
pointing to.
Finally you append two same polydata holders pointing to same place ...
What was intention ? Perhaps instead of ShallowCopy , DeepCopy should be
used ..

J.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120807/96746953/attachment.htm>


More information about the vtkusers mailing list