[vtkusers] Fwd: VTK is completely Slow

Thiago Macedo tmacedo29 at gmail.com
Tue Jul 19 15:10:03 EDT 2011


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.



More information about the vtkusers mailing list