<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I use:
<br>vtkFloatArray *polyScalars = vtkFloatArray::New();
<p>and the compiler told me:
<br>-----------------------------------------------------------
<br>The indicated type is incomplete.
<p> vtkFloatArray *polyScalars = vtkFloatArray::New();
//changed to fit vtk4.0
<br>
^
<br>-----------------------------------------------------------
<br>what is 'incomplete' here , anybody know what's wrong with this declaration
?
<br>
<br>
<p>Berk Geveci wrote:
<blockquote TYPE=CITE>You need to create a concrete sub-class of vtkDataArray,
such
<br>as vtkFloatArray. Look at
<br><a href="http://public.kitware.com/VTK/doc/nightly/html/classvtkDataArray.html">http://public.kitware.com/VTK/doc/nightly/html/classvtkDataArray.html</a>
<br>for a list of sub-classes.
<p>-Berk
<p>On Thu, 2002-02-21 at 13:06, Song Li wrote:
<br>> Hi,
<br>> Just wondering how to create a vtkDataArray, seems the
code like :
<br>> "vtkDataArray *xyz = vtkDataArray::New();" is not allowed by compiler,
<br>> and if I don't do that, compiler will pass it but the program will
crash
<br>> at "xyz->SetNumberOfTuples(x);" , so is there any way to create it.
<br>> Just want to use vtkDataArray in V4.0 instead of vtkScalars
in
<br>> V3.2....
<br>> Thanks!
<br>>
<br>> --
<br>> Song Li
<br>> VRAC(Virtual Reality Application Center),Iowa State University
<br>> Email: lisong@vrac.iastate.edu
<br>> Homepage: <a href="http://www.vrac.iastate.edu/~lisong">http://www.vrac.iastate.edu/~lisong</a>
<br>>
<br>></blockquote>
<pre>--
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: <A HREF="http://www.vrac.iastate.edu/~lisong">http://www.vrac.iastate.edu/~lisong</A></pre>
</html>