[vtkusers] Computing volume of a triangulated polydata model

Secolas UA secolasua at gmail.com
Mon Mar 5 06:54:52 EST 2007


Hello!

Anyone knows how can I get the volume of a triangulated data model?
I tried something like this

...
vtkMassProperties *mass = vtkMassProperties::New();
mass->SetInput(polyData);
mass->Update();
volumeTot=mass->GetVolume();
...

But the value its not correct... Anyone has any ideas?

Best Regards
Ricardo Seco
University of Aveiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070305/5dfe0425/attachment.htm>


More information about the vtkusers mailing list