[vtkusers] vtkMeshQuality Check, only one quality criteria is displayed at a time.. WHY?
Rakesh Patil
rakeshthp at in.com
Sun Feb 28 23:20:26 EST 2010
Hello,I am implementing the functionality of checking the mesh quality. As suggested by few of the seniors here in the mailing list, this is what i did:I passed the mesh data in the form of vtkUnstructuredGrid to the vtkMeshQuality. Then using the quality data array which we obtain from vtkMeshQuality's output, I use vtkThreshold class to get the elements which do not satisfy the requirement to be a good cell. I am able to successfully represent the bad elements for a single quality parameter. But when i try to represent two quality parameters at the same time then, i can see only the one which is rendered at the end. for example, i have a GUI window where user can select what all quality parameter he wants to be displayed. Like, if user selects Minimum angle and maximum angle, both, then, all the elements that do not satisfy both criteria will be highlighted. In my case, I am selecting both min and max angle criteria and first I am highlighting bad element as for min angle a
nd next I am highlighting max angle criteria. Now suppose, for min angle criteria, there are 10 bad cells. and for max angle criteria, there are only 2 bad cells, and these 2 cells are common in both criteria. SO i should get total 10 bad cell.. But in my case it is displaying only 2 bad cell for max angle quality. If i change the order of rendering then i see only 10 bad cells for min angle. So what do i have to do to see both the quality criteria bad elements.??ThanksRegardsRakesh PatilDear vtkusers ! Get Yourself a cool, short @in.com Email ID now!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100301/ef6e53f0/attachment.htm>
More information about the vtkusers
mailing list