[vtkusers] Draw thousands of different size and color 3D rectangles several times per second

Bill Lorensen bill.lorensen at gmail.com
Tue Feb 28 16:36:17 EST 2017


Use vtkGlyph3D to efficiently render glyphs of your choice.
Type
site:vtk.org/Wiki/VTK/Examples vtkGlyph3D
into google to see how to use it.

Also, the most recent VTK has a number of point cloud processing. See:
http://www.vtk.org/Wiki/VTK/Examples/Cxx#Point_cloud_operations


On Tue, Feb 28, 2017 at 3:29 PM, David Levy <david.levy at leddartech.com> wrote:
> Hello,
>
> Im new to VTK  so I’m trying to find a good solution to my representation.
>
>
>
> I receive from a sensor a point cloud and I would like to represent it. So
> far, I’ve been using point cloud library with Qt and it works fine.
>
>
>
> However, now I need to draw a 3D rectangle around each point of the point
> cloud and the computation is slow. At the moment, the point cloud is 1024
> points, but it will get bigger soon.
>
>
>
>
>
> My current code is using PCL / QT :
>
>
>
> Viewer->addCube (lPoint1.x , lPoint2.x, lPoint1.y, lPoint2.y, lPoint1.z,
> lPoint2.z,  lColor.redF(), lColor.greenF(), lColor.blueF(),
> "cube"+std::to_string(i), 0);
>
>
>
> For each point, then VTKWidget->update ();
>
>
>
>
>
> Is there a better way to draw lot of rectangles (not necessarily using PCL)
> ? I’ve found this old post :
> http://vtk.1045678.n5.nabble.com/display-tens-of-thousands-of-cubes-td5463661.html
> but from what I understand, it can only draw cubes and not rectangles.
>
>
>
> Thanks,
>
> David
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list