It's not obvious what could be going wrong given the code snippet. Can you
post the full code?

Thanks
Utkarsh


On Fri, Sep 13, 2013 at 10:20 PM, 庞庆源 <[email protected]> wrote:

> 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]>
>
> _______________________________________________
> 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
>
>

<<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