<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 9pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><div style="text-align: left;"><br>
                
                
<div id="MessageBodyText" class="ExternalClass"><meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<style>
ExternalClass P
{padding:0px;}
ExternalClass
{font-size:9pt;font-family:Tahoma;}
</style>
<div style="text-align: left;">Hi, I am using vtkTensorGlyph to
visualize my tensor data, but I don't know what kind of data should I
input, currently I have a vtkStructuredPoint, with tensor:<br> vtkStructuredPoints *sp = vtkStructuredPoints::New();<br> sp->GetPointData()->SetScalars(fa); //an scalar index array<br> sp->GetPointData()->SetTensors(tensors);<br><br>tensors is a vtkFloatArray with 9 components storing the tensor data in 9 directions<br><br>vtkTensorGlyph * glyph = vtkTensorGlyph::New();<br> glyph->SymmetricOn();<br> glyph->ColorGlyphsOn();<br> glyph->ClampScalingOn();<br> glyph->ThreeGlyphsOn();<br> glyph->SetInput(sp);<br> glyph->SetSourceConnection (sphere->GetOutputPort());<br> glyph->ScalingOn();<br> glyph->SetColorModeToEigenvalues ();<br> glyph->SetScaleFactor(0.3);<br><br>is it the right way to use it? and how can I color the glyphs by eigenvalues, what data should i input?<br><br>thanks<br><br>hank </div></div></div><br /><hr />通过 Live.com 查看资讯、娱乐信息和您关心的其他信息! <a href='http://www.live.com/getstarted.aspx ' target='_new'>立即尝试!</a></body>
</html>