[Paraview] AppendAttributes issue

Andy Bauer andy.bauer at kitware.com
Thu Apr 5 15:07:49 EDT 2018


The problem is that PV is looping through your points in a different order
for the unstructured grid as you do for the image data.

What you can do is use the Programmable Filter to "fix" this looping
mismatch. Attached is a pvsm which include a Programmable Filter to do that
flip. Note that I had to manually specify the image data extents (637 and
511) in the Python indexing part so if you have a different dimensioned
data set you'll have to edit that to match your specific case.

Best,
Andy

On Thu, Apr 5, 2018 at 2:37 PM, Christian Adrián Álvarez Báez <
christian.alvarez813 at gmail.com> wrote:

> Sorry, my bad. Here goes the right state file.
>
> On Wed, Apr 4, 2018 at 1:31 PM, Christian Adrián Álvarez Báez <
> christian.alvarez813 at gmail.com> wrote:
>
>> Sorry, my bad. Here goes the right state file.
>>
>>
>>
>> On Wed, Apr 4, 2018 at 12:48 PM, Andy Bauer <andy.bauer at kitware.com>
>> wrote:
>>
>>> It looks like you forgot several files that are needed for the state
>>> file.
>>>
>>> On Wed, Apr 4, 2018 at 1:30 PM, Christian Adrián Álvarez Báez <
>>> christian.alvarez813 at gmail.com> wrote:
>>>
>>>> Sure, here they go.​
>>>>  BAJACOLORMAP.inp
>>>> <https://drive.google.com/file/d/1p_NBUMRqxhBoNs2W0moly_Bk7B-JfqFt/view?usp=drive_web>
>>>> ​I'm using Global Mapper to get the data, so I export the inp and dem
>>>> with the same boundaries. But I'm pretty new on paraview, so I'm not pretty
>>>> sure of how to see if the vtkImageData has any problem.
>>>>
>>>> Thanks for your quick response!
>>>>
>>>>
>>>>
>>>>
>>>> On Wed, Apr 4, 2018 at 12:18 PM, Andy Bauer <andy.bauer at kitware.com>
>>>> wrote:
>>>>
>>>>> Any chance you could share the datasets and maybe a state file so that
>>>>> I could try to reproduce your issue?
>>>>>
>>>>> I can't think of anything off the top of my head that would case this.
>>>>>
>>>>> On Wed, Apr 4, 2018 at 1:13 PM, Christian Adrián Álvarez Báez <
>>>>> christian.alvarez813 at gmail.com> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I have an UCD (ASCII) and a DEM, I would like to color the UCD by
>>>>>> elevation (since the UCD alone just can be color by Material ID, which has
>>>>>> nothing to do with elevation). For this I got a DEM with the exactly same
>>>>>> array than the UCD. I apply AppendAtributes to both and I can color now
>>>>>> with elevation. The problem is that the elevation color is upside down. I
>>>>>> attached a picture to make sense.
>>>>>>
>>>>>> Thank you very much for your attention. I hope you could help me.
>>>>>> Christian
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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:
>>>>>> https://public.kitware.com/mailman/listinfo/paraview
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180405/f871f322/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AppendAttributesFixed.pvsm
Type: application/octet-stream
Size: 644972 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/paraview/attachments/20180405/f871f322/attachment-0001.obj>


More information about the ParaView mailing list