<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You can try method GenerateValues() of vtkContourFilter<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>You may need to know the range of values of your input data. Normally
it is the scalar values accessing via
input->GetPointData()->GetScalars().<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Here “input” is the pointer to your input data.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>By the way, anybody know how to control the number of points in the
output surface of vtkContourFilter?<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>-Jinzhong<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> vtkusers-bounces@vtk.org
[mailto:vtkusers-bounces@vtk.org] <b>On Behalf Of </b>Saket Jalan<br>
<b>Sent:</b> Wednesday, June 24, 2009 12:13 AM<br>
<b>To:</b> vtkusers@vtk.org<br>
<b>Subject:</b> [vtkusers] setValue of vtkContourFilter<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>i m not still clear with what i want....<br>
<br>
Actually i have some vtk structured point data sets, and i am trying to
generate the isosurface in which i m using contour filter. <br>
in that i m setting the value of a single contour. My question is how to decide
what would be the value of this variable acc to data set?<br>
Like for one vtk file i found it works when it is 60,,,for second one it works
for 92.....<br>
So how to decide using the program (the source code) the value ?<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p>
<div>
<p class=MsoNormal>On Wed, Jun 24, 2009 at 12:36 AM, Gerrick Bivins <<a
href="mailto:gbivins@objectreservoir.com" target="_blank">gbivins@objectreservoir.com</a>>
wrote:<o:p></o:p></p>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Oh.
You’re probably over thinking it. No worries! It’s not very clear
in the docs.<br>
So for instance, lets say you want to generate 1 contour with a value of 100.<br>
The call would look like this:<br>
contour->SetValue(0, 100);<br>
<br>
If you wanted to change the value of this contour to 200 your call would be
like this:<br>
contour->SetValue(0, 200);<br>
<br>
Now if you wanted to generate another contour at 50 and keep the contour at 200
(thus totaling 2 contours) , after making the previous call you would add this:<br>
<br>
contour->SetValue(1,50);<br>
<br>
So in summary, if you just want one contour the contour number is always 0. If
you want more than one value the contour number is assigned by you and is <=
total number of contours.<br>
<span style='color:#888888'> Gerrick</span><o:p></o:p></span></p>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'><br>
<br>
<br>
<br>
<br>
On 6/23/09 1:59 PM, "Saket Jalan" <<a
href="http://saaketjalan@gmail.com" target="_blank">saaketjalan@gmail.com</a>>
wrote:<o:p></o:p></span></p>
</div>
<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>
<div>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif"'>Thanks
for replying...<br>
<br>
I m still not able to find out the value of a contour number,,,plss help<br>
i m new to vtk...<br>
<br>
Thanks<br>
<br>
On Tue, Jun 23, 2009 at 6:33 PM, Gerrick Bivins <<a
href="http://gbivins@objectreservoir.com" target="_blank">gbivins@objectreservoir.com</a>>
wrote:</span><o:p></o:p></p>
</div>
<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'>Hi Saket,<br>
In that method:<br>
int “i” ==> the contour number <br>
double v ==> value of contour number “i”<br>
<br>
This is so that you can supply more than one contour value to the contour
filter.<br>
<span style='color:#888888'>Gerrick<br>
<br>
</span><o:p></o:p></span></p>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'>On 6/22/09 7:01 PM, "Saket Jalan"
<<a href="http://saaketjalan@gmail.com" target="_blank">saaketjalan@gmail.com</a>
<<a href="http://saaketjalan@gmail.com" target="_blank">http://saaketjalan@gmail.com</a>>
> wrote:<o:p></o:p></span></p>
</div>
<div>
<blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:11.0pt;
font-family:"Calibri","sans-serif"'>hii...<br>
<br>
the class vtkContourFilter.h contains a method called<br>
<br>
SetValue(int i, double v);<br>
<br>
Anyone please tell me how to decide the value of v while using this filter.....<br>
<br>
Thanks</span><o:p></o:p></p>
</blockquote>
</div>
</blockquote>
<p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p>
</blockquote>
</div>
</div>
<p class=MsoNormal><br>
<br clear=all>
<o:p></o:p></p>
</div>
</div>
<p class=MsoNormal>-- <br>
<span style='color:#888888'>Saket</span><o:p></o:p></p>
</div>
<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
Saket<o:p></o:p></p>
</div>
</body>
</html>