[vtkusers] Size of a surface

Clemens Müthing clemens.muething at uni-konstanz.de
Tue Jun 19 03:20:52 EDT 2012


Hey Jana,

thanks, that's exactly what I was looking for.

Clemens


On Mon, 18 Jun 2012 18:57:04 +0200, Jana Sefcikova <neollie at gmail.com>  
wrote:

> 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
>>
>>



More information about the vtkusers mailing list