<HTML>
<HEAD>
<TITLE>Re: [Paraview] Measurement of area</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Your problem is a bit ill defined. What happens when a polygon has some points that are 0 and other points that are 1? Do you include the entire polygon, throw away the polygon, or include some fraction of it?<BR>
<BR>
Regardless, I think the easiest way to solve the problem is to first remove the part of the mesh that does not include the desired feature/points. Once you do that you can run the Integrate Attributes filter to get the resulting area.<BR>
<BR>
To remove polygons not in class 0, use the threshold filter with the upper threshold set to something lower than 1. If you want to clip the polygons to use some fraction of polygons containing both class 0 and class 1 points, use the clip filter, set the Clip Type to Scalar, set the Value to something between 0 and 1, and enable Inside Out.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 2/2/11 8:19 AM, "<a href="mariagrazia.madaschi@libero.it">mariagrazia.madaschi@libero.it</a>" <<a href="mariagrazia.madaschi@libero.it">mariagrazia.madaschi@libero.it</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I need to determine the value of the area of a surface.<BR>
<BR>
I generated a .vtp surface with a python code. With python a created an array<BR>
which associates id 0 to points with particular features and 1 to all the other<BR>
points.<BR>
When I open the .vtp file with Paraview I display surface according to the<BR>
array (0/1).<BR>
I need to extract from the surface the value of the area formed by points with<BR>
id 0.<BR>
<BR>
Is there any way to do that?<BR>
<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>