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: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Calling some CGAL functions from Ocaml
  • Date: Tue, 01 Mar 2011 17:09:51 +0100

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.

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