Dears,<br>I need to display thousands of labels on a 2D image, indicating the coordinates of some particular points.<br>My code works with a limited number of actors, but the rendering crashes on bigger images (more points to display). <br>


Is there a limitation on the maximum number of actors in a scene? Or what&#39;s wrong in my code?<br><br>for (int i=0;i&lt;n;i++)<br>{<br>        vtkVectorText* vecText = vtkVectorText::New();<br>        char *num= ( char* ) malloc ( sizeof ( char ) );<br>


        sprintf ( num, &quot;%d,%d&quot;,  cx[i] ,  cy[i]);<br>        vecText-&gt;SetText(num);<br>        <br>        vtkPolyDataMapper *txtMapper = vtkPolyDataMapper::New();<br>        <br>        txtMapper-&gt;SetInput( vecText-&gt;GetOutput() );<br>


        vtkActor *txtActor = vtkActor::New();<br>        <br>        txtActor-&gt;SetMapper(txtMapper)<div id=":2aj" class="ii gt">;<br>        <br>        txtActor-&gt;SetPosition (  (c-&gt;GetX()-double(size[0]/2))*this-&gt;fluoro1-&gt;GetSpacing(),(c-&gt;GetY()-double(size[0]/2))*this-&gt;fluoro1-&gt;GetSpacing(), 2 );<br>


        txtActor -&gt; GetProperty() -&gt; SetColor ( 1, 0, 0 );<br>        txtActor -&gt; GetProperty() -&gt; SetSpecular ( 0.4 );<br>        txtActor -&gt; SetScale(0.5+vnl_math_rnd(BLOB_DISTANCE*2/10));<br>        txtActor -&gt; PickableOff();<br>


        <br>        renderer-&gt;AddActor(txtActor);<br>        <br>        txtMapper-&gt;Delete();<br>        vecText-&gt;Delete();<br>        free(num);<br clear="all">}<br><br><br>imView-&gt;Render();<br><br>And I get the error:<br>

vbo/vbo_save_api.c:216: map_vertex_store: Assertion &#39;vertex_store-buffer&#39; failed<br><br><br>Thank you in advance<br>
<br>Luca</div><br clear="all"><br>-- <br>Eng. Luca Tersi<br>PhD Student in Bioengineering<br><br>University of Bologna <br>DEIS - Department of Electronics, Computer Science, and Systems<br>Via Venezia 52, I-47023 Cesena (FC) - Italy<br>
 <br>--------------------------------------<br>Phone: (+39) 0547 3 38953<br>Mobile: (+39) 349 84 92 262<br>Fax: (+39) 0522 18 40 145<br>Skype: lucatersi<br>E-Mail : <br><a href="mailto:luca.tersi@unibo.it">luca.tersi@unibo.it</a><br>
<a href="mailto:lucatersi@gmail.com">lucatersi@gmail.com</a><br>--------------------------------------<br>