[vtkusers] how to use vtkMeshQuality..??

John Platt jcplatt at dsl.pipex.com
Wed Feb 24 04:21:56 EST 2010


Hi,

The per-cell quality is added to the mesh's cell data in an array named 
"Quality" and set as the active scalars.
You can now use vtkThreshold to select only those cells which "fail" the 
quality measure...

selectCells = vtkThreshold::New();
selectCells->ThresholdByLower( 20);
selectCells->SetInputArrayToProcess( 0, 0, 0, 
vtkDataObject::FIELD_ASSOCIATION_CELLS,
vtkDataSetAttributes::SCALARS );

HTH

John.

----- Original Message ----- 
From: Rakesh Patil
To: David Doria
Cc: vtkusers
Sent: Wednesday, February 24, 2010 4:53 AM
Subject: Re: [vtkusers] how to use vtkMeshQuality..??





Hi..

I have gone through that example. And it is quite easy to follow. Anyways, 
this is what i want to achieve:

I have a Finite Elemental Mesh generated by one of the solver. Now, i want 
to check the quality of mesh, cell wise.
And if a particular cell doesn't satisfy the quality condition, then i have 
to indicate that cell as unqualified cell.

For example, suppose i impose a condition on min angle as 20. i.e. all the 
cells in the mesh must have angles greater than or equal to 20. If it is 
less than 20, then that particular cell must be displayed with say red color 
or any other color.

In vtkMeshQuality, I didnt find any function or method where i can set this 
min angle value. I think, it has a default in built value set for min angle. 
I also found out that vtkMeshQuality makes use of VERDICT api.. But got no 
clue how to put the condition on the minimum angle..

Any idea how to get through this problem..??

Tha nks

Regards
---------- Original message ----------
From:David Doria< daviddoria+vtk at gmail.com >
Date: 23 Feb 10 19:18:28
Subject: Re: [vtkusers] how to use vtkMeshQuality..??
To: rakeshthp at in.com


On Tue, Feb 23, 2010 at 7:05 AM, Rakesh Patil <rakeshthp at in.com> wrote:

Hello,

Can anyone explain me what exactly the vtkMeshQuality does.??

According to me, it checks the quality of each and every cells.. Right.?? 
but the output what am getting is very strange.

If the number of cells in the grid is say 'n'. then the values, what i get 
is first n/2 only, for rest n/2 cells, i get 0 values.

What is the actual output of vtkMeshQuality??

Thanks

Regards
Rakesh Patil




Have you looked at this:
http://www.vtk.org/Wiki/VTK/Examples/MeshQuality


Let us know if it doesn't clear some things up.

Thanks,


David



Get Yourself a cool, short @in.com Email ID now!



_______________________________________________
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 





More information about the vtkusers mailing list