[vtkusers] problem with vtkFloatArray
Song Li
lisong at vrac.iastate.edu
Fri Feb 22 17:45:48 EST 2002
I use:
vtkFloatArray *polyScalars = vtkFloatArray::New();
and the compiler told me:
-----------------------------------------------------------
The indicated type is incomplete.
vtkFloatArray *polyScalars = vtkFloatArray::New(); //changed to fit
vtk4.0
^
-----------------------------------------------------------
what is 'incomplete' here , anybody know what's wrong with this declaration ?
Berk Geveci wrote:
> You need to create a concrete sub-class of vtkDataArray, such
> as vtkFloatArray. Look at
> http://public.kitware.com/VTK/doc/nightly/html/classvtkDataArray.html
> for a list of sub-classes.
>
> -Berk
>
> On Thu, 2002-02-21 at 13:06, Song Li wrote:
> > 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
> >
> >
--
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/20020222/30f4a877/attachment.htm>
More information about the vtkusers
mailing list