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.
-- 
庞庆源 <[email protected]>

<<myreader5.png>>

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to