[vtkusers] How to extract area of (triangle) Cells?

Bryn Lloyd blloyd at vision.ee.ethz.ch
Thu Dec 17 11:14:04 EST 2009


David,

Not sure, but it works in paraview doesn't it?

1. Maybe inverted triangles (there was an issue in the past with 
inverted tets).

2. Maybe you don't have triangles, but strips?

/Bryn




David Doria wrote:
> On Thu, Dec 17, 2009 at 2:32 AM, Bryn Lloyd <blloyd at vision.ee.ethz.ch> wrote:
>> Another way to compute the area is via vtkMeshQuality.
>>
>> First pass the mesh through this filter, compute the area for all triangles
>> (SetTriangleQualityMeasureToArea()), and the obtain the values from the
>> vtkCellData in the output.
>>
>> Cheers
>> Bryn
> 
> Bryn,
> 
> I tried that:
> http://www.vtk.org/Wiki/VTK/Examples/Mesh_Quality
> 
> But the values in the "Quality" array are all 0. Any thoughts?
> 
> Thanks,
> 
> David
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 


-- 
-------------------------------------------------
Bryn Lloyd
Computer Vision Laboratory
ETH Zürich, Sternwartstrasse 7, ETF C110
CH - 8092 Zürich, Switzerland
Tel: +41 44 63 26668
Fax: +41 44 63 21199
-------------------------------------------------



More information about the vtkusers mailing list