[vtkusers] how to initialize a vtkDataArray

Song Li lisong at vrac.iastate.edu
Thu Feb 21 13:06:48 EST 2002


Hi,
  Just wondering how to create a vtkDataArray, seems the code like :
"vtkDataArray *xyz = vtkDataArray::New();" is not allowed by compiler,
and if I don't do that, compiler will pass it but the program will crash
at "xyz->SetNumberOfTuples(x);" , so is there any way to create it.
  Just want to use vtkDataArray in V4.0 instead of vtkScalars in
V3.2....
  Thanks!

--
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong at vrac.iastate.edu
Homepage: http://www.vrac.iastate.edu/~lisong


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020221/45fda696/attachment.htm>


More information about the vtkusers mailing list