[vtkusers] Fwd: VTK is completely Slow
Stephane PLOIX
stephane.ploix at edf.fr
Wed Jul 20 04:48:01 EDT 2011
Hi,
You could use the vtkMultiBlockDataSet structure with one block per object
(look at the vtkMultiBlockMergeFilter to merge your objects into one
vtkMultiBlockDataSet ).
You will then have only one actor per vtkMultiBlockDataSet, which can
speed up your rendering.
You can still individually select one block from a multiblock.
Stephane
Stephane PLOIX
Pilote Opérationnel - Visualisation scientifique
EDF - R&D
SINETICS
1, Av du Général de Gaulle
92140 Clamart
stephane.ploix at edf.fr
Tél. : +33 (0) 1 47 65 51 10
Un geste simple pour l'environnement, n'imprimez ce message que si vous en
avez l'utilité.
tmacedo29 at gmail.com
Envoyé par : vtkusers-bounces at vtk.org
19/07/2011 21:10
A
daviddoria at gmail.com
cc
vtkusers at vtk.org
Objet
Re: [vtkusers] Fwd: VTK is completely Slow
Hi David,
Would it make impossible to select each 3D entity? I mean, now I'm
able to select a cylinder and not all the objects.
Using just one mapper/actor will I be able to keep this selection?
Regards
On Tue, Jul 19, 2011 at 3:18 PM, David Doria <daviddoria at gmail.com> wrote:
> On Tue, Jul 19, 2011 at 2:15 PM, Thiago Macedo <tmacedo29 at gmail.com>
wrote:
>> Hi,
>>
>> I'm developing a CAD based software. At some point, the
>> app converts the 2D drawing into a 3D huge scene.
>> The main problem is: It's very slow!
>> I'm not using any complex algorithm neither complex structure. The
>> 'translation' between 2D and 3D is very fast, and creates basic
>> geometries. E.g..:
>> A hydraulic tube is converted into a cylinder (vtkCylinderSource), the
>> connection between 2 hydraulic tubes is a sphere (vtkSphereSource);
>> A 2D line is converted into a 3D line (vtkLine)
>> All of 3D entities has a mapper and an actor.
>> I'm working with a lot of (closer than million) 2D entities, and the
>> 3D scene is totally slow.
>> I've tried to use all tips wrote in the wiki (
>> http://www.vtk.org/Wiki/VTK/FAQ - How to handle large data sets in VTK
>> ) and I have just a little improvement.
>> I searched into the books (v5) and was not able to find anything to
>> help me. I think it should be faster if I use simple structures like
>> cylinders and lines like I'm doing.
>> Is there a way to make it faster?
>>
>> Thank you in Advance
>> Best Regards
>>
>> --
>> Thiago B. Macedo
>
> "All of 3D entities has a mapper and an actor."
>
> I think that may be your problem. I would try useing the AppendFilter
> (http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/AppendFilter) to
> create a single data set that you can create a single mapper/actor
> from.
>
> See if that help and let us know.
>
> David
>
--
Thiago B. Macedo
Esta mensagem pode conter informação confidencial e/ou privilegiada.
Se você não for o destinatário ou a pessoa autorizada a receber
esta mensagem, não pode usar, copiar ou divulgar as informações nela
contidas ou tomar qualquer ação baseada nessas informações.
Se você recebeu esta mensagem por engano, por favor, avise
imediatamente o remetente, respondendo o e-mail e em seguida apague-a.
Agradeço a sua cooperação.
This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for
the addressee, you must not use, copy, disclose or take any action
based on this message or any information herein. If you have
received this message in error, please advise the sender immediately
by reply e-mail and delete this message. Thank you for your
cooperation.
_______________________________________________
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
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
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.
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.
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.
____________________________________________________
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.
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.
E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110720/4d609b4b/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1816 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110720/4d609b4b/attachment.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1151 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110720/4d609b4b/attachment-0001.gif>
More information about the vtkusers
mailing list