<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;">Hi, I have an array storing all the tensor values at each point in the image that I want to visualize, and i do:<br><br>&nbsp;&nbsp;&nbsp; vtkFloatArray *arr = vtkFloatArray::New();<br>&nbsp;&nbsp;&nbsp; arr-&gt;SetNumberOfTuples(dimension);<br>&nbsp;&nbsp;&nbsp; arr-&gt;SetNumberOfComponents(9);<br>&nbsp;&nbsp;&nbsp; //feed the tensor data into arr &nbsp;  <br><br>&nbsp;&nbsp;&nbsp; vtkStructuredPoints *sp = vtkStructuredPoints::New();<br>&nbsp;&nbsp;&nbsp; sp-&gt;GetPointData()-&gt;SetTensors(arr);<br>&nbsp;&nbsp;&nbsp; sp-&gt;SetNumberOfScalarComponents(9);<br><br>then feed the sp into vtkTensorGlyph, but it does not give me what i want, is it the correct way to do it? or i should feed the eigenvalues and eigenvectors into the structuredPoints?<br><br>thanks<br><br>hank <br></div><br /><hr />通过 Windows Live Spaces 与朋友轻松共享您的生活。 <a href='http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=zh-cn' target='_new'>立即尝试!</a></body>
</html>