[vtkusers] Size of a surface

Jana Sefcikova neollie at gmail.com
Mon Jun 18 12:57:04 EDT 2012


There is also vtkMassProperties filter for triangular mesh that does it by
presetting vtkMassProperties::GetSurfaceArea<http://www.vtk.org/doc/nightly/html/classvtkMassProperties.html#a02ff978e03cdb233de1851e7d011917b>
.

Jana

On 18 June 2012 18:21, Jana Sefcikova <neollie at gmail.com> wrote:

> 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/c5773c6f/attachment.htm>


More information about the vtkusers mailing list