[vtkusers] vtkGlyph3D

Sam Raby rabysam28 at gmail.com
Wed Apr 25 11:30:44 EDT 2018


Thanks Sankhesh.
What would be an efficient approach to assign HSV color for each of the
points, given that 1) there are a lot of points ~50k, and 2) each point has
it own specific color.

Thanks,



On Monday, April 23, 2018, Sankhesh Jhaveri <sankhesh.jhaveri at kitware.com>
wrote:

> 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/20180425/30ba08b5/attachment-0001.html>


More information about the vtkusers mailing list