Tutorial on using NR3 (or any other C++ code) from within Python


Bill Press
03-17-2012, 06:19 PM
Python and NR3 are a powerful combination. You can have access to Python's convenience, shared libraries, and great graphics, and also access the raw speed of compiled C++ code and NR3's many unique algorithms.

A tutorial is at http://www.nr.com/nr3_python_tutorial.html.

A free interface file, which substitutes for the standard nr3.h file, is at http://www.nr.com/nr3python.h.

Users are encouraged to post their experiences at interfacing Python to NR3 (or to C++ code in general) to this forum, starting new threads for different topics.

Right now, the interface should be considered as alpha-test code, so bug reports are particularly welcome.

Python-callable C++ wrapper functions for NR3 routines are also welcome to be posted. (But please don't post the NR3 code, only the wrapper.)