[vtkusers] vtkGlyph3D

Sankhesh Jhaveri sankhesh.jhaveri at kitware.com
Mon Apr 23 11:28:53 EDT 2018


Hi Sam,

While you could use the vtkFollower approach, a better performing approach
would be using the vtkPointGaussianMapper
<https://www.vtk.org/doc/nightly/html/classvtkPointGaussianMapper.html>.
See the ParaView blog post
<https://blog.kitware.com/paraview-5-introducing-the-point-gaussian-representation/>
for examples.
*Note:* You would have to write your own shader preset to render 2D
squares.

Hope that helps,
Sankhesh
​

On Sat, Apr 21, 2018 at 12:22 PM Sam Raby <rabysam28 at gmail.com> wrote:

> Hello,
>
>
> I have an easy question, I think.
>
>
> I have hundreds of points in the 3D space. I need to visualize each of
> these points by a small 2D square, which I implemented. Therefore I have
> now hundreds of these small squares in the 3D space. However the issue is
> as follows:
>
> When I rotate the scene, while all the squares are naturally moving in
> respect to the camera, I want all of the squares keep their orientation
> towards the camera and still be constantly facing the camera. I know if I
> use vtkFollower I could do this, but not sure how to do it for these MANY
> squares in the scene. My pipeline is as follows => All my points are stored
> in one single vtkPolydata and I have assigned a vtkSourcePlane to each of
> these points using vtkGlyph3D.
>
>
> Thanks for any feedback.
>
>
> -Sam
>
> _______________________________________________
> 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:
> https://vtk.org/mailman/listinfo/vtkusers
>
-- 
Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware
<http://www.kitware.com/> | (518) 881-4417
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180423/c1843642/attachment.html>


More information about the vtkusers mailing list