<DIV id=RTEContent>I have two open surfaces in the form of vtkPolyData. I want to find the volume enclosed between them. Does anyone know how to do this ?</DIV> <DIV> </DIV> <DIV>For example, consider two open surfaces </DIV> <DIV> </DIV> <DIV>1. a hemisphere</DIV> <DIV> </DIV> <DIV>2. a square shaped plane sheet.</DIV> <DIV> </DIV> <DIV> </DIV> <DIV>Now if i place the hemispherical surface on the plane sheet with the plane sheet acting as a base for the hemispherical surface.</DIV> <DIV> </DIV> <DIV>Now we have a hemispherical volume enclosed between the two surfaces. </DIV> <DIV> </DIV> <DIV>The question is how can i find this volume in VTK ?</DIV> <DIV> </DIV> <DIV>I have an idea to do this in opengl:</DIV> <DIV> </DIV> <OL> <LI>I will first render the plane sheet to an offscreen buffer. Then i will read the z-values or the in other words the depth values from the z-buffer.</LI> <LI>I will then render the
hemipsherical surface to the offscreen buffer and read the depth values again.</LI> <LI>Then the difference between these two depth maps gives the volume enclosed between the two surfaces.</LI></OL> <div>I did not find features in VTK to do this.....</div> <div> </div> <div>Does anyone know a better way to calculate the volume than this ?</div> <div> </div> <div>Please help !!!!!!</div> <div> </div> <div>Thanks in advance !!!!</div> <div> </div> <div>Regards,</div> <div> </div> <div>Deepak Roy</div> <div> </div> <div> </div> <div> </div> <div> </div> <div> </div> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV><p>
                <hr size=1> <a href="http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNjkEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a//farechase.yahoo.com/">Yahoo! FareChase - Search multiple travel sites in one click.</a>