[vtkusers] VTK - Matlab

Paolo Bertolo paolo.bertolo at libero.it
Sat Sep 10 06:16:08 EDT 2005


hi everyone,

thanks to your previous replies to my past request, I managed to  
compile VTK+Java wrapping both on my G4 Mac+OS X.4 and on an HP-dual  
Xeon with Fedora Core 4.
For the record, it seems I was using an old release of CMake that  
didn't recognize the hints for Mac+Java building. As soon as I  
updated CMake, everything worked fine.

But now I have a new kind of problem.
Please note that since I am just _evaluating_ the hopefully possible  
integration of VTK into Matlab  using Java wrapping, I am _not_ a vtk  
expert at all.

The problem I have is as follows.
I set up my Matlab environment (14sp2) in order to be able to have  
access to the vtk.jar package. It works.
But when I try to run even the easiest code the result is quite  
disappointing, since the vtkRenderWindow is regularly opened, but  
then everything freezes, and I have to kill Matlab (kill -9 !)
For example, when I run the usual cone1 tutorial example (converted  
accordingly to the Matlab syntax), the renderer window is opened, the  
cone spins, but then it's not possible to interact nor with Matlab  
neither with the vtk window, and I have to kill and restart Matlab.

I would say that Matlab should know a little bit more about objects  
and classes handled by VTK...

Is there anyone that is successfully using VTK calling it from within  
Matlab? Has anyone have some working Matlab-VTK code template?

Thanks in advance!

Paolo Bertolo,
Italy




More information about the vtkusers mailing list