[vtkusers] found 'answer' to vtk and Matlab: compatible with vtk3.2 only!

Florin Popescu popescu at tecno.ior.it
Fri Apr 19 05:16:35 EDT 2002


This is my final posting about Matlab and vtk, sorry to bother y'all.

After 2 weeks of frustration, I found that with vtk3.2 pre-compiled 
installation (no cmake needed!)
it works under Matlab 6.0 and 6.1 and winNT/win2000. all one needs to do is 
to add to classpath.txt
C:/Programs/vtk32/java/vtk.jar
C:/Programs/vtk32/java
where $vtkhome is the default C:/Programs/vtk32 (if not, find vtk.jar)
restart Matlab and run the cone example and GO!
the .dlls are placed in system32 automatically.
If you are lucky to read this first, the whole set up takes about 10 minutes.
I don't know why vtk4.0 refuses to work, even if compiled under cmake for 
java 1.1.8 wrapping (default compiled for java1.4? matlab's jre is 1.1.8 - 
see my previous postings). I wish someone explained all this to me, but I 
am happy to finally start working on real programs and stop worrying about 
the bomb. I hope this post will be useful to others. Adding vtk to Matlab 
is like having some sort of a numerics/visualization Batmobile, and if the 
new features of vtk4.0 were available (and the inevitable 3.2 bugs were 
'evitable'), so much the better for us all.
Next I will try itk and Matlab.
Happy visualization.
Florin




More information about the vtkusers mailing list