Many thanks Eric for your advice and your solution!<br><br>Regards,<br>Thanos<br><br><div class="gmail_quote">2010/4/13 Eric E. Monson <span dir="ltr"><<a href="mailto:emonson@cs.duke.edu">emonson@cs.duke.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;">Hey Bill,<div><br></div><div>That is one situation where using the vtkGlyphSource2D with SetGlyphTypeToVertex() as the Source to your current vtkGlyph3D might work out well. Each vertex is really only one point, which is good for memory and for rendering speed. </div>
<div><br></div><div>There is also some code in the ParaView repository for doing Point Sprites, but it's not something that's in the straight VTK collection.</div><div><br></div><div>If the memory problem is stemming from not just the number of points, but the number of scalars/vectors/tensors which are getting copied to each point, too, then it might be worth copying only the needed attributes to the data which will be glyphed with so many points.</div>
<div><br></div><div>Just as a side note, ParaView (<a href="http://www.paraview.org" target="_blank">www.paraview.org</a>), which is built on top of VTK, works well for me when I'm trying to figure out how to build up my visualization. It doesn't have everything that's in VTK, but a lot of the parts are there, and it's a little easier sometimes to just play with combinations of representations to see what's possible or what looks good.</div>
<div><br></div><div>Talk to you later,</div><div>-Eric</div><div><div></div><div class="h5"><div><br></div><div><br><div><div>On Apr 13, 2010, at 4:50 AM, Bill Chivas wrote:</div><br><blockquote type="cite">Hi Jerome,<br>
<br>good argument!<br>I use glyph mechanism in order to represent the points on the grid. Can you think of other way to do that?<br>Again, it seems to me impossible that there is no way with vtk to visualize the points and the grid at the same time!<br>
<br>Bill<br><br><div class="gmail_quote">2010/4/13 Jérôme <span dir="ltr"><<a href="mailto:jerome.velut@gmail.com" target="_blank">jerome.velut@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>The "not able to allocate..." message is the usual one when you don't have enough memory.<br>Don't forget that your sphere will be copied at each input point. Thus the final number of <br>points will be:<br>
number_of_sphere_points * number_of_input_points<br><br>eg. 20x20 spheres = 400 points * 75k = 30M<br><br>each input point data is copied over each sphere point. It multiplies the amount of needed <br>memory as well (fo instance, a tensor multiplies by 9, if it's double data it is 4 octets <br>
more, etc.)<br><br>HTH <br>Jerome<br><br><br><div class="gmail_quote"><div>2010/4/13 Sebastian Gatzka <span dir="ltr"><<a href="mailto:sebastian.gatzka@stud.tu-darmstadt.de" target="_blank">sebastian.gatzka@stud.tu-darmstadt.de</a>></span><br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">I'm
experiencing the same problem!<div><div></div><div><br>
Any ideas? Lack of memory?<br>
</div></div></font></font><div><div></div><div><br>
Am 13.04.2010 10:27, schrieb Bill Chivas:
<blockquote type="cite"><div><div></div><div>Hi all,<br>
<br>
i use vtkGlyph3D with source a vtkSphereSource and input a
vtkunstructuredgrid.<br>
Grids with small number of vertices (approximately <10K ) are
glyphed ok.<br>
But large grids (e.g. vertices==75K) are not glyphed! A vtk message
appears saying "not able to allocate...something" (i can't read the
whole).<br>
<br>
What is the problem? Large grids with many vertices can't be glyphed?<br>
<br>
Bill<br>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
</div></div></div><div><div></div><div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></div></div></blockquote></div><br>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com/" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br>
_______________________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/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" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div></div></div></div></blockquote></div><br>