[Paraview] vtkDoubleArray with >3 components

Cory Quammen cory.quammen at kitware.com
Thu Jul 16 14:41:13 EDT 2015


Hi Bruce,

I have attached a ParaView state file with a Programmable Source that
produces a vtkPolyData with 100 random points and a point data array with 9
components. It seems to display the various component ranges just fine.

Best,
Cory

On Thu, Jul 16, 2015 at 11:14 AM, Cory Quammen <cory.quammen at kitware.com>
wrote:

> Hi Bruce,
>
> I haven't seen this, but ParaView may be interpreting this array as a
> tensor field. Do you have a smallish test data file that you can share that
> shows the problem?
>
> Thanks,
> Cory
>
> On Sat, Jul 11, 2015 at 11:14 AM, Bruce Jones <bruce.david.jones at gmail.com
> > wrote:
>
>> I am creating vtkDoubleArrays based on averaging some input data to a
>> reduced set of points. The input data includes various vtk arrays which
>> have 1, 3 and 9 components.
>>
>> After averaging, I am writing the data to c++ arrays, and creating a new
>> vtkDoubleArray using the SetArray() function to pass the c++ arrays. This
>> works fine for 1 and 3 component arrays, however for the 9 component arrays
>> paraview shows that every element is set to 0.
>>
>> If I hardcode it so that 9 component arrays become 3 component arrays
>> (reading only the first 3 components from the input array), then I get the
>> correct data for the first 3 components, though I obviously need the other
>> 6 components in the end.
>>
>> Has anyone encountered this before?
>>
>> Cheers,
>> Bruce
>>
>> _______________________________________________
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>



-- 
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150716/f89adc54/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NoneComponents.pvsm
Type: application/octet-stream
Size: 171587 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150716/f89adc54/attachment-0001.obj>


More information about the ParaView mailing list