[vtkusers] Size of a surface

Jana Sefcikova neollie at gmail.com
Mon Jun 18 12:21:47 EDT 2012


Hi Clemens,

for sphere created by vtkSphereSource you could deduct surface area
analytically by 4*PI*(R^2) where R = vtkSphereSource::GetRadius .

For generic surface you can iterate over its cells and sum cells area if
cell type supports ComputeArea method. For example if cell is triangle type
you can use vtkTriangle::ComputeArea (Example:
TriangleArea<http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TriangleArea>)
.

Perhaps there are also other methods.

Jana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120618/7664200b/attachment.htm>


More information about the vtkusers mailing list