<P>Hello,</P>
<P>I need your help ! I would to use VTK for plotting two different glyphs (glyph1 and glyph2) on a geometry.<BR>I have created a vtk data set that have a vector and a scalar attribute data.<BR>I want to represent the geometry with the glyph1 on nodes that have a negative scalar value, and glyph2 on nodes that have a positive scalar value.<BR>My glyphs will be oriented along the input vectors, and will be scaled and colored according to scalar data.</P>
<P>I have tried to use a table of glyphs in my code but the result is not what I want.<BR>I don't know how to obtain the good index in my table of glyphs.</P>
<P>vtkFieldDataToAttributeDataFilter vdata0<BR> vdata0 SetInput [toto GetOutput]<BR> vdata0 SetInputFieldToPointDataField<BR> vdata0 SetOutputAttributeDataToPointData<BR> vdata0 SetVectorComponent 0 $data 0<BR> vdata0 SetVectorComponent 1 $data 1 <BR> vdata0 SetVectorComponent 2 $data 2<BR> vdata0 SetScalarComponent 0 $data 3 <BR> vdata0 Update</P>
<P>vtkGlyph3D glyph0<BR> glyph0 SetInput [vdata0 GetOutput]<BR> glyph0 SetNumberOfSources 2<BR> glyph0 SetSource 0 [Glyph1 GetOutput]<BR> glyph0 SetSource 1 [Glyph2 GetOutput]<BR> glyph0 SetIndexModeToScalar<BR> glyph0 ScalingOn<BR> glyph0 SetScaleModeToScaleByScalar<BR> glyph0 SetColorModeToColorByScalar<BR> glyph0 SetVectorModeToUseVector<BR> glyph0 OrientOn</P>
<P>....</P>
<P>Is it possible to do what I want ?</P>
<P>Can anybody help me or send me an example ?<BR>Thanks for help !</P>
<P>Aude</P><BR>------------------------------------------<BR><BR>Faites un voeu et puis Voila ! www.voila.fr <BR><BR>