[Paraview] normals in programmable filter
Kathleen Schwarz
kas382 at cornell.edu
Tue Jun 26 14:35:21 EDT 2012
Thanks Andy. However, in the information tab, I see the data array called
"normals" after I apply the programmable filter. The array is there (and
from the spreadsheet view I know that it is identical to the case where I
copy the array) but the resulting surface does not use the array! Instead
of a smooth surface, I get a bumpy surface computed without normals.
Best,
-Katie
On Tue, Jun 26, 2012 at 2:16 PM, Andy Bauer <andy.bauer at kitware.com> wrote:
> Hi Katie,
>
> I'm guessing you're looking at the arrays that are available to
> pseudo-color with in the GUI. Those normals usually aren't in the filter
> output data set. To see what arrays are available, look under the
> information tab. To create those arrays for polydata (possibly using the
> extract surface filter) and then use the generate surface normals filter.
>
> Andy
>
> On Tue, Jun 26, 2012 at 2:09 PM, Kathleen Schwarz <kas382 at cornell.edu>wrote:
>
>> Hello,
>> I am trying to transform a surface using a programmable filter, and I am
>> unable to get the output to use the normals. Even the most basic filter:
>>
>> output.PointData.append(inputs[0].PointData['Normals'], 'Normals')
>>
>> results in the mesh being copied but the normals not being used. The
>> normals appear as a Data Array, but are not used in rendering. However,
>> using the copy arrays option in the properties of the programmable filter
>> lead to the normals being used correctly.
>>
>> What I would like to do is to apply an affine transformation on the point
>> positions and normals (and visualize contours of a scalar field on a
>> uniform, nonorthogonal parallelepiped grid), so I can't just use the copy
>> arrays option.
>>
>> Thanks in advance!
>> -Katie
>>
>> _______________________________________________
>> 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/20120626/97cba3a1/attachment.htm>
More information about the ParaView
mailing list