[vtkusers] declaring array of vtkCubeSources in c++?

Glen.Coates at csiro.au Glen.Coates at csiro.au
Mon Jan 27 20:16:53 EST 2003


On Mon, 27 Jan 2003, Galen Wilkerson wrote:

>   vtkCubeSource cube[20];

You need to change this to:

vtkCubeSource *cube[20];

See, each element of the array is a vtkCubeSource pointer, not a 
vtkCubeSource object.  I expect you are getting type errors from the 
compiler ...

-- 
Cheers,
Glen




More information about the vtkusers mailing list