[vtkusers] Associating scalar values with points

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Sep 28 16:16:33 EDT 2004


Willie,

#include "vtkPointData.h"

http://vtk.org/Wiki/VTK_FAQ#Forward_declaration_in_VTK_4.x

HTH
Mathieu


Willie Johnson wrote:
> 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 
> _______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 






More information about the vtkusers mailing list