<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">Hello, me
again.<br>
<br>
This time I'm facing trouble visualizing glyphs on my structured grid.<br>
Suppose I have done it right there is some vector data:<br>
<br>
<font face="Courier New, Courier, monospace">vtkFloatArray *v2 =
vtkFloatArray::New();<br>
v2->SetNumberOfComponents(3);<br>
for (unsigned i = 0; i < noCells; i++){<br>
v2->InsertNextTuple3(i,i,i);<br>
}</font><br>
<br>
assigned to the structured grid cell centers:<br>
<br>
<font face="Courier New, Courier, monospace">sGrid->GetCellData()->SetVectors(v2);</font><br>
<br>
Now creating some glyphs<br>
<br>
<font face="Courier New, Courier, monospace">vtkConeSource *cone =
vtkConeSource::New();<br>
cone->SetResolution(6);</font><br>
<br>
<font face="Courier New, Courier, monospace">vtkGlyph3D *glyph =
vtkGlyph3D::New();<br>
glyph->SetInput(</font><font color="#ff6666"
face="Courier New, Courier, monospace"><b>sGrid</b></font><font
face="Courier New, Courier, monospace">);<br>
glyph->SetSourceConnection(cone->GetOutputPort());<br>
glyph->SetVectorModeToUseNormal();<br>
glyph->SetScaleModeToScaleByVector();<br>
glyph->SetScaleFactor(0.25);</font><br>
<br>
</font></font><font size="-1"><font face="Helvetica, Arial, sans-serif">
results in some arrows located at the structured grid points (sGrid)
instead of the cell centers.<br>
</font></font>
<ul>
<li><font size="-1"><font face="Helvetica, Arial, sans-serif">So how
do I give vtkGlyph3D the cell centers of the structured grid as input?</font></font></li>
<li><font size="-1"><font face="Helvetica, Arial, sans-serif">And how
does the gylph filter know it should represent the vector data?!</font></font></li>
</ul>
<font size="-1"><font face="Helvetica, Arial, sans-serif">Sebastian</font></font><br>
</body>
</html>