Closed GoogleCodeExporter closed 9 years ago
The id is not activated by default in python.
Open SWIG_CGAL/Polyhedron_3/typedefs.h and change
typedef CGAL::Polyhedron_3<EPIC_Kernel> Polyhedron_3_;
to
typedef CGAL::Polyhedron_3<EPIC_Kernel, CGAL::Polyhedron_items_with_id_>
Polyhedron_3_;
then recompile the bindings (you need to "touch CGAL_Polyhedron_3.i" before)
Original comment by sloriot...@gmail.com
on 9 Aug 2013 at 2:39
thanks for the answer. what do you mean by "touch CGAL_Polyhedron_3.i" ? if
you mean that i need to edit that file, i am not sure what to change as i am
not familiar with swig.
Original comment by martin.d...@gmail.com
on 9 Aug 2013 at 2:56
you need to fake you changed it so that cmake rerun swig.
touch is a command doing this (in the shell).
Original comment by sloriot...@gmail.com
on 9 Aug 2013 at 3:27
I got it to work :) following these steps:
1) replace typedef CGAL::Polyhedron_3<EPIC_Kernel> Polyhedron_3_;
by
typedef CGAL::Polyhedron_3<EPIC_Kernel, CGAL::Polyhedron_items_with_id_3>
Polyhedron_3_;
(note the 3 fater "id_")
2) add #include <CGAL/Polyhedron_items_with_id_3.h> in
CGAL/Polyhedron_3/typedefs.h
3) in the shell after going in the right folder run "touch CGAL_Polyhedron_3.i"
4) re-run make
Thanks !
Original comment by martin.d...@gmail.com
on 9 Aug 2013 at 4:09
Original comment by sloriot...@gmail.com
on 9 Aug 2013 at 5:22
Original issue reported on code.google.com by
martin.d...@gmail.com
on 9 Aug 2013 at 1:58Attachments: