Hi - this might be a simple question but is it possible to get surface normals that are usable in calculator filters from slices?
Normally, for a 3D surface, I can do Extract Surface → Generate Surface Normal → Calculator and Normals_X, Normals_Y, and Normals_Z are available, but when I tried to first take a slice first, and then do the pipeline on the slice, I can’t seem to access normals any more.
Is this the expected behaviour? If so, what would the correct way to extract normals from a closed 2D slice? In my case, I have sliced a wing, so I have a aerofoil section.
I’m running Paraview 5.8.1 and in the state file, I have done slice, generate surface normals, and opened a calculator to check if there are any normals. In my case, they are not present under the Vectors dropdown.
Thanks for the hint - I downloaded the 5.9.1 binary for testing and I can confirm that using the .exo, the normals are present in the Calculator filter after calling Generate Surface Normals on a Slice, but not the .vtu geometry I had attached in the above post.
Would you be able to confirm if you are also unable to extract the normals on the .vtu geometry?
@mwestphal@cory.quammen Hi guys. This dataset, a vtu file (Unstructured Grid) doesn’t let us run the Generate Surface Normals filter. Any idea why? Shouldn’t it just natively run? The dataset is a 3d surface unstructured grid.
Hey Tim. The issue is that the dataset isn’t compatible with the input needs of the Generate Surface Normals filter. Run the Extract Surface filter on it (converting from Unstructured to Polygonal mesh), THEN the Generate Surface Normals filter.
I just experimented with clip instead of slice. If I set a very thin box clip, then I can extract surface normals but would this be a bad approach in terms of memory?
For example if I create several hundred cuts along the wing to integrate the pressures on each sectional cut, (since my end goal is to integrate each section), would this be better done with many slices or many very slim box clips?
To stay on thread - what makes slice behave differently from clip? Thanks.
Hi Walter - sorry, I don’t think I understood you (or I explained the target poorly). My goal is to get slices so that I can see the local cross-sectional pressures. Then would like to integrate each 2D slice for a local lift coefficient, so that I can produce a plot like this:
Fantastic, that solved the issue. Thanks for your help Walter & Mathieu! So the solutions is to extract the surface and get the normals before slicing.
How come for a clip, we can still get the normals after clipping? Is this because slices loose surface information as they are ‘infinitely thin’? Thanks for your help.