<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">You could use the vtkMultiBlockDataSet
structure with one block per object (look at the </font><font size=3>vtkMultiBlockMergeFilter
</font><font size=2 face="sans-serif">to merge your objects into one vtkMultiBlockDataSet
). </font>
<br><font size=2 face="sans-serif">You will then have only one actor per
&nbsp;vtkMultiBlockDataSet, which can speed up your rendering. </font>
<br><font size=2 face="sans-serif">You can still individually select one
block from a multiblock.<br>
</font>
<br><font size=2 face="sans-serif">Stephane<br>
<br>
</font>
<table>
<tr valign=top>
<td rowspan=2><font size=2 face="sans-serif">&nbsp;</font><img src=cid:_1_0B42E4280B42E040002FC650C12578D3><font size=2 face="sans-serif">
</font>
<td><font size=1 face="sans-serif">&nbsp;</font>
<tr valign=top>
<td><font size=1 color=#ff8100 face="Arial"><b>Stephane PLOIX</b></font><font size=1 color=#ff8100 face="Arial"><b><br>
Pilote Opérationnel - Visualisation scientifique</b></font><font size=1 color=#0062e1 face="Arial"><br>
EDF - R&amp;D<br>
SINETICS<br>
1, Av du Général de Gaulle<br>
92140 Clamart</font><font size=1 color=#0062e1 face="sans-serif"><br>
 </font>
<br><font size=1 color=#0062e1 face="Arial"><b>stephane.ploix@edf.fr</b></font>
<br><font size=1 color=#0062e1 face="Arial">Tél. : +33 (0) 1 47 65 51
10</font>
<tr>
<td valign=top><font size=2 face="sans-serif">&nbsp;</font><img src=cid:_1_0B42F33C0B42EF54002FC650C12578D3><font size=2 face="sans-serif">
</font>
<td><font size=1 color=#0062e1 face="Arial">Un geste simple pour l'environnement,
n'imprimez ce message que si vous en avez l'utilité.</font></table>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>tmacedo29@gmail.com</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : vtkusers-bounces@vtk.org</font>
<p><font size=1 face="sans-serif">19/07/2011 21:10</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">daviddoria@gmail.com</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">vtkusers@vtk.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [vtkusers] Fwd: VTK is completely
Slow</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><tt><font size=2>Hi David,<br>
<br>
Would it make impossible to select each 3D entity? I mean, now I'm<br>
able to select a cylinder and not all the objects.<br>
Using just one mapper/actor will I be able to keep this selection?<br>
<br>
Regards<br>
<br>
On Tue, Jul 19, 2011 at 3:18 PM, David Doria &lt;daviddoria@gmail.com&gt;
wrote:<br>
&gt; On Tue, Jul 19, 2011 at 2:15 PM, Thiago Macedo &lt;tmacedo29@gmail.com&gt;
wrote:<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; I'm developing a CAD based software. At some point, the<br>
&gt;&gt; app converts the 2D drawing into a 3D huge scene.<br>
&gt;&gt; The main problem is: It's very slow!<br>
&gt;&gt; I'm not using any complex algorithm neither complex structure.
The<br>
&gt;&gt; 'translation' between 2D and 3D is very fast, and creates basic<br>
&gt;&gt; geometries. E.g..:<br>
&gt;&gt; A hydraulic tube is converted into a cylinder (vtkCylinderSource),
the<br>
&gt;&gt; connection between 2 hydraulic tubes is a sphere (vtkSphereSource);<br>
&gt;&gt; A 2D line is converted into a 3D line (vtkLine)<br>
&gt;&gt; All of 3D entities has a mapper and an actor.<br>
&gt;&gt; I'm working with a lot of (closer than million) 2D entities, and
the<br>
&gt;&gt; 3D scene is totally slow.<br>
&gt;&gt; I've tried to use all tips wrote in the wiki (<br>
&gt;&gt; http://www.vtk.org/Wiki/VTK/FAQ - How to handle large data sets
in VTK<br>
&gt;&gt; ) and I have just a little improvement.<br>
&gt;&gt; I searched into the books (v5) and was not able to find anything
to<br>
&gt;&gt; help me. I think it should be faster if I use simple structures
like<br>
&gt;&gt; cylinders and lines like I'm doing.<br>
&gt;&gt; Is there a way to make it faster?<br>
&gt;&gt;<br>
&gt;&gt; Thank you in Advance<br>
&gt;&gt; Best Regards<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Thiago B. Macedo<br>
&gt;<br>
&gt; &quot;All of 3D entities has a mapper and an actor.&quot;<br>
&gt;<br>
&gt; I think that may be your problem. I would try useing the AppendFilter<br>
&gt; (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/AppendFilter) to<br>
&gt; create a single data set that you can create a single mapper/actor<br>
&gt; from.<br>
&gt;<br>
&gt; See if that help and let us know.<br>
&gt;<br>
&gt; David<br>
&gt;<br>
<br>
<br>
<br>
-- <br>
Thiago B. Macedo<br>
<br>
Esta mensagem pode conter informação confidencial e/ou privilegiada.<br>
Se você não for o destinatário ou a pessoa autorizada a receber<br>
esta mensagem, não pode usar, copiar ou divulgar as informações nela<br>
contidas ou tomar qualquer ação baseada nessas informações.<br>
Se você recebeu esta mensagem por engano, por favor, avise<br>
imediatamente o remetente, respondendo o e-mail e em seguida apague-a.<br>
Agradeço a sua cooperação.<br>
<br>
This message may contain confidential and/or privileged information.<br>
If you are not the addressee or authorized to receive this for<br>
the addressee, you must not use, copy, disclose or take any action<br>
based on this message or any information herein. If you have<br>
received this message in error, please advise the sender immediately<br>
by reply e-mail and delete this message. Thank you for your<br>
cooperation.<br>
_______________________________________________<br>
Powered by www.kitware.com<br>
<br>
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br>
<br>
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.vtk.org/mailman/listinfo/vtkusers<br>
</font></tt>
<br><font face="monospace"><br>
<br>
<br>
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.<br>
<br>
Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.<br>
<br>
Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.<br>
____________________________________________________<br>
<br>
This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.<br>
<br>
If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.<br>
<br>
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.</font>