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

Magician f_magician at mac.com
Wed Jan 15 08:19:11 EST 2014


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.org wrote:

> 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