Help creating new bindings for create_straight_skeleton_2

44 views
Skip to first unread message

Manuele Tamburrano

unread,
Oct 28, 2013, 1:50:04 PM10/28/13
to cgal-bindi...@googlegroups.com
Hi,

I'm trying to add python bindings for create_straight_skeleton_2 but I'm a bit lost.

The C++ header file includes only 

#include <CGAL/create_straight_skeleton_2.h>
#include <CGAL/Polygon_with_holes_2.h>

none of which are already wrapped in CGAL-bindings.

create_straight_skeleton_2.h in turn includes

#include <CGAL/Straight_skeleton_builder_2.h>
#include <CGAL/compute_outer_frame_margin.h>
#include <CGAL/Polygon_2.h>

and Straight_skeleton_builder_2.h in turn includes:

#include <CGAL/algorithm.h>
#include <CGAL/Straight_skeleton_2/Straight_skeleton_aux.h>
#include <CGAL/Straight_skeleton_2/Straight_skeleton_builder_events_2.h>
#include <CGAL/Straight_skeleton_2.h>
#include <CGAL/Straight_skeleton_builder_traits_2.h>
#include <CGAL/HalfedgeDS_const_decorator.h>
#include <CGAL/enum.h>

etc..

Should I add bindings for each header in the inclusion tree not already mapped in SWIG_CGAL?
Eventually what process should I follow? Shoud I find the leaves of the included tree and add all the methods? What is automatically added by SWIG?

Thank you




Sebastien Loriot (GeometryFactory)

unread,
Oct 29, 2013, 2:35:42 AM10/29/13
to cgal-bindi...@googlegroups.com
Hi,

you don't have to look at the include files from CGAL, only the
documentation.
If you look at another package, you'll see that each class/function is
redefined as a C++ wrapper.

To simplify the task I join the header we use for generating the
documentation. Note amongst the file some do not need to be wrapped
(like the traits classes).

Also you should have a look here:
http://code.google.com/p/cgal-bindings/wiki/Package_organization


Sebastien.
> --
> You received this message because you are subscribed to the Google
> Groups "CGAL Bindings discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to cgal-bindings-di...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

doc.tgz
Reply all
Reply to author
Forward
0 new messages