[vtkusers] Add another module in Tcl

H.Vidal, Jr. hvidal at tesseract-tech.com
Wed Aug 16 18:14:45 EDT 2006


Write it in C++, and wrap it in swig. It's easy, it's fast,
learning curve is very low, it's probably 'lighter' than
doing it via wrapping mechanism in VTK.

http://www.swig.org

hv

Gheorghe Postelnicu wrote:
> Hi Mark,
> 
> I am trying to solve a Laplace equation to get some profile lines. I
> am specifying the ROI in a vtk GUI that I have in Tcl, but I figured
> it would make more sense to do the numerical stuff in C++.
> 
> Thanks,
> 
> On 8/16/06, Mark B Stucky <mstucky5 at cox.net> wrote:
> 
>>
>> ----- Original Message -----
>> From: "Gheorghe Postelnicu" <gheorghe.postelnicu at gmail.com>
>> To: <vtkusers at vtk.org>
>> Sent: Wednesday, August 16, 2006 4:21 PM
>> Subject: [vtkusers] Add another module in Tcl
>>
>>
>> > Hi,
>> >
>> > I am building a small application in VTK and I would prefer keeping my
>> > interface in a script language, but I need to do some computation
>> > somewhere in my module. For that, I think the best thing to do is to
>> > create a library that would be in the VTK_AUTOLOAD_PATH. The VTK
>> > User's Guide contains an example of such factory.
>> >
>> > However, there is no mention on how to compile this library in order
>> > for it to be available for VTK Tcl scripts.
>> >
>> > Any examples or pointers on how to do this would be greatly 
>> appreciated.
>> >
>> > Thanks,
>> > --
>> > Gheorghe Postelnicu, PhD
>> > MGH, Harvard Medical School
>>
>> What kind of computation do you need to do?  If it's not too much
>> data and/or computationally intense, you might be able to do the
>> computation directly within the Tcl script.
>>
>> --Mark
>>
>>
> 
> 




More information about the vtkusers mailing list