<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-9">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How could volume of a solid that is constructed 
from unstructured grid be calculated?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Answer:</FONT></DIV>
<DIV><FONT face=Arial size=2>We can use vtkMassProperties and ss you know 
vtkMassProperties gets poly data as input. So before using it we have 
to</FONT></DIV>
<DIV><FONT face=Arial size=2>do some conversions.</FONT></DIV>
<DIV><FONT face=Arial size=2>I use unstructured grids to form a volume with 
Delaunay3D algorithm. After that i set the output of Delaunay 3D to 
input</FONT></DIV>
<DIV><FONT size=2><FONT face=Arial>of vtkGeometryFilter. vtkGeometryFilter 
converts data to poly data. Then i set output of vtkGeometryFilter to input 
of</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>vtkTriangleFilter. Because poly data should be 
triangulated before vtkMassProperties. Then i set output of 
vtkTriangleFilter</FONT></DIV>
<DIV><FONT face=Arial size=2>to input of vtkMassProperties. And GetVolume() 
method of vtkMassProperties gives the calculated volume.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>In a nutshell, </FONT></DIV>
<DIV><FONT face=Arial size=2>unstructured grid -&gt; vtkDelaunay3D -&gt; 
vtkGeometryFilter -&gt; vtkTriangleFilter -&gt; vtkMassProperties -&gt; 
volume.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Hope this helps.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>murat aydin.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BODY></HTML>