Posted by
Gheorghe Postelnicu on
URL: http://quantlib.414.s1.nabble.com/Surface-interface-tp11372p11374.html
That sounds great. I have experienced a part of the VTK "steep" curve
and I already have applications using the SWIG bindings for VTK and
Python. The only tricky thing for me there is that if code other than
the VTK one is needed in C++, then indeed SWIG is needed, but I
couldn't find a way to pass objects from the VTK bindings (which are
not exactly SWIG) and my own SWIG library. My solution in the past was
to write wrappers that would perform the data transfer in Python.
Just a question: why do you think SWIG would be needed in this case?
Thanks,
On 11/27/06, Joseph Wang <
[hidden email]> wrote:
> There is something that would be very useful would be if you could find or
> point me to an example using VTK or mayavi which draws a surface and a
> scatterplot using the python interface.
>
> VTK has a really steep learning curve, and if you can post "hello world" in
> VTK that would be very useful.
>
> Thinking though the design a bit. What I was thinking of doing is to use the
> TimeSeries template and create a TimeSeries of sampled curves or a TimeSeries
> of functions. This could then be inserted into an interpolator which would
> return a surface which could be plotted by an external function.
>
> There also may be a need for a Curve object that does the same thing as
> Surface (i.e. provide an external standard interface for 1-d objects). Curve
> would require an Interval.
>
> The way that I was thinking of moving forward was to create a TestSurface
> object which just plots a 2-d sinusodial function. Get the SWIG bindings
> working, and then try to use that Surface to plot a hello world surface.
> Once I can see what I'm doing, then we can attach the Surface object to the
> rest of QuantLib and start ploting volatility surfaces or interest rate yield
> curves.
>
> --
> -------------------------------------------------------------------------------
> Joseph Wang Ph.D. -
[hidden email]
> China Derivatives Researcher and Software Developer - QuantLib
>
http://en.wikiversity.org/wiki/User:Roadrunner>
>
>
>
>
--
Gheorghe Postelnicu, PhD
MGH, Harvard Medical School