<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2> I wanted to put VTK working within Matlab
(R13) by importing Java classes but I didn't succeed.<BR>I have done the
following :<BR>1. Installation of VTK42 (precompiled) for Windows
including vtk.jar<BR>2. Installation of j2sdk1.4.2_02 (<A
href="http://java.sun.com/products/jdk/1.1/">http://java.sun.com/products/jdk/1.1/</A>)<BR>3.
Run Matlab R13. <BR>4. Include in the file 'classpath.txt' the
directory of java classes.<BR> c:/Program
Files/Vtk42/java/vtk.jar<BR> c:/Program
Files/Vtk42/java<BR>5. Restart Matlab. Use the following sample code
to verify everthing is working:<BR>%cone.m<BR>import
vtk.*<BR>panel=vtkPanel; % essential first step for all VTK
java<BR>ren1=vtkRenderer;<BR>renWin=vtkRenderWindow;<BR>renWin.AddRenderer(ren1);<BR>iren=vtkRenderWindowInteractor;<BR>iren.SetRenderWindow(renWin);<BR>cam1=ren1.GetActiveCamera;<BR>cam1.SetEyeAngle(5)</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>cone=vtkConeSource;<BR>cone.SetResolution(8)<BR>coneMapper=vtkPolyDataMapper;<BR>coneMapper.SetInput(cone.GetOutput);<BR>coneActor=vtkActor;<BR>coneActor.SetMapper(coneMapper);<BR>ren1.AddActor(coneActor);<BR>iren.Initialize;</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>% end of file</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>6. Launching the program cone, it stops at the
second line<BR>because Matlab doesn't know vtkPanel classe.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Can anyone help me ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Thank you for your attention.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Philippe<BR></FONT></DIV></BODY></HTML>