<br><br><div class="gmail_quote">On Wed, Nov 3, 2010 at 10:40 PM, Donny <span dir="ltr"><<a href="mailto:donnyz@charter.net">donnyz@charter.net</a>></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">Wow. Thanks Aashish.</span></font></p></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><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">It would be nice if vtkTextureMapToSphere
would do this mapping correctly.</span></font></p></div></div></blockquote><div><br></div><div>I have to look into the implementation to say for sure. But modelling tools like Maya / 3D Max has spherical projection techniques to generate UV. Not sure what <span class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; color: rgb(0, 0, 128); ">vtkTextureMapToSphere uses. </span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><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>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">I have one question about implementing
this. I need to convert the lat lon coordinates to meters from a defined
origin. I think vtkGeoAssignCoordinates will do the job. Can I use this filter
after the texture coordinates are set using your code?</span></font></p></div></div></blockquote><div><br></div><div>Well are you try to convert to UTM ( I am not sure if <span class="Apple-style-span" style="font-family: Arial; font-size: 13.3333px; color: rgb(0, 0, 128); ">vtkGeoAssignCoordinates will do what you are looking for) </span>? For your second question yes you can use the filter as that would just transform the points (vtkPoints) and not texture coordinate. </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><p class="MsoNormal">
</p></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><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></blockquote><div>Sent from Mobile Device </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>
<p class="MsoNormal" style="margin-left:.5in"><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"></span></font></p><div class="im"><font size="2" face="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>
</font></div><div><div><font size="2" face="Tahoma"></font></div><div class="h5"><font size="2" face="Tahoma"><b><span style="font-weight:bold">Sent:</span></b> Wednesday, November 03, 2010
1:05 AM<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] How To
Texture Map a patch with vtkGlobeSource</font></div></div><p></p><div><div></div><div class="h5">
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi Donny, </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"> </span></font></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I didn't get the time to clean this code but it
will work for you .. </span></font></p>
<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 just modified a test (and hence it look bit
different)</span></font></p>
</div>
<div>
<table border="0" cellpadding="0" width="578" style="width:433.5pt;margin-left:39.0pt">
<tbody><tr>
<td style="padding:.75pt .75pt .75pt .75pt"><pre><font size="2" color="green" face="Courier New"><span style="font-size:10.0pt;color:green"><br>
<br>
</span></font></pre><pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green"><vtkGlobeSource.h></span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green"><vtkPolyDataMapper.h></span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green"><vtkActor.h></span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green"><vtkPointData.h></span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green"><vtkDoubleArray.h></span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkBMPReader.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkCamera.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoAlignedImageRepresentation.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoAlignedImageSource.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoEdgeStrategy.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoFileImageSource.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoFileTerrainSource.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoGlobeSource.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoProjection.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoProjectionSource.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoRandomGraphSource.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoSphereTransform.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoTerrain.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoTerrainNode.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoTerrain2D.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoTransform.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoView.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGeoView2D.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkGraphLayoutView.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkJPEGReader.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkRegressionTestImage.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkRenderedGraphRepresentation.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkRenderer.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkRenderWindow.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkRenderWindowInteractor.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkSmartPointer.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkStdString.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkTestUtilities.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkTIFFReader.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkViewTheme.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"vtkViewUpdater.h"</span></font></pre>
<pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#include</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green"><vtksys/SystemTools.hxx></span></font></pre>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt"> </span></font></pre><pre><font size="2" color="navy" face="Courier New"><span style="font-size:10.0pt;color:navy">#define</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>type<font color="black"><span style="color:black">,</span></font>name<font color="black"><span style="color:black">)</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>\</pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>vtkSmartPointer<font color="black"><span style="color:black"><</span></font>type<font color="black"><span style="color:black">></span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>name<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>vtkSmartPointer<font color="black"><span style="color:black"><</span></font>type<font color="black"><span style="color:black">>::</span></font>New<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="olive" face="Courier New"><span style="font-size:10.0pt;color:olive">int</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>TestGeoView<font color="black"><span style="color:black">(</span></font><font color="olive"><span style="color:olive">int</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>argc<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">char</span></font><font color="black"><span style="color:black">*</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>argv<font color="black"><span style="color:black">[])</span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;color:black">{</span></font></pre><pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">char</span></font><font color="black"><span style="color:black">*</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>image<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>vtkTestUtilities<font color="black"><span style="color:black">::</span></font>ExpandDataFileName<font color="black"><span style="color:black">(</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>argc<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>argv<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="green"><span style="color:green">"Data/usa_image.jpg"</span></font><font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>vtkStdString<font color="#aa55ff"><span style="color:#AA55FF"> </span></font>imageFile<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>image<font color="black"><span style="color:black">;</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>vtkSmartPointer<font color="black"><span style="color:black"><</span></font>vtkJPEGReader<font color="black"><span style="color:black">></span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>reader<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>vtkSmartPointer<font color="black"><span style="color:black"><</span></font>vtkJPEGReader<font color="black"><span style="color:black">>::</span></font>New<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>reader<font color="black"><span style="color:black">-></span></font>SetFileName<font color="black"><span style="color:black">(</span></font>imageFile<font color="black"><span style="color:black">.</span></font>c_str<font color="black"><span style="color:black">());</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>reader<font color="black"><span style="color:black">-></span></font>Update<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">double</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>latRange<font color="black"><span style="color:black">[]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">{</span></font><font color="navy"><span style="color:navy">24</span></font><font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="navy"><span style="color:navy">50</span></font><font color="black"><span style="color:black">};</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">double</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>longRange<font color="black"><span style="color:black">[]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">{-</span></font><font color="navy"><span style="color:navy">126</span></font><font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">-</span></font><font color="navy"><span style="color:navy">66</span></font><font color="black"><span style="color:black">};</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>vtkGlobeSource<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">-></span></font>SetStartLatitude<font color="black"><span style="color:black">(</span></font>latRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">]);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">-></span></font>SetEndLatitude<font color="black"><span style="color:black">(</span></font>latRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">]);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">-></span></font>SetStartLongitude<font color="black"><span style="color:black">(</span></font>longRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">]);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">-></span></font>SetEndLongitude<font color="black"><span style="color:black">(</span></font>longRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">]);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">-></span></font>Update<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>vtkActor<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>actor<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>vtkPolyDataMapper<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>mapper<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>vtkDoubleArray<font color="black"><span style="color:black">*</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>newArray<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">(</span></font>vtkDoubleArray<font color="black"><span style="color:black">::</span></font>New<font color="black"><span style="color:black">());</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>newArray<font color="black"><span style="color:black">-></span></font>SetNumberOfComponents<font color="black"><span style="color:black">(</span></font><font color="navy"><span style="color:navy">2</span></font><font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>vtkDoubleArray<font color="black"><span style="color:black">*</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>array<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>vtkDoubleArray<font color="black"><span style="color:black">::</span></font>SafeDownCast<font color="black"><span style="color:black">(</span></font>globeSource<font color="black"><span style="color:black">-></span></font>GetOutput<font color="black"><span style="color:black">(</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">)-></span></font>GetPointData<font color="black"><span style="color:black">()-></span></font>GetAbstractArray<font color="black"><span style="color:black">(</span></font><font color="green"><span style="color:green">"LatLong"</span></font><font color="black"><span style="color:black">));</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">double</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>range<font color="black"><span style="color:black">[]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">{</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">(</span></font>latRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">-</span></font>latRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">]),</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="black"><span style="color:black">(</span></font>longRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">-</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>longRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">])</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">};</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">double</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>val<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">2</span></font><font color="black"><span style="color:black">];</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">double</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>newVal<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">2</span></font><font color="black"><span style="color:black">];</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">for</span></font><font color="black"><span style="color:black">(</span></font><font color="olive"><span style="color:olive">int</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>i<font color="black"><span style="color:black">=</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">;</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>i<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black"><</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>array<font color="black"><span style="color:black">-></span></font>GetNumberOfTuples<font color="black"><span style="color:black">();</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">++</span></font>i<font color="black"><span style="color:black">)</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="black"><span style="color:black">{</span></font></pre><pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>array<font color="black"><span style="color:black">-></span></font>GetTupleValue<font color="black"><span style="color:black">(</span></font>i<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>val<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>newVal<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">(</span></font>val<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">-</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>latRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">])</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">/</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>range<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">];</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>newVal<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">(</span></font>val<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">]</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">-</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>longRange<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">])</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">/</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>range<font color="black"><span style="color:black">[</span></font><font color="navy"><span style="color:navy">1</span></font><font color="black"><span style="color:black">];</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>newArray<font color="black"><span style="color:black">-></span></font>InsertNextTuple<font color="black"><span style="color:black">(</span></font>newVal<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="black"><span style="color:black">}</span></font></pre><pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">-></span></font>GetOutput<font color="black"><span style="color:black">(</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">)-></span></font>GetPointData<font color="black"><span style="color:black">()-></span></font>SetTCoords<font color="black"><span style="color:black">(</span></font>newArray<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>mapper<font color="black"><span style="color:black">-></span></font>SetInput<font color="black"><span style="color:black">(</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>globeSource<font color="black"><span style="color:black">-></span></font>GetOutput<font color="black"><span style="color:black">(</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">)</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>actor<font color="black"><span style="color:black">-></span></font>SetMapper<font color="black"><span style="color:black">(</span></font>mapper<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>vtkTexture<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>texture<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>texture<font color="black"><span style="color:black">-></span></font>SetInput<font color="black"><span style="color:black">(</span></font>reader<font color="black"><span style="color:black">-></span></font>GetOutputDataObject<font color="black"><span style="color:black">(</span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">));</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>actor<font color="black"><span style="color:black">-></span></font>SetTexture<font color="black"><span style="color:black">(</span></font>texture<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>vtkRenderWindow<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>renWin<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>vtkRenderWindowInteractor<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>renWinInt<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>VTK_CREATE<font color="black"><span style="color:black">(</span></font>vtkRenderer<font color="black"><span style="color:black">,</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>ren<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>ren<font color="black"><span style="color:black">-></span></font>AddActor<font color="black"><span style="color:black">(</span></font>actor<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>renWin<font color="black"><span style="color:black">-></span></font>AddRenderer<font color="black"><span style="color:black">(</span></font>ren<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>renWinInt<font color="black"><span style="color:black">-></span></font>SetRenderWindow<font color="black"><span style="color:black">(</span></font>renWin<font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>renWin<font color="black"><span style="color:black">-></span></font>SetSize<font color="black"><span style="color:black">(</span></font><font color="navy"><span style="color:navy">400</span></font><font color="black"><span style="color:black">,</span></font><font color="navy"><span style="color:navy">400</span></font><font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>renWin<font color="black"><span style="color:black">-></span></font>Render<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>renWinInt<font color="black"><span style="color:black">-></span></font>Initialize<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>renWin<font color="black"><span style="color:black">-></span></font>Render<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">int</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>retVal<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">=</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>vtkRegressionTestImage<font color="black"><span style="color:black">(</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>renWin<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">);</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">if</span></font><font color="black"><span style="color:black">(</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>retVal<font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="black"><span style="color:black">==</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font>vtkRegressionTester<font color="black"><span style="color:black">::</span></font>DO_INTERACTOR<font color="black"><span style="color:black">)</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="black"><span style="color:black">{</span></font></pre><pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font>renWinInt<font color="black"><span style="color:black">-></span></font>Start<font color="black"><span style="color:black">();</span></font></pre>
<pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="black"><span style="color:black">}</span></font></pre><pre><font size="2" color="#aa55ff" face="Courier New"><span style="font-size:10.0pt;color:#AA55FF"> </span></font><font color="olive"><span style="color:olive">return</span></font><font color="#aa55ff"><span style="color:#AA55FF"> </span></font><font color="navy"><span style="color:navy">0</span></font><font color="black"><span style="color:black">;</span></font></pre>
<pre><font size="2" color="black" face="Courier New"><span style="font-size:10.0pt;color:black">}</span></font></pre></td>
</tr>
</tbody></table>
<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">Attached is the screenshot of my test.. </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"> </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"> </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 Tue, Nov 2, 2010 at 10:56 PM, Donny <<a href="mailto:donnyz@charter.net" target="_blank">donnyz@charter.net</a>>
wrote:</span></font></p>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Thanks for the help Aashish. I have attached 3 image
files, one with the<br>
AutomaticSphereGenerationOff() set on the vtkTextureMapToSphere object and<br>
one with AutomaticSphereGenerationOn(). The third image is not a screenshot,<br>
it is the actual texture I am trying to map to the patch. The only
settings<br>
I set on the vtkGlobeSource are :<br>
gs->SetStartLatitude(24.0);<br>
gs->SetEndLatitude(50.0);<br>
gs->SetStartLongitude(-126.0);<br>
gs->SetEndLongitude(-66.0);<br>
<br>
As you can see the GlobeSource patch geometry is rendering as intended, but<br>
the texture is not appearing correctly.</span></font></p>
<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>
"you can have<br>
<br>
tx = asin(Nx)/PI + 0.5<br>
ty = asin(Ny)/PI + 0.5"</span></font></p>
</div>
<p class="MsoNormal" style="margin-left:.5in"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Is there a filter that will perform this mapping for
me?<br>
<br>
Thanks.</span></font></p>
<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>
-----Original Message-----<br>
From: Aashish Chaudhary [mailto:<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>]<br>
Sent: Tuesday, November 02, 2010 10:11 AM<br>
To: Donny<br>
Cc: <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
Subject: Re: [vtkusers] How To Texture Map a patch with vtkGlobeSource</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">Hi Donny,<br>
- Show quoted text -<br>
I have not used vtkTextureMapToSphere myself but can you try to<br>
generate your own texture coordinates? globe source does produce<br>
normals and in its very simplistic approach ...<br>
<br>
you can have<br>
<br>
tx = asin(Nx)/PI + 0.5<br>
ty = asin(Ny)/PI + 0.5<br>
<br>
In a shader you can do it easily. Not sure why vtkTextureMapToSphere<br>
didn't work. Will find out.<br>
<br>
Can you post a snapshot?<br>
<br>
On Tue, Nov 2, 2010 at 12:01 AM, Donny <<a href="mailto:donnyz@charter.net" target="_blank">donnyz@charter.net</a>> wrote:<br>
> I have created a globe patch with vtkGlobeSource for the general area of<br>
the<br>
> United States (Lat 24 to 50 Deg, Lon -126 to -66 Deg.) using<br>
> SetLatitudeStart, SetLatitudeEnd ... I also have a .bmp image that<br>
> corresponds to these extents and cannot find a filter to generate the<br>
> texture coordinates for this patch so I can texture it. I tried<br>
> vtkTextureMapToSphere and turned auto generate sphere to off but it only<br>
> displayed a small portion of the image onto the patch. How can I generate<br>
> the texture coordinates for a patch such as this?<br>
><br>
><br>
><br>
> Thanks.<br>
><br>
><br>
><br>
> Donny Zimmerman<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>
> <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:<br>
> <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><br>
><br>
><br>
<br>
<br>
<br>
--<br>
| Aashish Chaudhary<br>
| R&D Engineer<br>
| Kitware Inc.<br>
| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a></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"><br>
<br clear="all">
<br>
-- <br>
| Aashish Chaudhary <br>
| R&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>
</div>
</blockquote></div><br><br clear="all"><br>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a> <br>