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

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Sep 16 09:21:44 EDT 2013


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, 庞庆源 <pangqingyuan1991 at gmail.com> 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.
> --
> 庞庆源 <pangqingyuan1991 at gmail.com>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130916/1dee6930/attachment-0001.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/20130916/1dee6930/attachment-0001.png>


More information about the ParaView mailing list