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