[vtkusers] Concatenating vtkDataArrays

David Doria daviddoria at gmail.com
Fri Oct 1 09:36:01 EDT 2010


Is there a way to do this:

  vtkSmartPointer<vtkIntArray> array1 =
    vtkSmartPointer<vtkIntArray>::New();
  array1->InsertNextValue(0);
  array1->InsertNextValue(1);

  vtkSmartPointer<vtkIntArray> array2 =
    vtkSmartPointer<vtkIntArray>::New();
  array2->InsertNextValue(2);
  array2->InsertNextValue(3);

  array1->Append(array2)

  or

  array3 = array1 + array2

 ?

I saw vtkConcatenateArray, but it only seems to work for vtkDenseArray style
arrays.

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101001/81ca42e5/attachment.htm>


More information about the vtkusers mailing list