<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span style="font-family: times, serif; font-size: 12pt; ">Hello itk users,</span><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div id="yiv1051992484"><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: times, serif; "><br></div><div style="font-size: 12pt; font-family: times, serif; ">How can I integrate in a render window multiple vtk3DS importers?</div><div style="font-size: 12pt; font-family: times, serif; ">I have tried the following code in Tcl, but I have received the following error: "Object named importer could not find requested method:
 GetOutputPort", so the importer is not behaving like a reader.</div><div style="font-size: 12pt; font-family: times, serif; "><br></div><div style="font-size: 12pt; font-family: times, serif; ">How can I do this?&nbsp;</div><div style="font-size: 12pt; font-family: times, serif; "><br></div><div style="font-size: 12pt; font-family: times, serif; "><br></div><div style="font-size: 12pt; font-family: times, serif; ">Thank you a lot,</div><div style="font-size: 12pt; font-family: times, serif; ">Dora Szasz&nbsp;</div><div style="font-size: 12pt; font-family: times, serif; "><br></div><div><div><font face="'times new roman', 'new york', times, serif">package require vtk</font></div><div><font face="'times new roman', 'new york', times, serif">package require vtkinteraction</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif"># Create the importer and read a
 file</font></div><div><font face="'times new roman', 'new york', times, serif">vtk3DSImporter importer</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importer ComputeNormalsOn</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importer SetFileName "204_c_01_v14a_body_3.3ds"</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importer Read</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif">vtk3DSImporter importer2</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importer2 ComputeNormalsOff</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importer2 SetFileName "216_03_v6f_corp-ns3.3ds"</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importer2
 Read</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp;&nbsp;</font></div><div><font face="'times new roman', 'new york', times, serif">vtkPolyDataNormals normals</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; normals SetInputConnection [importer GetOutputPort]</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; normals FlipNormalsOn</font></div><div><font face="'times new roman', 'new york', times, serif">vtkPolyDataMapper importerMapper</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importerMapper SetInputConnection [normals GetOutputPort]</font></div><div><font face="'times new roman', 'new york', times, serif">vtkActor importerActor</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>importerActor SetMapper
 importerMapper</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>importerActor SetOrigin 2 1 3</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>importerActor SetPosition 2.25 0 0</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>[importerActor GetProperty] SetColor 1 0 1</font></div><div><span class="yiv1051992484Apple-tab-span" style="white-space:pre;"><font face="'times new roman', 'new york', times, serif">        </font></span></div><div><font face="'times new roman', 'new york', times, serif">vtkPolyDataNormals normals2</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; normals2 SetInputConnection [importer2
 GetOutputPort]</font></div><div><font face="'times new roman', 'new york', times,
 serif">&nbsp; normals2 FlipNormalsOn</font></div><div><font face="'times new roman', 'new york', times, serif">vtkPolyDataMapper importer2Mapper</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; importer2Mapper2 SetInputConnection [normals2 GetOutputPort]</font></div><div><font face="'times new roman', 'new york', times, serif">vtkActor importer2Actor</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>importer2Actor SetMapper importer2Mapper</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>importer2Actor SetPosition 0 0 0.25</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>[importer2Actor GetProperty] SetColor 0 1
 0</font></div><div><span class="yiv1051992484Apple-tab-span" style="white-space:pre;"><font face="'times new roman', 'new york', times, serif">        </font></span></div><div><font face="'times new roman', 'new york', times, serif">vtkRenderer ren1</font></div><div><font face="'times new roman', 'new york', times, serif">vtkRendererWindow renWin</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>renWin AddRenderer ren1</font></div><div><font face="'times new roman', 'new york', times, serif">vtkRendererWindowInteractor iren</font></div><div><font face="'times new roman', 'new york', times, serif"><span class="yiv1051992484Apple-tab-span" style="white-space:pre;">        </span>iren SetRenderWindow renWin</font></div><div><span class="yiv1051992484Apple-tab-span" style="white-space:pre;"><font face="'times new roman', 'new york', times, serif">
        </font></span></div><div><font face="'times new roman', 'new york', times, serif">ren1 AddActor
 importerActor</font></div><div><font face="'times new roman', 'new york', times, serif">ren1 AddActor importer2Actor</font></div><div><font face="'times new roman', 'new york', times, serif">ren1 SetBackground 0.1 0.2 0.4</font></div><div><font face="'times new roman', 'new york', times, serif">renWin SetSize 200 200</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif"># Set up the camera to get a particular view of the scene</font></div><div><font face="'times new roman', 'new york', times, serif">vtkCamera camera</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; camera SetClippingRange 21.9464 30.0179</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; camera SetFocalPoint 3.49221 2.28844 -0.970866</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp;
 &nbsp; camera SetPosition 3.49221 2.28844 24.5216</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; camera SetViewAngle 30</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; camera SetViewUp 0 1 0</font></div><div><font face="'times new roman', 'new york', times, serif">ren1 SetActiveCamera camera</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font face="'times new roman', 'new york', times, serif"># Set the user method (bound to key 'u')</font></div><div><font face="'times new roman', 'new york', times, serif">#</font></div><div><font face="'times new roman', 'new york', times, serif">iren AddObserver UserEvent {wm deiconify .vtkInteract}</font></div><div><font face="'times new roman', 'new york', times, serif">renWin Render</font></div><div><font face="'times new roman', 'new york', times, serif"><br></font></div><div><font
 face="'times new roman', 'new york', times, serif"># Withdraw the default tk window</font></div><div><font face="'times new roman', 'new york', times, serif">wm withdraw .</font></div><div style="font-size: 12pt; font-family: times, serif; "><br></div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div>  </div></body></html>