[vtkusers] Adding data from one vtkCellArray to another
Artem Babayan
artem.paraview at googlemail.com
Fri May 15 08:50:21 EDT 2015
Hello,
I have to objects of vtkCellArray type: 'result' and 'vtk_cells'. I would
like to add all the data from 'result' to existing data in 'vtk_cell'. At
the moment I do it as brute force copying:
for(int i = 0; i < result->GetNumberOfCells(); ++i)
{
vtkIdType npts;
vtkIdType *pts;
result->GetNextCell(npts, pts);
vtk_cells->InsertNextCell(npts, pts);
}
but isn't there another, simpler, way?
Best wishes
Artem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150515/e4d7420f/attachment.html>
More information about the vtkusers
mailing list