<br>Well,<br><br>You have hit it right on the target.. :-) thanks... Clarify me one more thing.. <br>What is this vtkDataSetAttributes::SCALARS..?? Coz, my grid is already having one scalar set...<br><br>Thanks<br><blockquote><br>---------- Original message ----------<br>From:"John Platt"&lt; jcplatt@dsl.pipex.com &gt;<br>Date: 24 Feb 10 14:51:56<br>Subject:  Re: [vtkusers] how to use vtkMeshQuality..??<br>To: "Rakesh Patil" <rakeshthp@in.com>,        "David Doria" <daviddoria+vtk@gmail.com><br><br>Hi,<br><br>The per-cell quality is added to the mesh's cell data in an array named <br>"Quality" and set as the active scalars.<br>You can now use vtkThreshold to select only those cells which "fail" the <br>quality measure...<br><br>selectCells = vtkThreshold::New();<br>selectCells-&gt;ThresholdByLower( 20);<br>selectCells-&gt;SetInputArrayToProcess( 0, 0, 0, <br>vtkDataObject::FIELD_ASSOCIATION_CELLS,<br>vtkDataSetAttributes::SCALARS );<br><br>HTH<br><br>John.<br><br>----- Original Mes
 sage ----- <br>From: Rakesh Patil<br>To: David Doria<br>Cc: vtkusers<br>Sent: Wednesday, February 24, 2010 4:53 AM<br>Subject: Re: [vtkusers] how to use vtkMeshQuality..??<br><br><br><br><br><br>Hi..<br><br>I have gone through that example. And it is quite easy to follow. Anyways, <br>this is what i want to achieve:<br><br>I have a Finite Elemental Mesh generated by one of the solver. Now, i want <br>to check the quality of mesh, cell wise.<br>And if a particular cell doesn't satisfy the quality condition, then i have <br>to indicate that cell as unqualified cell.<br><br>For example, suppose i impose a condition on min angle as 20. i.e. all the <br>cells in the mesh must have angles greater than or equal to 20. If it is <br>less than 20, then that particular cell must be displayed with say red color <br>or any other color.<br><br>In vtkMeshQuality, I didnt find any function or method where i can set this <br>min angle value. I think, it has a default in built value set for m
 in angle. <br>I also found out that vtkMeshQuality makes use of VERDICT api.. But got no <br>clue how to put the condition on the minimum angle..<br><br>Any idea how to get through this problem..??<br><br>Tha nks<br><br>Regards<br>---------- Original message ----------<br>From:David Doria&lt; daviddoria+vtk@gmail.com &gt;<br>Date: 23 Feb 10 19:18:28<br>Subject: Re: [vtkusers] how to use vtkMeshQuality..??<br>To: rakeshthp@in.com<br><br><br>On Tue, Feb 23, 2010 at 7:05 AM, Rakesh Patil <rakeshthp@in.com> wrote:<br><br>Hello,<br><br>Can anyone explain me what exactly the vtkMeshQuality does.??<br><br>According to me, it checks the quality of each and every cells.. Right.?? <br>but the output what am getting is very strange.<br><br>If the number of cells in the grid is say 'n'. then the values, what i get <br>is first n/2 only, for rest n/2 cells, i get 0 values.<br><br>What is the actual output of vtkMeshQuality??<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><br><br><br><br
 >Have you looked at this:<br>http://www.vtk.org/Wiki/VTK/Examples/MeshQuality<br><br><br>Let us know if it doesn't clear some things up.<br><br>Thanks,<br><br><br>David<br><br><br><br>Get Yourself a cool, short @in.com Email ID now!<br><br><br><br>_______________________________________________<br>Powered by <a target=\"_blank\" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <br>http://www.kitware.com/opensource/opensource.html<br><br>Please keep messages on-topic and check the VTK FAQ at: <br>http://www.vtk.org/Wiki/VTK_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.vtk.org/mailman/listinfo/vtkusers <br><br><br></rakeshthp@in.com></daviddoria+vtk@gmail.com></rakeshthp@in.com></blockquote> <br><br><div style="border-top:1px dashed #ccc; border-bottom:1px dashed #ccc; padding:5px;"><a href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing" style="font:13px aria
 l; color:#1E56A1; text-decoration:none;">Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></div>