Search code examples
surfaceparaview

Paraview: Calculate the surfae area of a3D object


I want to calculate the surface area of a 3D body (binarized: 1=inside, 0=outside so it's "voxelated") using Paraview. I found the filter "integrate variable" that gives me a value and it's reasonable. But I want to know what's the algorithm implemented into Paraview to compute it! It's an open-source software so everything should be open but I cannot find the reference. Any idea?


Solution

  • Pretty simple: this filter computes the area of each polygon and sums them up. There are quite a few types of polygons supported, so the details of computing the area of each vary. Please consult http://www.paraview.org/gitweb?p=ParaView.git;a=blob;f=ParaViewCore/VTKExtensions/Default/vtkIntegrateAttributes.cxx;h=352155009780b7a45d5b4c00a75178de0f724675;hb=HEAD for details.