[SciPy-User] CGAL wrapping: cython vs boost vs SWIG

Guillaume Gay guillaume at damcb.com
Fri Jul 17 11:13:53 EDT 2015


Thanks Jason,

As far as I understand it, boost.python isn't automatic either, you have 
to export all you need explicitly.

I'll have a look at xdress, but their doc hosting website (xdress.org) 
is down, more like squatted by advertising links , actually :(

G.

Le 17/07/2015 17:02, Jason Moore a écrit :
> Cython has great numpy support but it is not an automatic wrapping 
> tool. You will have to manually wrap everything you want available in 
> Python. This is a Cython based automatic wrapping tool that could be 
> useful too: https://github.com/xdress/xdress.
>
>
> Jason
> moorepants.info <http://moorepants.info>
> +01 530-601-9791
>
> On Fri, Jul 17, 2015 at 2:00 AM, Guillaume Gay <guillaume at damcb.com 
> <mailto:guillaume at damcb.com>> wrote:
>
>     Hi all,
>
>     I'm starting a modeling project
>     <https://github.com/CellModels/tyssue> emanating from a previous
>     one <https://github.com/glyg/leg-joint>. While the original
>     project was based on graph-tool <http://graph-tool.skewed.de/>, I
>     now want to have more hands on the C++ side of things.
>
>     Particularly, CGAL LinearCellComplex
>     <http://doc.cgal.org/latest/Linear_cell_complex/index.html>
>     library is well suited for my modeling needs.
>
>     The basic needs I have are:
>
>      *
>
>         Access from python to custom iterators defined in C++ (over
>         the cells of the LCC, one cell's edges, and so on)
>
>      *
>
>         The ability to manipulate attributes of the LinearCellComplex
>         (associated with edges, vertices or faces) from python as
>         |ndarrays| or even better pandas |DataFrames|, ideally without
>         the need to copy data, such that modifications of these
>         attributes are synchronized between the two languages
>
>     For now, the project is using Boost.Python for the wrapping, but I
>     got a bit confused with the ndarray side of things, as there are
>     two projects claiming to provide interfaces between numpy and boost:
>
>       * https://github.com/ndarray/Boost.NumPy
>         and:
>       * https://github.com/mdboom/numpy-boost
>
>     They don't seem very active, nor very documented…
>
>     I used SWIG before, but keep a very bad memory of the experience ;)
>
>     So, would Cython be more adapted? My guess is, as the numpy
>     interface is ingrained in Cython, that would be easier, but what
>     about iterators?
>
>     Any advice or previous experience on similar issues welcome.
>
>     Best,
>
>     Guillaume
>
>     -- 
>
>     --
>     Guillaume Gay, PhD
>
>     http://damcb.com
>
>     43 rue Horace Bertin
>     13005 Marseille
>
>     +33 953 55 98 89
>     +33 651 95 94 00
>
>     n°SIRET 751 175 233 00020
>
>
>     _______________________________________________
>     SciPy-User mailing list
>     SciPy-User at scipy.org <mailto:SciPy-User at scipy.org>
>     http://mail.scipy.org/mailman/listinfo/scipy-user
>
>
>
>
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user

-- 

--
Guillaume Gay, PhD

http://damcb.com

43 rue Horace Bertin
13005 Marseille

+33 953 55 98 89
+33 651 95 94 00

n°SIRET 751 175 233 00020

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20150717/54591076/attachment.html>


More information about the SciPy-User mailing list