[vtkusers] How to find the volume enclosed between two opensurfaces ???? Please Help !!!!!!!!
Andrew Maclean
a.maclean at cas.edu.au
Thu Nov 17 23:35:32 EST 2005
I would convert to a structured grid and then calculate the volume of each
cuboid.
_____
From: Deepak Roy [mailto:cdeepakroy at yahoo.com]
Sent: Thursday, 17 November 2005 10:45
To: vtkusers at vtk.org
Subject: [vtkusers] How to find the volume enclosed between two opensurfaces
???? Please Help !!!!!!!!
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 ?
For example, consider two open surfaces
1. a hemisphere
2. a square shaped plane sheet.
Now if i place the hemispherical surface on the plane sheet with the plane
sheet acting as a base for the hemispherical surface.
Now we have a hemispherical volume enclosed between the two surfaces.
The question is how can i find this volume in VTK ?
I have an idea to do this in opengl:
1. 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.
2. I will then render the hemipsherical surface to the offscreen buffer
and read the depth values again.
3. Then the difference between these two depth maps gives the volume
enclosed between the two surfaces.
I did not find features in VTK to do this.....
Does anyone know a better way to calculate the volume than this ?
Please help !!!!!!
Thanks in advance !!!!
Regards,
Deepak Roy
_____
Yahoo!
<http://us.lrd.yahoo.com/_ylc=X3oDMTFqODRtdXQ4BF9TAzMyOTc1MDIEX3MDOTY2ODgxNj
kEcG9zAzEEc2VjA21haWwtZm9vdGVyBHNsawNmYw--/SIG=110oav78o/**http%3a/farechase
.yahoo.com/> FareChase - Search multiple travel sites in one click.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20051118/fd053379/attachment.htm>
More information about the vtkusers
mailing list