[Paraview] How to display normals, INPUT from a VTK file in Paraview ?

Magician f_magician at mac.com
Sat Jan 18 20:51:04 EST 2014


Hi Vincent,


I can't find what is happening.
If you can, please attach sample data to your mail.

I tried displaying normals of Sphere sources,
and succeeded with the 3D Glyph filter.
It's better for you to try simple datasets.


Magician


On Jan 16, 2014, at 23:31, Vincent Leroy <vincent.leroy at innosea.fr> wrote:

> Hi Magician,
> 
> Thank you for your help, i tried Cell Centers filter and then 'Glyph with custom source' filter and it worked ! I can see the normals when I ask for 'points' or 'surface' display. Do you know why I can't plot them with 3D glyph ? I would like to have arrows instead of simple lines.
> 
> 
> Thank you again
> 
>  
> Vincent
> 
>  
> On 2014-01-15 14:19, Magician wrote:
> 
>> Hi Vincent,
>> 
>> 
>> Try Cell Centers filter.
>> Maybe normals are mapped to points (generated at cell centers).
>> Next applying Glyph filter and you may get expected results.
>> 
>> 
>> Magician
>> 
>> 
>> On Jan 15, 2014, at 2:00, 
>> paraview-request at paraview.orgwrote:
>>> Message: 1 Date: Tue, 14 Jan 2014 16:14:53 +0100 From: Vincent Leroy <vincent.leroy at innosea.fr> To: paraview at paraview.org Subject: [Paraview] How to display normals, INPUT from a VTK file in Paraview ? Message-ID: <2b1afa04c2e02ba0e58a24fd83c2f702 at innosea.fr> Content-Type: text/plain; charset="utf-8" Hi, I am a new user of Paraview. I am facing a problem I cannot solve and I have not found any relevant practice on the internet (guide user, mailing, ...)... I want to visualise my mesh with normals specified IN MY VTK FILE (and NOT the Normals Glyphs calculated by the software) (I have these normals calculations in another code and I do not want to change that). I am importing a mesh in Paraview from a VTK file. The VTK file contains the following elements: # vtk DataFile Version 2.0 hydrodynamic vtk mesh for paraview vizu ASCII DATASET POLYDATA POINTS 458 float x0 y0 z0 (points coordinates) ... ... ... ....... POLYGONS 465 2325 4 n1 n2 n3 n4 (points IDs) 4 ... ... ... ... ...... CELL_DATA 465 NORMALS cell_normals float ... ... ... (normals coordinates) A 'cell_normals' array appears in 'Information'; I am able to color the surface (each cell) of the mesh according to the values of the cell_normals array (Magnitude, X, Y or Z) but nothing more. This gives me information on the normals orientation but I have no visual on the vectors. How is it possible de visualise these normals (displayed as vectors) on Paraview without calculating them with the software? What is the correct pratice ? I need to know if they are well oriented, I also need some visual on the mesh I am studying. Thanks a lot, Best regards. -- Vincent



More information about the ParaView mailing list