[Paraview] Calculating Surface area

Adriano Gagliardi agagliardi at ara.co.uk
Thu Apr 14 04:35:18 EDT 2011


I'm pretty sure you can use a Python programmable filter to do this. If you
check the doxygen for vtkTriangle, there should be a member function that
returns the area of a specific triangle. Otherwise, the area of a triangle
is calculated as follows:

//     2
//    / \    v1 = (pt1-pt0)
//   /   \   v2 = (pt2-pt0)
//  0-----1  area = 0.5*mag( v1 x v2 )

You can write a quick script that does this for each face.

If I get time later today, I can supply a script as well.

Cheers,

Adriano

===================================

Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk 
-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
On Behalf Of Ivo Roghair
Sent: 14 April 2011 08:29
To: Anowarul Islam
Cc: paraview at paraview.org
Subject: Re: [Paraview] Calculating Surface area

Perhaps you could try the Mesh Quality filter on the Delauny2D you created,
then the Cell Data To Point Data, finally the Integrate Variables (look for
the 'Quality' as the result of this function).

2011/4/12 Anowarul Islam <anwar0165 at gmail.com>:
> Hello,
>
> I have created a surface using the delaunay2d filters.After creating 
> the surface I use smooth filter for surface smoothing.Now I want to 
> find the surface area created by paraview.How can it be possible?I am 
> trying to use the integrate variables but I am not sure about this 
> filter because when I select this filter paraview crashes.Or is there 
> any way I can get the area of the triangles of my delauny 
> filters?Cause if I go to the delaunay filter and change table 
> attribute to cell it shows the cell ID and highlights only that 
> triangle in the model but it doesn't show the area of the triangle.I am
pretty new in paraview.Could you please help?
>
> Anwar
>
>
> _______________________________________________
> 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
>
>
_______________________________________________
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


**********************************************************************
This email contains information that is private and confidential and is intended only for the addressee.
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245

**********************************************************************


More information about the ParaView mailing list