<br><br><div class="gmail_quote">On Sat, Nov 13, 2010 at 3:00 PM, Donny <span dir="ltr">&lt;<a href="mailto:donnyz@charter.net">donnyz@charter.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">












<div lang="EN-US" link="blue" vlink="blue">

<div>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Sorry Aashish I forgot to reply to all.</span></font></p><div class="im">

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Thanks Aashish. I have attached a screenshot
to visualize the problem. Maybe you have a better solution. I have two globe
source objects. The first is to render a low resolution texture on a terrain
patch of the whole </span></font><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">United States</span></font><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">. The second is a high resolution texture of a smaller terrain
patch representing a small area of the </span></font><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">United
  States</span></font><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">. The curtain of the
second source is sticking above the first source. Can I use two separate
textures on the first globe source?</span></font></p></div></div></div></blockquote><div><br></div><div>Not as of now (based on my memory). Said that this the feature I wanted to have and in my todo list.  </div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="blue"><div><div class="im">

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I have made the changes to vtkGlobeSource on
my local copy. I am not authorized as a contributor and until I am more
familiar with the cvs submission procedure I would rather you changed it. The
following are the changes I made:</span></font></p></div></div></div></blockquote><div><br></div><div>FYI: VTK switched to git. (more information here <a href="http://www.vtk.org/Wiki/VTK/Git#Topic_Stage">http://www.vtk.org/Wiki/VTK/Git#Topic_Stage</a>) </div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="blue"><div><div class="im">
<p class="MsoNormal"> </p></div></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="blue"><div><div class="im">
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p></div></div></div></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="blue"><div><div class="im">

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">In the vtkGlobeSource.h file I added:</span></font></p>

<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">vtkSetMacro(AutoCalculateCurtainHeight,
<font color="blue"><span style="color:blue">int</span></font>);</span></font></p>

<p class="MsoNormal" style="text-indent:.5in"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">vtkGetMacro(AutoCalculateCurtainHeight,
<font color="blue"><span style="color:blue">int</span></font>);</span></font></p>

<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal" style="text-indent:.5in"><font size="2" color="blue" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">int</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> AutoCalculateCurtainHeight;</span></font></p>


<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">And in the vtkGlobeSource.cxx file I
added:</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">           
In the constructor:</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">           
            </span></font><font size="2" color="blue" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">this</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">-&gt;AutoCalculateCurtainHeight
= 1;</span></font></p>

<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> </span></font></p>

<p class="MsoNormal"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">      </span></font><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">In RequestData():</span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">           
            </span></font><font size="2" color="blue" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">if</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">(<font color="blue"><span style="color:blue">this</span></font>-&gt;AutoCalculateCurtainHeight)  </span></font></p>


<p class="MsoNormal" style="text-autospace:none"><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"> 
               
<font color="blue"><span style="color:blue">this</span></font>-&gt;CurtainHeight
= (<font color="blue"><span style="color:blue">this</span></font>-&gt;EndLongitude-<font color="blue"><span style="color:blue">this</span></font>-&gt;StartLongitude)</span></font></p>

<p class="MsoNormal" style="margin-left:1.75in"><font size="2" face="Symbol"><span style="font-size:10.0pt;font-family:Symbol">·</span></font><font size="1"><span style="font-size:7.0pt">        
</span></font><font size="2" color="blue" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:blue">this</span></font><font size="2" face="Courier New"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">-&gt;Radius
/ 3600.0;</span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Thanks.<img width="644" height="515" src="cid:image001.jpg@01CB833B.19B78DC0"></span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">           
            </span></font></p>

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p></div></div></div></blockquote><div>These changes looks reasonable to me.  I will make the changes in the repository by tomorrow. </div>
<div><br></div><div>Thanks,</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div lang="EN-US" link="blue" vlink="blue"><div><div class="im">

<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma">-----Original Message-----<br>
<b><span style="font-weight:bold">From:</span></b> Aashish Chaudhary
[mailto:<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Saturday, November 13, 2010
1:10 PM<br>
<b><span style="font-weight:bold">To:</span></b> Donny<br>
<b><span style="font-weight:bold">Cc:</span></b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [vtkusers]
vtkGlobeSource SetCurtainHeight Has No Affect</span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

</div><div><div></div><div class="h5"><p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi
Donny, </span></font></p>

<div>

<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">On Sat, Nov 13, 2010 at 1:27 PM, Donny &lt;<a href="mailto:donnyz@charter.net" target="_blank">donnyz@charter.net</a>&gt; wrote:</span></font></p>


<div link="blue" vlink="purple">

<div>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I noticed that when I call
SetCurtainHeight on a vtkGlobeSource object it has no affect. I browsed the
vtkGlobeSource and discovered that in the RequestData function the
CurtainHeight is recalculated based on the terrain patch. This makes the
SetCurtainHeight function useless. </span></font></p>

</div>

</div>

<div>

<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

</div>

<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">

<div link="blue" vlink="purple">

<div>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Can we create another function
called SetAutoCalculateCurtainHeight to assign a new variable
AutoCalculateCurtainHeight and use that variable to determine if the terrain
patch calculation should be performed?</span></font></p>

</div>

</div>

</blockquote>

<div>

<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

</div>

<div>

<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I think this sounds reasonable. Do you want to submit
a patch (or I can make this change).  I am assuming that for some reason
default curtain height didn&#39;t work for you? (or something) </span></font></p>

</div>

<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">

<div link="blue" vlink="purple">

<div>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Thanks.</span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Donny Zimmerman</span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"><a href="mailto:donnyz@charter.net" target="_blank">donnyz@charter.net</a></span></font></p>

<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>

</div>

</div>

<p class="MsoNormal" style="margin-right:0in;margin-bottom:12.0pt;margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a></span></font></p>

</blockquote>

</div>

<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
<br clear="all">
<br>
-- <br>
| Aashish Chaudhary <br>
| R&amp;D Engineer         <br>
| Kitware Inc.            <br>
| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>    </span></font></p>

</div></div></div>

</div>


</blockquote></div><br><br clear="all"><br>-- <br>| Aashish Chaudhary <br>| R&amp;D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com">www.kitware.com</a>    <br>