Thanks Sankhesh.<div>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.</div><div><br></div><div>Thanks,</div><div><br><div><br></div><div><br>On Monday, April 23, 2018, Sankhesh Jhaveri <<a href="mailto:sankhesh.jhaveri@kitware.com" target="_blank">sankhesh.jhaveri@kitware.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:"Lucida Sans",Cantarell,Verdana,sans-serif;color:rgb(11,83,148)"><p style="margin:0px 0px 1.2em!important">Hi Sam,</p>
<p style="margin:0px 0px 1.2em!important">While you could use the vtkFollower approach, a better performing approach would be using the <a href="https://www.vtk.org/doc/nightly/html/classvtkPointGaussianMapper.html" target="_blank">vtkPointGaussianMapper</a>.<br>See the <a href="https://blog.kitware.com/paraview-5-introducing-the-point-gaussian-representation/" target="_blank">ParaView blog post</a> for examples.<br><strong>Note:</strong> You would have to write your own shader preset to render 2D squares. </p>
<p style="margin:0px 0px 1.2em!important">Hope that helps,<br>Sankhesh</p>
<div title="MDH:SGkgU2FtLDxkaXY+PGJyPjwvZGl2PjxkaXY+V2hpbGUgeW91IGNvdWxkIHVzZSB0aGUgdnRrRm9s
bG93ZXIgYXBwcm9hY2gsIGEgYmV0dGVyIHBlcmZvcm1pbmcgYXBwcm9hY2ggd291bGQgYmUgdXNp
bmcgdGhlIFt2dGtQb2ludEdhdXNzaWFuTWFwcGVyXSg8YSBocmVmPSJodHRwczovL3d3dy52dGsu
b3JnL2RvYy9uaWdodGx5L2h0bWwvY2xhc3N2dGtQb2ludEdhdXNzaWFuTWFwcGVyLmh0bWwiPmh0
dHBzOi8vd3d3LnZ0ay5vcmcvZG9jL25pZ2h0bHkvaHRtbC9jbGFzc3Z0a1BvaW50R2F1c3NpYW5N
YXBwZXIuaHRtbDwvYT4pLjwvZGl2PjxkaXY+U2VlIHRoZSBbUGFyYVZpZXcgYmxvZyBwb3N0XSg8
YSBocmVmPSJodHRwczovL2Jsb2cua2l0d2FyZS5jb20vcGFyYXZpZXctNS1pbnRyb2R1Y2luZy10
aGUtcG9pbnQtZ2F1c3NpYW4tcmVwcmVzZW50YXRpb24vIj5odHRwczovL2Jsb2cua2l0d2FyZS5j
b20vcGFyYXZpZXctNS1pbnRyb2R1Y2luZy10aGUtcG9pbnQtZ2F1c3NpYW4tcmVwcmVzZW50YXRp
b24vPC9hPikgZm9yIGV4YW1wbGVzLjwvZGl2PjxkaXY+KipOb3RlOioqIFlvdSB3b3VsZCBoYXZl
IHRvIHdyaXRlIHlvdXIgb3duIHNoYWRlciBwcmVzZXQgdG8gcmVuZGVyIDJEIHNxdWFyZXMuJm5i
c3A7PC9kaXY+PGRpdj48YnI+PC9kaXY+PGRpdj5Ib3BlIHRoYXQgaGVscHMsPC9kaXY+PGRpdj48
ZyBjbGFzcz0iZ3JfIGdyXzIwNyBnci1hbGVydCBncl9zcGVsbCBncl9pbmxpbmVfY2FyZHMgZ3Jf
cnVuX2FuaW0gQ29udGV4dHVhbFNwZWxsaW5nIGlucy1kZWwgbXVsdGlSZXBsYWNlIiBpZD0iMjA3
IiBkYXRhLWdyLWlkPSIyMDciPlNhbmtoZXNoPC9nPjwvZGl2Pg==" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Sat, Apr 21, 2018 at 12:22 PM Sam Raby <<a href="mailto:rabysam28@gmail.com" target="_blank">rabysam28@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px">Hello,</p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px"><br></p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px">I have an easy question, I think. </p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px"><br></p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px">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:</p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px">When I rotate the scene, while all the<span> </span><span style="font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:16px">squares </span>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.<span style="font-size:12pt"> 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 </span><span style="font-size:12pt">vtkGlyph3D.</span></p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px"><span style="font-size:12pt"><br></span></p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px"><span style="font-size:12pt">Thanks for any feedback.</span></p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px"><span style="font-size:12pt"><br></span></p><p style="color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif;font-size:16px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);margin-top:0px;margin-bottom:0px"><span style="font-size:12pt">-Sam</span></p><br></div>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FA<wbr>Q</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listin<wbr>fo/vtkusers</a><br>
</blockquote></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-family:"proza libre",sans-serif;color:rgb(0,56,107)"><h5 style="margin:1.3em 0px 1em;padding:0px;font-size:1.1em;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);font-weight:bold;color:rgb(11,65,148)">Sankhesh Jhaveri</h5>
<h6 style="margin:1.3em 0px 1em;padding:0px;font-size:1em;color:rgb(11,83,148);font-family:"open sans",sans-serif;font-weight:normal"><em>Sr. Research & Development Engineer</em> | <a href="http://www.kitware.com/" target="_blank">Kitware</a> | (518) 881-4417</h6>
<div title="MDH:PGIgc3R5bGU9ImZvbnQtZmFtaWx5OiB2ZXJkYW5hLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDEx
LCA4MywgMTQ4KTsiPjxmb250IHNpemU9IjIiPiMjIyMjU2Fua2hlc2ggSmhhdmVyaTwvZm9udD48
L2I+PGRpdj48Zm9udCBjb2xvcj0iIzBiNTM5NCIgZmFjZT0idmVyZGFuYSwgc2Fucy1zZXJpZiIg
c2l6ZT0iMiI+PGI+PGJyPjwvYj48L2ZvbnQ+PGRpdj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6
IGFyaWFsLCBzYW5zLXNlcmlmOyBjb2xvcjogcmdiKDExLCA4MywgMTQ4KTsiPjxzcGFuIHN0eWxl
PSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsiPjxpPiMjIyMjIypTci4gUmVzZWFy
Y2ggJmFtcDsgRGV2ZWxvcG1lbnQgRW5naW5lZXIqPC9pPiZuYnNwO3wmbmJzcDs8L3NwYW4+PC9z
cGFuPjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFuYSwgc2Fucy1zZXJpZjsgY29sb3I6
IHJnYigxMSwgODMsIDE0OCk7Ij48YSBocmVmPSJodHRwOi8vd3d3LmtpdHdhcmUuY29tLyIgdGFy
Z2V0PSJfYmxhbmsiIHN0eWxlPSJjb2xvcjogcmdiKDE3LCA4NSwgMjA0KTsiPktpdHdhcmU8L2E+
Jm5ic3A7fCZuYnNwOzwvc3Bhbj48c3BhbiBzdHlsZT0iZm9udC1mYW1pbHk6IHZlcmRhbmEsIHNh
bnMtc2VyaWY7IGNvbG9yOiByZ2IoMTEsIDgzLCAxNDgpOyI+KDUxOCkgODgxLTQ0MTc8L3NwYW4+
PGJyPjwvZGl2PjxkaXY+PGRpdj48ZGl2PjxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogdmVyZGFu
YSwgc2Fucy1zZXJpZjsgY29sb3I6IHJnYigxMSwgODMsIDE0OCk7Ij48L3NwYW4+PC9kaXY+PC9k
aXY+PC9kaXY+PC9kaXY+" style="height:0px;width:0px;max-height:0px;max-width:0px;overflow:hidden;font-size:0em;padding:0px;margin:0px">​</div></div></div></div>
</blockquote></div></div>