[vtkusers] python - volume/surface area calculations

Alyassin, Abdalmajeid M (CRD) alyassin at crd.ge.com
Mon Mar 4 09:58:13 EST 2002


For calculating the surface area you should be ok (I have used it in tcl/tk with no problems).
However, for measuring the volume you need to make sure the surface is closed otherwise you may under
or over estimate the volume.

Hope this helps.
Abdalmajeid Alyassin


-----Original Message-----
From: rod holland [mailto:rhh at StructureLABS.com]
Sent: Sunday, March 03, 2002 11:29 AM
To: vtkusers at public.kitware.com
Subject: [vtkusers] python - volume/surface area calculations


Can someone give me a tip on how to take a polygon data set - say like
spleen.color.vtk and do surface area and volume calculations on the data
set.  I am working in python (idle / mayavi) and have tried various
approaches using vtkTriangleFilter and vtkMassProperties but I have not
been succesful.  Is there a code fragment somewhere that can point the way?

Thanks,

Rod
_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers



More information about the vtkusers mailing list