[vtkusers] how to use vtkMeshQuality..??

Rakesh Patil rakeshthp at in.com
Wed Feb 24 06:14:04 EST 2010


 Well,You have hit it right on the target.. :) thanks... Clarify me one more thing.. What is this vtkDataSetAttributes::SCALARS..?? Coz, my grid is already having one scalar set...Thanks Original message From:"John Platt"< jcplatt at dsl.pipex.com >Date: 24 Feb 10 14:51:56Subject:Re: [vtkusers] how to use vtkMeshQuality..??To: "Rakesh Patil" ,"David Doria" Hi,The percell 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::FIELDASSOCIATIONCELLS,vtkDataSetAttributes::SCALARS );HTHJohn. Original Message  From: Rakesh PatilTo: David DoriaCc: vtkusersSent: Wednesday, February 24, 2010 4:53 AMSubject: Re: [vtkusers] how to use vtkMeshQuality..??Hi..I have gone through that example. And it is quite easy to follow. Anyways, t
 his 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 nksRegards Original message From:David Doria< daviddoria+vtk at gmail.com >Date: 23 Feb 10 19:18:28Subject: Re: [vtkusers] how to use vtkMeshQuality..??To: r
 akeshthp at in.comOn Tue, Feb 23, 2010 at 7:05 AM, Rakesh Patilwrote: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??ThanksRegardsRakesh PatilHave you looked at this:http://www.vtk.org/Wiki/VTK/Examples/MeshQualityLet us know if it doesn't clear some things up.Thanks,DavidGet Yourself a cool, short @in.com Email ID now!Powered by www.kitware.comVisit other Kitware opensource projects at http://www.kitware.com/opensource/opensource.htmlPlease keep messages ontopic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTKFAQFollow this link to subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusersGet Yourself a cool, short @in.com Email ID now!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100224/505299dd/attachment.htm>


More information about the vtkusers mailing list