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

Galen Wilkerson galen at compbio.washington.edu
Tue Jan 28 00:56:26 EST 2003


Yeah, I was being silly, which of course I realized after my email.

thanks for your help,
Galen

On Tue, 28 Jan 2003 Glen.Coates at csiro.au wrote:

> 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
> 

-Galen

Computational Biology Research Group
http://compbio.washington.edu/
phone: 206 732 6127
fax: 206 732 6055




More information about the vtkusers mailing list