<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18876">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>The threshold filter needs to know which data array
to use for performing comparisons. SetInputArrayToProcess() says use
the active cell scalars. This is the new cell array called
"Quality". Your previous scalars are still there (assuming the filter
passes them) but are no longer tagged as the active scalars.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>HTH</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>John.</FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=rakeshthp@in.com href="mailto:rakeshthp@in.com">Rakesh Patil</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jcplatt@dsl.pipex.com
href="mailto:jcplatt@dsl.pipex.com">John Platt</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=daviddoria+vtk@gmail.com
href="mailto:daviddoria+vtk@gmail.com">David Doria</A> ; <A
title=vtkusers@vtk.org href="mailto:vtkusers@vtk.org">vtkusers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, February 24, 2010 11:14
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] how to use
vtkMeshQuality..??</DIV>
<DIV><BR></DIV><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"< <A href="mailto:jcplatt@dsl.pipex.com">jcplatt@dsl.pipex.com</A>
><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->ThresholdByLower(
20);<BR>selectCells->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< daviddoria+vtk@gmail.com ><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 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-BOTTOM: #ccc 1px dashed; PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BORDER-TOP: #ccc 1px dashed; PADDING-TOP: 5px"><A
style="FONT: 13px aria l; COLOR: #1e56a1; TEXT-DECORATION: none"
href="http://mail.in.com/mails/new_reg.php?utm_source=invite&utm_medium=outgoing">Get
Yourself a cool, short <B>@in.com</B> Email ID
now!</A></DIV></BLOCKQUOTE></BODY></HTML>