<div>On Mon, Aug 23, 2010 at 11:26 PM, Jong Youl Choi &lt;<a href="mailto:jychoi@indiana.edu">jychoi@indiana.edu</a>&gt; wrote:<br>&gt;<br>&gt; Hi all,<br>&gt;<br>&gt; I have tried to change a source (from sphere to cone) in<br>
&gt; vtkProgrammableGlyphFilter with no luck. My code is as follow:<br>&gt;<br>&gt;        vtkProgrammableGlyphFilter *glyph = vtkProgrammableGlyphFilter::New();<br>&gt;        vtkSphereSource *sphere = vtkSphereSource::New();<br>
&gt;        glyph-&gt;SetInput(plot); // plot is vtkPolyData<br>&gt;        glyph-&gt;SetSource(sphere-&gt;GetOutput()); // sphere is vtkSphereSource<br>&gt;        glyph-&gt;SetGlyphMethod(CalcGlyph, glyph);<br>&gt;<br>&gt; And CalcGlyph is defined:<br>
&gt;<br>&gt; void CalcGlyph(void *arg)<br>&gt; {<br>&gt;        vtkProgrammableGlyphFilter *glyph = (vtkProgrammableGlyphFilter*) arg;<br>&gt;        VTK_CREATE(vtkConeSource, cone);<br>&gt;        glyph-&gt;SetSource(cone-&gt;GetOutput());  // Tried to reset the source<br>
&gt;<br>&gt;        double xyz[3];<br>&gt;        glyph-&gt;GetPoint(xyz);<br>&gt;<br>&gt;        cone-&gt;SetCenter(xyz);<br>&gt; }<br>&gt;<br>&gt; Is there any way to replace or change the source initially defined in<br>
&gt; vtkProgrammableGlyphFilter? Thank you for your help in advance.<br>&gt;<br>&gt; Thanks,<br>&gt; Jong<br>&gt;<br>&gt; --<br>&gt; Jong Youl Choi</div><div><br></div><div>I&#39;m not familiar with vtkProgrammableGlyphFilter, but it doesn&#39;t sound like you&#39;re doing anything that vtkGlyph3D can&#39;t do:<div>
<br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ScaleGlyphs">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ScaleGlyphs</a></div><div><br>David</div><br></div>