From: Hidetoshi NAGAI Date: 2006-02-27T13:46:32+09:00 Subject: Re: ruby vtk bindings From: horndude77@gmail.com Subject: ruby vtk bindings Date: Mon, 27 Feb 2006 04:06:23 +0900 Message-ID: <050510c638b8e1f0d63ba20ee2c1c7ee@ruby-forum.com> > Also it seems the ruby bindings are somewhat old and not much is > happening with them. Is there a gem out there or better documentation? Although I know this is NOT an answer which you want, Ruby/Tk can control VTK with its Tcl-wrapper. :-) For example, if you want to use a VTK-Tcl-script, -------------------------------------------------- require 'tk' VTK_TCLLIB = '/usr/local/lib/vtk/tcl' VTK_EXAMPLE = '/usr/local/src/VTK/VTK/Examples/GUI/Tcl' VTK_DATA = '/usr/local/src/VTK/VTKData' Tk::AUTO_PATH.lappend(VTK_TCLLIB) TkPackage.require('vtk') TkPackage.require('vtkinteraction') Tk.tk_call('set', '::VTK_DATA_ROOT', VTK_DATA) Tk.load_tclscript(File.join(VTK_EXAMPLE, 'ImagePlaneWidget.tcl')) Tk.mainloop -------------------------------------------------- All features of VTK's Tcl-wrapper can be controllable by Tk.tk_call() method. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)