<div dir="ltr"><div><br></div><div>So the idea is to use one of the static function of vtkMeshQuality such as vtkMeshQuality::HexVolume(vtlCell*) for hexahedra cell. Very neat. </div><div><br></div><div>For more complex cell types I should first decomposed the cell into cell types to be passed to the static function of vtkMeshQuality.</div>
<div><br></div><div>Many thanks,</div><div>Alex</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 21, 2013 at 11:00 AM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Alex,<br>
<div><br>
> Does vtk provides an easy way of computing the volume of a vtkCell3D. I have a vtkStructuredGrid (made of hexahedron) and I would like to retrieve the volume of any cell within that grid. How would I proceed?<br>
<br>
</div>The vtkMeshQuality filter computes the volume of hexahedra and tetrahedra using the Verdict library (which is packaged with the VTK source code). The Verdict library contains methods for computing the volumes of other cell types.<br>
<span><font color="#888888"><br>
David<br>
<br>
</font></span></blockquote></div><br></div></div>