<P>
Hi,<BR>
thanks for reading.<BR>
<BR>
I have something like this.<BR>
<BR>
An unstructured grid of points. The unstructured grid has two arrays.<BR>
<BR>
I want to set glyphs for the points.<BR>
The size of the glyph must ceom from the array 2 and the colour of the glyph must come from the array 1.<BR>
<BR>
The code fragments are as follows.<BR>
//m_unstructuredgrid is vtkUnstructuredGrid object<BR>
m_unstructuredgrid->GetPointData()->AddArray(GlyphColourArray);<BR>
m_unstructuredgrid->GetPointData()->AddArray(GlyphSizeArray);<BR>
<BR>
m_glyph3D->SetInput(m_unstructuredgrid);<BR>
//m_spheresource is vtkSphereSource object<BR>
m_glyph3D->SetSource(m_spheresource->GetOutput());<BR>
m_glyph3D->SetScaleModeToScaleByScalar();<BR>
<BR>
m_glyphmapper->SetInput(m_glyph3D->GetOutput());<BR>
<BR>
m_glyphactor->SetMapper(m_glyphmapper);<BR>
<BR>
The question is how to tell VTK to use GlyphColourArray for the glyph colours and GlyphSizeArray for the glyph sizes?<BR>
<BR>
Thank you,<BR>
david michell<BR>
</P>
<br><br>
<A target="_blank" HREF="http://clients.rediff.com/signature/track_sig.asp"><IMG SRC="http://ads.rediff.com/RealMedia/ads/adstream_nx.cgi/www.rediffmail.com/inbox.htm@Bottom" BORDER=0 VSPACE=0 HSPACE=0 HEIGHT=74 WIDTH=496></a>