<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span>Yes, I have tried to mantain the perspective. Yes, it is&nbsp;</span><span style="font-size: 12pt; ">"squished" in only one direction.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span style="font-size: 12pt; "><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span style="font-size: 12pt; ">Yes, if I add&nbsp;</span><span style="font-size: 12pt; ">&nbsp;</span><span style="font-size: 12pt; ">importer-&gt;SetRenderWindow(renderWindow); in that place works fine.</span></div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span style="font-size: 12pt; ">I don't have the rights to correct it.</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 16px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span style="font-size: 12pt; "><br></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span style="font-size: 12pt; ">Basically, remains this codes that works perfect:</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: transparent; font-style: normal; "><span style="font-size: 12pt; "><br></span></div><div style="background-color: transparent;
 "><span><div style="background-color: transparent; ">#include &lt;vtkVersion.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkRenderer.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkRenderWindow.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkRenderWindowInteractor.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkVRMLImporter.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkDataSet.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkActorCollection.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkPolyData.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkPolyDataMapper.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkPolyDataNormals.h&gt;</div><div style="background-color: transparent; ">#include &lt;vtkActor.h&gt;</div><div style="background-color:
 transparent; ">#include &lt;vtkSmartPointer.h&gt;</div><div style="background-color: transparent; ">&nbsp;</div><div style="background-color: transparent; ">int main ( int argc, char *argv[])</div><div style="background-color: transparent; ">{</div><div style="background-color: transparent; ">&nbsp; if(argc != 2)</div><div style="background-color: transparent; ">&nbsp; &nbsp; {</div><div style="background-color: transparent; ">&nbsp; &nbsp; std::cout &lt;&lt; "Required arguments: Filename" &lt;&lt; std::endl;</div><div style="background-color: transparent; ">&nbsp; &nbsp; return EXIT_FAILURE;</div><div style="background-color: transparent; ">&nbsp; &nbsp; }</div><div style="background-color: transparent; ">&nbsp;</div><div style="background-color: transparent; ">&nbsp; std::string filename = argv[1];</div><div style="background-color: transparent; ">&nbsp; std::cout &lt;&lt; "Reading " &lt;&lt; filename &lt;&lt; std::endl;</div><div
 style="background-color: transparent; "><br></div><div style="background-color: transparent; ">&nbsp; vtkSmartPointer&lt;vtkRenderer&gt; renderer = vtkSmartPointer&lt;vtkRenderer&gt;::New();</div><div style="background-color: transparent; ">&nbsp; vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow = vtkSmartPointer&lt;vtkRenderWindow&gt;::New();</div><div style="background-color: transparent; ">&nbsp; renderWindow-&gt;AddRenderer(renderer);</div><div style="background-color: transparent; ">&nbsp;</div><div style="background-color: transparent; ">&nbsp; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; renderWindowInteractor = vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();</div><div style="background-color: transparent; ">&nbsp; renderWindowInteractor-&gt;SetRenderWindow(renderWindow);</div><div style="background-color: transparent; ">&nbsp;</div><div style="background-color: transparent; ">&nbsp; // VRML Import</div><div
 style="background-color: transparent; ">&nbsp; vtkSmartPointer&lt;vtkVRMLImporter&gt; importer =&nbsp;</div><div style="background-color: transparent; ">&nbsp; &nbsp; vtkSmartPointer&lt;vtkVRMLImporter&gt;::New();</div><div style="background-color: transparent; ">&nbsp; importer-&gt;SetFileName ( filename.c_str() );</div><div style="background-color: transparent; ">&nbsp; importer-&gt;Read();</div><div style="background-color: transparent; ">&nbsp; importer-&gt;SetRenderWindow(renderWindow);</div><div style="background-color: transparent; ">&nbsp; importer-&gt;Update();</div><div style="background-color: transparent; ">&nbsp;</div><div style="background-color: transparent; ">&nbsp; renderWindow-&gt;Render();</div><div style="background-color: transparent; ">&nbsp; renderWindowInteractor-&gt;Start();</div><div style="background-color: transparent; ">&nbsp;</div><div style="background-color: transparent; ">&nbsp; return EXIT_SUCCESS;</div><div
 style="background-color: transparent; ">}</div></span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div>  <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> David Doria &lt;daviddoria@gmail.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Dora Szasz &lt;dora.szasz@yahoo.com&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> "vtkusers@vtk.org" &lt;vtkusers@vtk.org&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, August 17, 2012 2:59 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Insight-users] VRML Importer Example Problem<br> </font> </div> <br>
On Fri, Aug 17, 2012 at 8:53 AM, Dora Szasz &lt;<a ymailto="mailto:dora.szasz@yahoo.com" href="mailto:dora.szasz@yahoo.com">dora.szasz@yahoo.com</a>&gt; wrote:<br>&gt; Yes, I sent another email previously to that who solves the problem, in<br>&gt; which I have attached two images, for demonstration.<br>&gt; There is one picture with the volume loaded with a ordinary wrl viewer and<br>&gt; the other one obtained by loading the volume using the example from:<br>&gt; http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/VRML.<br>&gt;<br>&gt; I attached them again, to be able to see the differences, even if in vtk<br>&gt; list will appear later due to moderator acceptance.<br>&gt;<br>&gt; I attached also a picture after the correction I made: correct_with_VTK.tif<br>&gt;<br>&gt; I hope that it is clear now.<br>&gt;<br>&gt; Dora<br><br>Weird - I'm assuming those screenshots are all from the same<br>perspective? I.e. it seems to be "squished" in only one
 dimension?<br><br>I see now the addition of<br><br>&nbsp; importer-&gt;SetRenderWindow(renderWindow);<br><br>between the Read() and Update() calls - was that the change that fixed<br>it? If so, can you please correct it on the wiki?<br><br>Thanks!<br><br>David<br><br><br> </div> </div>  </div></body></html>