<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> vtkFloatArray *arr = vtkFloatArray::New();<br> arr->SetNumberOfTuples(dimension);<br> arr->SetNumberOfComponents(9);<br> //feed the tensor data into arr <br><br> vtkStructuredPoints *sp = vtkStructuredPoints::New();<br> sp->GetPointData()->SetTensors(arr);<br> sp->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>