<html><div style='background-color:'><DIV>
<P>Devrim,</P>
<P>&nbsp; 3 million points is a lot of information in one view! Could you try subsampling? vtkMaskPoints could be very useful to get a random subset, vtkThreshold to select points on the basis of scalar values. Also what about a region (or volume) of interest?</P>
<P>&nbsp; Dave Pont<BR><BR></P></DIV>
<DIV></DIV>
<DIV></DIV>&gt;From: Berk Geveci <BERK.GEVECI@KITWARE.COM>
<DIV></DIV>&gt;To: Devrim AKÇA <DAKCA@INS.ITU.EDU.TR>
<DIV></DIV>&gt;CC: VTK Users Group <VTKUSERS@PUBLIC.KITWARE.COM>
<DIV></DIV>&gt;Subject: Re: [vtkusers] 3D PointCloud Visualization VERSUS Memory usage 
<DIV></DIV>&gt;Date: 18 Jun 2002 16:43:32 -0400 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Did you try switching to immediate mode rendering ? 
<DIV></DIV>&gt;Check 
<DIV></DIV>&gt;http://public.kitware.com/cgi-bin/vtkfaq?req=show&amp;file=faq03.007.htp 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Also, you should use 
<DIV></DIV>&gt;vtkPolyData::SetVerts() 
<DIV></DIV>&gt;not 
<DIV></DIV>&gt;vtkPolyData::SetPolys() 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;You won't gain any memory but it's a better way. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-Berk 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;On Tue, 2002-06-18 at 18:20, Devrim AKÇA wrote: 
<DIV></DIV>&gt; &gt; Hello (from an unexperienced VTK user) to all VTK users, 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; I have a Point Cloud which have 3 000 000 points. Every point have X-Y-Z 
<DIV></DIV>&gt; &gt; coordinates (float) and an intensity value (integer). How can I visualize 
<DIV></DIV>&gt; &gt; this point cloud in a afficiently manner (with using minumum MEMORY)? 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; For visualization of this point cloud, I write a code (below). But when it 
<DIV></DIV>&gt; &gt; runs, it takes approximately 250MB memory from OS. But the size of my data 
<DIV></DIV>&gt; &gt; approximately 40MB. What is the meaning of this big difference? 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; So, it works very very slowly. Is there another efficiently solution? 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; //---------------------------------------------------------- 
<DIV></DIV>&gt; &gt; float x[3]; 
<DIV></DIV>&gt; &gt; vtkIdType pts[1]; 
<DIV></DIV>&gt; &gt; int iPON; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; //.... 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; vtkPolyData *cloud = vtkPolyData::New(); 
<DIV></DIV>&gt; &gt; vtkPoints *points = vtkPoints::New(); 
<DIV></DIV>&gt; &gt; vtkCellArray *cells = vtkCellArray::New(); 
<DIV></DIV>&gt; &gt; vtkIntArray *intensities = vtkintArray::New(); 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; //loop started... 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; points-&gt;InsertPoint(i,x); 
<DIV></DIV>&gt; &gt; cells-&gt;InsertNextCell(1,pts); 
<DIV></DIV>&gt; &gt; intensities-&gt;InsertTuple(i,iPON); 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; //loop ended... 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; cloud-&gt;SetPoints(points); points-&gt;Delete(); 
<DIV></DIV>&gt; &gt; cloud-&gt;SetPolys(cells); cells-&gt;Delete(); 
<DIV></DIV>&gt; &gt; cloud-&gt;GetPointData()-&gt;SetScalars(intensities); intensities-&gt;Delete(); 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; vtkPolyDataMapper *cloudMapper = vtkPolyDataMapper::New(); 
<DIV></DIV>&gt; &gt; cloudMapper-&gt;SetInput(cloud); 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; vtkActor *cloudActor = vtkActor::New(); 
<DIV></DIV>&gt; &gt; cloudActor-&gt;SetMapper(cloudMapper); 
<DIV></DIV>&gt; &gt; cloudActor-&gt;GetProperty()-&gt;SetRepresentationToPoints(); 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; //...... 
<DIV></DIV>&gt; &gt; //----------------------------------------------------------- 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; My Specifications: C++Builder 5.0 + WIN2000 
<DIV></DIV>&gt; &gt; Pentium III CPU + 128MB Memory 
<DIV></DIV>&gt; &gt; ATI 3D RAGE PRO AGP 2X (8 MB) displayCard 
<DIV></DIV>&gt; &gt; //----------------------------------------------------------- 
<DIV></DIV>&gt; &gt; Is there a more efficient and more faster way to visualize this PointCloud? 
<DIV></DIV>&gt; &gt; If anybody prefer something to me I would be pleased... 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Best Regards... 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; 
<DIV></DIV>&gt; &gt; Ass.Res.M.Devrim AKCA 
<DIV></DIV>&gt; &gt; Istanbul Technical University 
<DIV></DIV>&gt; &gt; Dep. of Geodesy and Photogrammetry 
<DIV></DIV>&gt; &gt; Division of Photogrammetry 
<DIV></DIV>&gt; &gt; 80626-Maslak/Istanbul TURKEY 
<DIV></DIV>&gt; &gt; +90 212 2856553 
<DIV></DIV>&gt; &gt; +90 533 2200022 
<DIV></DIV>&gt; &gt; _______________________________________________ 
<DIV></DIV>&gt; &gt; This is the private VTK discussion list. 
<DIV></DIV>&gt; &gt; Please keep messages on-topic. Check the FAQ at: 
<DIV></DIV>&gt; &gt; Follow this link to subscribe/unsubscribe: 
<DIV></DIV>&gt; &gt; http://public.kitware.com/mailman/listinfo/vtkusers 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;_______________________________________________ 
<DIV></DIV>&gt;This is the private VTK discussion list. 
<DIV></DIV>&gt;Please keep messages on-topic. Check the FAQ at: 
<DIV></DIV>&gt;Follow this link to subscribe/unsubscribe: 
<DIV></DIV>&gt;http://public.kitware.com/mailman/listinfo/vtkusers 
<DIV></DIV></div><br clear=all><hr>MSN Photos is the easiest way to share and print your photos: <a href='http://g.msn.com/1HM504201/43'>Click Here</a><br></html>