Thanks for your response!!, <br>
<br>
I tried to load another file (smaller) and it&#39;s works.<br><br>Hugo.<br><br><br><div class="gmail_quote">2010/10/26 Sebastien Jourdain <span dir="ltr">&lt;<a href="mailto:sebastien.jourdain@kitware.com">sebastien.jourdain@kitware.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Hugo,<br>
<br>
I don&#39;t know much about C#, but just in case...<br>
It seems that you only pick the first actor. Are you sure that there<br>
is only one ?<br>
I guess, if you don&#39;t provide your renderer to the importer is because<br>
you have other actors into it ?<br>
Have you tried, at least to see if the file can be successfully loaded<br>
by VTK when the importer is fully set ?<br>
<br>
Seb<br>
<div><div></div><div class="h5"><br>
On Tue, Oct 26, 2010 at 9:18 AM, Hugo Valdebenito &lt;<a href="mailto:hugo@maptek.cl">hugo@maptek.cl</a>&gt; wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt;<br>
&gt; I need to load a large data set, for example a VRML file (500MB), I&#39;m using<br>
&gt; the following code (C#), may not be the best way, with my data set it&#39;s not<br>
&gt; work, not show anything :<br>
&gt;<br>
&gt;             // VRML Import<br>
&gt;            vtkVRMLImporter importer = vtkVRMLImporter.New();<br>
&gt;<br>
&gt;            OpenFileDialog dialog = new OpenFileDialog();<br>
&gt;            dialog.Filter =<br>
&gt;               &quot;VRML files (*.wrl)|*.wrl|All files (*.*)|*.*&quot;;<br>
&gt;            dialog.InitialDirectory = &quot;\\Desktop&quot;;<br>
&gt;<br>
&gt;            dialog.Title = &quot;Select a text file&quot;;<br>
&gt;            dialog.Multiselect = false;<br>
&gt;           if (dialog.ShowDialog() != DialogResult.OK)<br>
&gt;           {<br>
&gt;               return;<br>
&gt;           }<br>
&gt;<br>
&gt;            importer.SetFileName(dialog.FileName);<br>
&gt;            importer.Read();<br>
&gt;            importer.Update();<br>
&gt;<br>
&gt;            //Convert to vtkDataSet<br>
&gt;            vtkDataSet pDataset;<br>
&gt;            vtkActorCollection actors = importer.GetRenderer().GetActors();<br>
&gt;            actors.InitTraversal();<br>
&gt;            pDataset = actors.GetNextActor().GetMapper().GetInput();<br>
&gt;<br>
&gt;            //Convert to vtkPolyData<br>
&gt;            vtkPolyData polyData = vtkPolyData.SafeDownCast ( pDataset );<br>
&gt;            polyData.Update();<br>
&gt;<br>
&gt;            // Mapper<br>
&gt;            vtkPolyDataMapper solidMapper = vtkPolyDataMapper.New();<br>
&gt;            solidMapper.SetInput ( polyData );<br>
&gt;            solidMapper.ScalarVisibilityOff();<br>
&gt;<br>
&gt;            // Actor<br>
&gt;            vtkActor solidActor = vtkActor.New();<br>
&gt;            solidActor.SetMapper ( solidMapper );<br>
&gt;<br>
&gt;            //Add the actors to the scene<br>
&gt;            _renderer.AddActor(solidActor);<br>
&gt;            _renderer.SetBackground(1, 1, 1); // Background color dark blue<br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>