[vtkusers] How to store bool array to point data

Jana Sefcikova neollie at gmail.com
Tue Jun 12 02:16:47 EDT 2012


I found vtkBitArray

  VTK_CREATE(vtkBitArray, visited);
72<http://vtk.org/gitweb?p=VTK.git;a=blob;f=Infovis/Core/Testing/Cxx/TestRandomGraphSource.cxx#l72>
 visited->SetNumberOfTuples(g->GetNumberOfVertices());
73<http://vtk.org/gitweb?p=VTK.git;a=blob;f=Infovis/Core/Testing/Cxx/TestRandomGraphSource.cxx#l73>
 for (vtkIdType i = 0; i < g->GetNumberOfVertices(); i++)
74<http://vtk.org/gitweb?p=VTK.git;a=blob;f=Infovis/Core/Testing/Cxx/TestRandomGraphSource.cxx#l74>
   {
75<http://vtk.org/gitweb?p=VTK.git;a=blob;f=Infovis/Core/Testing/Cxx/TestRandomGraphSource.cxx#l75>
   visited->SetValue(i, 0);
76<http://vtk.org/gitweb?p=VTK.git;a=blob;f=Infovis/Core/Testing/Cxx/TestRandomGraphSource.cxx#l76>
   }
Jana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120612/c292f1e1/attachment.htm>


More information about the vtkusers mailing list