Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Calling some CGAL functions from Ocaml

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Calling some CGAL functions from Ocaml


Chronological Thread 
  • From: Francois Berenger <>
  • To:
  • Subject: Re: [cgal-discuss] Calling some CGAL functions from Ocaml
  • Date: Wed, 02 Mar 2011 11:35:36 +0900

Sebastien Loriot (GeometryFactory) wrote:
Francois Berenger wrote:
Hello,

Are there some examples out there doing this?

Nothing I am aware about.

I don't have much fun at writing C++ code these days,
so I would prefer to code in Ocaml as much as possible
and maybe just the few wrappers I need in C++.
We are currently experimenting SWIG to generate python and java
bindings. Ocaml is supported by SWIG.

Note that SWIG is not able to generate wrappers for CGAL code directly.
What we do is to provide a small C++ wrapper class around the "true"
CGAL class, and give to SWIG this wrapper.

Maybe I'll do a C wrapper first.
Then call this new C function from Ocaml later on.

Also be aware that it might be easier to go on with C++ than
doing this (we spent few days before having something usable).

S.


Thanks,
F.







Archive powered by MHonArc 2.6.16.

Top of Page