[vtkusers] vtkTensorGlyph input

YaoHaofeng hfyao1983 at hotmail.com
Sat Mar 10 09:26:17 EST 2007


Hi, I have an array storing all the tensor values at each point in the image that I want to visualize, and i do:    vtkFloatArray *arr = vtkFloatArray::New();    arr->SetNumberOfTuples(dimension);    arr->SetNumberOfComponents(9);    //feed the tensor data into arr        vtkStructuredPoints *sp = vtkStructuredPoints::New();    sp->GetPointData()->SetTensors(arr);    sp->SetNumberOfScalarComponents(9);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?thankshank 
_________________________________________________________________
通过 Live.com 查看资讯、娱乐信息和您关心的其他信息!
http://www.live.com/getstarted.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070310/45e20ca8/attachment.htm>


More information about the vtkusers mailing list