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