From: William S F. <ws...@fu...> - 2017-01-10 23:26:21
|
On 7 January 2017 at 15:37, Kustaa Nyholm <kus...@sp...> wrote: > Hi, > > I'm interested in using Opencascade C++ library from Java. > > Currently there is a nice but not complete interface occjava which is > based on SWIG. > > There is also a complete Python binging for OCC which is based on SWIG. > > Is there any (automatic) way to leverage the Python binding to create a > corresponding Java binging? > > SWIG is only a semi-automated tool for wrapping C++ code. How much additional code you need to write to better support Java in addition to existing Python bindings really depends on how much the Python bindings have been customized. If there are lots of customizations, such as Python typemaps and python specific SWIG features, then an equivalent may need to be supplied for Java. Sounds like someone needs to roll up their sleeves and add in the missing Java SWIG code. William |