[Paraview] pointScalars->InsertTuple1(myId,velocity); got very large data range.

庞庆源 pangqingyuan1991 at gmail.com
Fri Sep 13 22:20:45 EDT 2013


I use such code:
//////////////////////////////////////////////////////////
vtkFloatArray *pointScalars = vtkFloatArray::New();
pointScalars->setName("Velocity");
while(...){
...
...

pointScalars->InsertTuple1(myId,velocity);

}

output->GetPointData()->SetScalars(pointScalars);


//////////////////////////////////////////////////////////


I am sure the range of velocity is -7.0 to 7.0 .But when I load the plugin
into paraview and read a sample file,the information panel shows very large
range.
[image: 内嵌图片 1]
I can hardly understand the result.
-- 
庞庆源 <pangqingyuan1991 at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130914/2874bef5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 13450 bytes
Desc: not available
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130914/2874bef5/attachment.png>


More information about the ParaView mailing list