[vtkusers] Associating scalar values with points

Willie Johnson wej1 at yahoo.com
Tue Sep 28 16:02:33 EDT 2004


Thanks for a quick response.  Actually, I had already
tried this, but I get a message saying that
SetScalars() is undeclared.  Any suggestions?

> Assuming you've read in your point data into a
> vtkPolyData object, or some 
> other vtkDataSet you can use
> vtkDataSet->GetPointData()->SetScalars().  And 
> pass your vtkFloatArray to SetScalars.
> 
> 
> Quoting Willie Johnson <wej1 at yahoo.com>:
> 
> > I have a list of points and would like to
> associate a scalar value with each
> > of them so that I can scale my 3D glyphs according
> to the scalars.  How
> > should I associate the scalar values with the
> points?  The scalar values are
> > currently being stored in a vtkFloatArray.  I am
> using C++ with VTK 4.2.
> >  
> > So far I haven't come up with anything helpful in
> my searches.
> >  
> > Thanks in advance for the help.
> > 
> > 		
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail Address AutoComplete - You start. We
> finish.
> 
> 
> 




		
__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo 



More information about the vtkusers mailing list