CGAL bindings using SWIG
For details, refer to the wiki.
CGAL bindings using SWIG
License: Other
CGAL bindings using SWIG
For details, refer to the wiki.
Allow application of 2-D algorithms to 3-D points projected on the XY plane,
analagous to functionality accessed through Projection_traits_xy_3
Original issue reported on code.google.com by [email protected]
on 14 Nov 2012 at 3:28
I am new to cgal and I am trying to create python bindings. Unfortunately I
have little experience using cmake. I was wondering whether someone could
generate a simple list of steps that I could use to generate the bindings. I am
looking at generating some research software that would very much benefit from
the application of cgal. Sorry for the request I imagine this is a very basic
request.
thanks for any help
Marcos
Original issue reported on code.google.com by [email protected]
on 19 May 2014 at 5:20
Hello to everybody, I'm trying to make a precompiled installer for the CGAL
bindings for Python 2.7 for win32 and I have some problem in importing the
modules.
What I did.
-----------
I did the following macro-steps:
1) I compiled CGAL-4.3 using Visual Studio - win32;
2) I compiled CGAL-bindings using Visual Studio - win32;
Then I've put the resulting files in a single folder "CGAL" (by joining the
folders "build-python\CGAL" and "build-python\CGAL\Release". Here is a summary
of the files I can found directly under my "CGAL" folder:
- "__init__.py"
- "CGAL_[module].py"
- "_CGAL_[module].exp"
- "_CGAL_[module].lib"
- "_CGAL_[module].pyd"
( for every [module] in the bindings )
The problem.
------------
I'm trying to load a module, to see if everything is working properly. For
example, let's take "CGAL_Kernel". I open a Python console inside the "CGAL"
folder and here is my error:
>>> import sys
>>> sys.path.append(CGAL_folder)
>>> import CGAL_Kernel
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "CGAL_Kernel.py", line 28, in <module>
_CGAL_Kernel = swig_import_helper()
File "CGAL_Kernel.py", line 24, in swig_import_helper
_mod = imp.load_module('_CGAL_Kernel', fp, pathname, description)
ImportError: DLL load failed
Of course I get the same error if I try "import _CGAL_Kernel.pyd".
System informations:
--------------------
I'm using Windows 7 x64, Python 2.7 win32. The CGAL were compiled using Visual
Studio 2012 Professional, in "Release" mode, for win32 systems (and the python
bindings too).
I wonder what I'm doing wrong, maybe I have to compile everything using Visual
Studio 2008 (or compiling Python with VS2012)?
Best regards, and thank you for your work!
P.S. If I manage to make it work I can make a "setup.py" and upload some
precompiled-binary-installer.
Original issue reported on code.google.com by [email protected]
on 8 Nov 2013 at 1:55
What steps will reproduce the problem?
1. Download the current git repository (as of 4/5/2014)
2.
3.
What is the expected output? What do you see instead?
Line 41 of test_as2.java is set to print EXTERIOR when it should print
INTERIOR, this doesn't seem to affect the output for the test shape since this
case doesn't seem to be encountered.
What version of the product are you using? On what operating system?
CGAL4.3 on Ubuntu 13.10 64-bit
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Apr 2014 at 8:20
What steps will reproduce the problem?
1. Install CGAL-4.0.tar.gz
2. Install cgal-bindings from google code head (head commit
ee76d762fe18f2fbc8f2dc36bad78ce57dc50eb5)
3. Execute the following code:
from CGAL.CGAL_Kernel import Point_2
import CGAL.CGAL_Mesh_2
try:
cdt = CGAL.CGAL_Mesh_2.Mesh_2_Constrained_Delaunay_triangulation_2()
va = cdt.insert(Point_2(-1.0, 0.0))
vb = cdt.insert(Point_2( 1.0, 0.0))
vc = cdt.insert(Point_2( 0.0,-1.0))
vd = cdt.insert(Point_2( 0.0, 1.0))
cdt.insert_constraint(va, vb)
cdt.insert_constraint(vc, vd)
except:
print 'caught exception'
The expected result is to see:
sorry, this triangulation does not deal with
intersecting constraints
caught exception
The actual result is:
sorry, this triangulation does not deal with
intersecting constraints
Segmentation fault
Test Environment
Ubuntu 11.10
boost 1.46.1 (from ubuntu repositories)
python 2.7.2+ (from ubuntu repositories)
libgmp-dev (from ubuntu repositories)
libmpfr-dev (from ubuntu repositories)
SWIG 2.0.4 (built from source)
cmake 2.8.5 (from Ubuntu repositories)
Problem also reproduced on RHEL.
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 12:35
We've started using cgal-bindings as a 3rd party project, and therefore we
needed to
be able to install it.
Current cmake setup doesn't provide installation rules, so we wrote a patch to
provide it.
For now it enables installing the python bindings only, as we are not competent
to do it for java or ruby. Yet, it may be of some use and you can find it
there:
https://code.google.com/r/medionilaura-cgal-bindings/source/detail?r=1c469653776
bc34acb4de1ef7886e61a710a276c.
Original issue reported on code.google.com by [email protected]
on 18 Jul 2014 at 1:32
What steps will reproduce the problem?
cd ; cd sandbox;
git clone https://code.google.com/p/cgal-bindings
cd cgal-bindings
mkdir build/CGAL-4.0.2-1 -p
cd build/CGAL-4.0.2-1
export LANG=C; export LANGUAGE=en_US:en
cmake -DCGAL_DIR=/usr/lib/CGAL -DBUILD_PYTHON=OFF
-DJAVA_OUTDIR_PREFIX=../../examples/java ../..
make -j
What is the expected output?
the project build without errors
What do you see instead?
fossil@fossil-lt5:~/sandbox/cgal-bindings/build/CGAL-4.0.2-1$ cmake
-DCGAL_DIR=/usr/lib/CGAL -DBUILD_PYTHON=OFF
-DJAVA_OUTDIR_PREFIX=../../examples/java ../..
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /usr/bin/swig2.0 (found version "2.0.8")
-- Build type: Release
-- USING CXXFLAGS = '-g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -frounding-math -O3
-DNDEBUG'
-- USING EXEFLAGS = ' -Wl,-Bsymbolic-functions -Wl,-z,relro '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Using patches for CGAL-4.0
-- Using patches from CGAL-4.2
-- Release mode with g++: using -fno-strict-aliasing flags
-- BUILD_Ruby is set to OFF: no CGAL-bindings for Ruby will be generated.
-- BUILD_PYTHON is set to OFF: no CGAL-bindings for Python will be generated.
-- Found JNI: /usr/lib/jvm/default-java/jre/lib/amd64/libjawt.so
-- Found JNI: JNI include dirs /usr/lib/jvm/default-java/include
/usr/lib/jvm/default-java/include.
-- CGAL-SWIG Java libraries and files will be respectively written in
/home/fossil/sandbox/cgal-bindings/examples/java/lib and
/home/fossil/sandbox/cgal-bindings/examples/java/CGAL.
-- Found Eigen3: /usr/include/eigen3 (Required is at least version "3.1.0")
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/fossil/sandbox/cgal-bindings/build/CGAL-4.0.2-1
fossil@fossil-lt5:~/sandbox/cgal-bindings/build/CGAL-4.0.2-1$ make -j
Scanning dependencies of target CGAL_Java_cpp
Scanning dependencies of target CGAL_Kernel_cpp
[ 1%] [ 3%] Building CXX object
SWIG_CGAL/Java/CMakeFiles/CGAL_Java_cpp.dir/JavaData.cpp.o
Building CXX object
SWIG_CGAL/Java/CMakeFiles/CGAL_Java_cpp.dir/global_functions.cpp.o
[ 4%] [ 6%] [ 7%] [ 9%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Weighted_point_2.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Point_2.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Segment_2.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Triangle_2.cpp.o
[ 10%] [ 12%] [ 14%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Ray_2.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Direction_2.cpp.o
[ 15%] [ 17%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Line_2.cpp.o
[ 18%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Vector_2.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Polygon_2.cpp.o
[ 20%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Point_3.cpp.o
[ 21%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Weighted_point_3.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Sphere_3.cpp.o
[ 23%] [ 25%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Plane_3.cpp.o
[ 26%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Segment_3.cpp.o
[ 28%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Line_3.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Triangle_3.cpp.o
[ 29%] [ 31%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Tetrahedron_3.cpp.o
[ 34%] [ 32%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Direction_3.cpp.o
[ 35%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Ray_3.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Vector_3.cpp.o
[ 37%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Object.cpp.o
[ 39%] [ 40%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/global_functions.cpp.o
Building CXX object SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Origin.cpp.o
Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Iso_rectangle_2.cpp.o
Linking CXX shared library ../../lib/libCGAL_Java_cpp.so
[ 40%] Built target CGAL_Java_cpp
[ 42%] Swig source
Scanning dependencies of target CGAL_Java
[ 43%] Building CXX object
SWIG_CGAL/Java/CMakeFiles/CGAL_Java.dir/CGAL_JavaJAVA_wrap.cxx.o
Linking CXX shared module ../../../../examples/java/lib/libCGAL_Java.so
[ 43%] Built target CGAL_Java
Linking CXX shared library ../../lib/libCGAL_Kernel_cpp.so
[ 43%] Built target CGAL_Kernel_cpp
[ 45%] [ 46%] Scanning dependencies of target CGAL_Triangulation_3_cpp
[ 48%] Scanning dependencies of target CGAL_Triangulation_2_cpp
Swig source
Scanning dependencies of target CGAL_Mesh_3_cpp
Scanning dependencies of target CGAL_Surface_mesher_cpp
Scanning dependencies of target CGAL_AABB_tree_cpp
Swig source
[ 50%] Scanning dependencies of target CGAL_Alpha_shape_2_cpp
[ 53%] [ 54%] Swig source
Swig source
[ 57%] [ 56%] [ 57%] [ 59%] Swig source
Swig source
Swig source
Building CXX object
SWIG_CGAL/Triangulation_2/CMakeFiles/CGAL_Triangulation_2_cpp.dir/Object.cpp.o
[ 62%] [ 62%] Swig source
[ 64%] Building CXX object
SWIG_CGAL/Mesh_3/CMakeFiles/CGAL_Mesh_3_cpp.dir/Object.cpp.o
Building CXX object
SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2_cpp.dir/Object.cpp.o
[ 65%] Building CXX object
SWIG_CGAL/Triangulation_3/CMakeFiles/CGAL_Triangulation_3_cpp.dir/Object.cpp.o
Building CXX object
SWIG_CGAL/Surface_mesher/CMakeFiles/CGAL_Surface_mesher_cpp.dir/Object.cpp.o
Building CXX object
SWIG_CGAL/AABB_tree/CMakeFiles/CGAL_AABB_tree_cpp.dir/Object.cpp.o
Scanning dependencies of target CGAL_Point_set_processing_3
Scanning dependencies of target CGAL_Convex_hull_2
[ 67%] [ 68%] Building CXX object
SWIG_CGAL/Point_set_processing_3/CMakeFiles/CGAL_Point_set_processing_3.dir/CGAL
_Point_set_processing_3JAVA_wrap.cxx.o
Building CXX object
SWIG_CGAL/Convex_hull_2/CMakeFiles/CGAL_Convex_hull_2.dir/CGAL_Convex_hull_2JAVA
_wrap.cxx.o
Scanning dependencies of target CGAL_HalfedgeDS
[ 70%] Building CXX object
SWIG_CGAL/HalfedgeDS/CMakeFiles/CGAL_HalfedgeDS.dir/CGAL_HalfedgeDSJAVA_wrap.cxx
.o
Scanning dependencies of target CGAL_Polyhedron_3
[ 71%] Building CXX object
SWIG_CGAL/Polyhedron_3/CMakeFiles/CGAL_Polyhedron_3.dir/CGAL_Polyhedron_3JAVA_wr
ap.cxx.o
Scanning dependencies of target CGAL_Interpolation
[ 73%] Building CXX object
SWIG_CGAL/Interpolation/CMakeFiles/CGAL_Interpolation.dir/CGAL_InterpolationJAVA
_wrap.cxx.o
Scanning dependencies of target CGAL_Kernel
[ 75%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel.dir/CGAL_KernelJAVA_wrap.cxx.o
Scanning dependencies of target CGAL_Mesh_2
[ 76%] Building CXX object
SWIG_CGAL/Mesh_2/CMakeFiles/CGAL_Mesh_2.dir/CGAL_Mesh_2JAVA_wrap.cxx.o
Linking CXX shared library ../../lib/libCGAL_Surface_mesher_cpp.so
[ 76%] Built target CGAL_Surface_mesher_cpp
[ 78%] Swig source
Linking CXX shared library ../../lib/libCGAL_Triangulation_2_cpp.so
Linking CXX shared library ../../lib/libCGAL_Triangulation_3_cpp.so
Linking CXX shared library ../../lib/libCGAL_Alpha_shape_2_cpp.so
Scanning dependencies of target CGAL_Spatial_searching
[ 79%] [ 79%] Built target CGAL_Triangulation_2_cpp
Building CXX object
SWIG_CGAL/Spatial_searching/CMakeFiles/CGAL_Spatial_searching.dir/CGAL_Spatial_s
earchingJAVA_wrap.cxx.o
[ 81%] [ 82%] Swig source
Swig source
[ 82%] Built target CGAL_Triangulation_3_cpp
[ 82%] [ 84%] Built target CGAL_Alpha_shape_2_cpp
Swig source
[ 85%] Swig source
Linking CXX shared library ../../lib/libCGAL_AABB_tree_cpp.so
[ 85%] Built target CGAL_AABB_tree_cpp
[ 87%] Swig source
Linking CXX shared library ../../lib/libCGAL_Mesh_3_cpp.so
[ 87%] Built target CGAL_Mesh_3_cpp
[ 89%] Swig source
Scanning dependencies of target CGAL_AABB_tree
[ 90%] Building CXX object
SWIG_CGAL/AABB_tree/CMakeFiles/CGAL_AABB_tree.dir/CGAL_AABB_treeJAVA_wrap.cxx.o
Scanning dependencies of target CGAL_Surface_mesher
[ 92%] Building CXX object
SWIG_CGAL/Surface_mesher/CMakeFiles/CGAL_Surface_mesher.dir/CGAL_Surface_mesherJ
AVA_wrap.cxx.o
Scanning dependencies of target CGAL_Alpha_shape_2
[ 93%] Building CXX object
SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2JAVA
_wrap.cxx.o
Scanning dependencies of target CGAL_Mesh_3
[ 95%] Building CXX object
SWIG_CGAL/Mesh_3/CMakeFiles/CGAL_Mesh_3.dir/CGAL_Mesh_3JAVA_wrap.cxx.o
Linking CXX shared module ../../../../examples/java/lib/libCGAL_Convex_hull_2.so
[ 95%] Built target CGAL_Convex_hull_2
Scanning dependencies of target CGAL_Triangulation_3
[ 96%] Building CXX object
SWIG_CGAL/Triangulation_3/CMakeFiles/CGAL_Triangulation_3.dir/CGAL_Triangulation
_3JAVA_wrap.cxx.o
Linking CXX shared module ../../../../examples/java/lib/libCGAL_HalfedgeDS.so
[ 96%] Built target CGAL_HalfedgeDS
Scanning dependencies of target CGAL_Voronoi_diagram_2
[ 98%] Building CXX object
SWIG_CGAL/Voronoi_diagram_2/CMakeFiles/CGAL_Voronoi_diagram_2.dir/CGAL_Voronoi_d
iagram_2JAVA_wrap.cxx.o
In file included from
/home/fossil/sandbox/cgal-bindings/SWIG_CGAL/Alpha_shape_2/typedefs.h:11:0,
from /home/fossil/sandbox/cgal-bindings/SWIG_CGAL/Alpha_shape_2/all_includes.h:10,
from /home/fossil/sandbox/cgal-bindings/build/CGAL-4.0.2-1/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2JAVA_wrap.cxx:283:
/usr/include/CGAL/Alpha_shape_2.h: In instantiation of 'CGAL::Alpha_shape_2<Dt,
ExactAlphaComparisonTag>::Classification_type CGAL::Alpha_shape_2<Dt,
ExactAlphaComparisonTag>::classify(const Point&, const Type_of_alpha&) const
[with Dt = CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > >; ExactAlphaComparisonTag =
CGAL::Boolean_tag<false>; CGAL::Alpha_shape_2<Dt,
ExactAlphaComparisonTag>::Point = CGAL::Point_2<CGAL::Epick>;
CGAL::Alpha_shape_2<Dt, ExactAlphaComparisonTag>::Type_of_alpha = double]':
/home/fossil/sandbox/cgal-bindings/SWIG_CGAL/Alpha_shape_2/Alpha_shape_2.h:93:3:
required from 'Classification_type Alpha_shape_2_wrapper<Alpha_shape, Point,
Vertex_handle, Face_handle, Weighted_tag, Base_wrapper>::classify(const Point&,
const double&) [with Alpha_shape =
CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > > >; Point = Point_2;
Vertex_handle =
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_tria
ngulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > > >, Point_2>; Face_handle =
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triang
ulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > > >, Point_2>; Weighted_tag
= CGAL::Boolean_tag<false>; Base_wrapper =
Delaunay_triangulation_2_wrapper<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulatio
n_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > > >,
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_tria
ngulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > > >, Point_2>,
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triang
ulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > > >, Point_2> >]'
/home/fossil/sandbox/cgal-bindings/build/CGAL-4.0.2-1/SWIG_CGAL/Alpha_shape_2/CG
AL_Alpha_shape_2JAVA_wrap.cxx:9971:98: required from here
/usr/include/CGAL/Alpha_shape_2.h:594:44: error: 'locate' was not declared in
this scope, and no declarations were found by argument-dependent lookup at the
point of instantiation [-fpermissive]
/usr/include/CGAL/Alpha_shape_2.h:594:44: note: declarations in dependent base
'CGAL::Triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick> > > > >' are not found by
unqualified lookup
/usr/include/CGAL/Alpha_shape_2.h:594:44: note: use 'this->locate' instead
/usr/include/CGAL/Alpha_shape_2.h: In instantiation of 'CGAL::Alpha_shape_2<Dt,
ExactAlphaComparisonTag>::Classification_type CGAL::Alpha_shape_2<Dt,
ExactAlphaComparisonTag>::classify(const Point&, const Type_of_alpha&) const
[with Dt =
CGAL::Regular_triangulation_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > >; ExactAlphaComparisonTag =
CGAL::Boolean_tag<false>; CGAL::Alpha_shape_2<Dt,
ExactAlphaComparisonTag>::Point = CGAL::Point_2<CGAL::Epick>;
CGAL::Alpha_shape_2<Dt, ExactAlphaComparisonTag>::Type_of_alpha = double]':
/home/fossil/sandbox/cgal-bindings/SWIG_CGAL/Alpha_shape_2/Alpha_shape_2.h:93:3:
required from 'Classification_type Alpha_shape_2_wrapper<Alpha_shape, Point,
Vertex_handle, Face_handle, Weighted_tag, Base_wrapper>::classify(const Point&,
const double&) [with Alpha_shape =
CGAL::Alpha_shape_2<CGAL::Regular_triangulation_2<CGAL::Weighted_alpha_shape_euc
lidean_traits_2<CGAL::Epick>,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > > >; Point = Weighted_point_2; Vertex_handle =
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Regular_trian
gulation_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > > >, Weighted_point_2>; Face_handle =
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Regular_triangu
lation_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > > >, Weighted_point_2>; Weighted_tag =
CGAL::Boolean_tag<true>; Base_wrapper =
Regular_triangulation_2_wrapper<CGAL::Alpha_shape_2<CGAL::Regular_triangulation_
2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > > >,
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Regular_trian
gulation_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > > >, Weighted_point_2>,
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Regular_triangu
lation_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > > >, Weighted_point_2> >]'
/home/fossil/sandbox/cgal-bindings/build/CGAL-4.0.2-1/SWIG_CGAL/Alpha_shape_2/CG
AL_Alpha_shape_2JAVA_wrap.cxx:19595:107: required from here
/usr/include/CGAL/Alpha_shape_2.h:594:44: error: 'locate' was not declared in
this scope, and no declarations were found by argument-dependent lookup at the
point of instantiation [-fpermissive]
/usr/include/CGAL/Alpha_shape_2.h:594:44: note: declarations in dependent base
'CGAL::Triangulation_2<CGAL::Weighted_point_mapper_2<CGAL::Weighted_alpha_shape_
euclidean_traits_2<CGAL::Epick> >,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Weigh
ted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Regular_triangulation_vertex_base_2<CGAL::Weighted_alpha_shape_euclidean_t
raits_2<CGAL::Epick> > >, CGAL::Triangulation_face_base_with_info_2<JavaData,
CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL::Epick>,
CGAL::Alpha_shape_face_base_2<CGAL::Weighted_alpha_shape_euclidean_traits_2<CGAL
::Epick>,
CGAL::Regular_triangulation_face_base_2<CGAL::Weighted_alpha_shape_euclidean_tra
its_2<CGAL::Epick> > > > > >' are not found by unqualified lookup
/usr/include/CGAL/Alpha_shape_2.h:594:44: note: use 'this->locate' instead
Linking CXX shared module ../../../../examples/java/lib/libCGAL_Polyhedron_3.so
[ 98%] Built target CGAL_Polyhedron_3
Scanning dependencies of target CGAL_Triangulation_2
[100%] Building CXX object
SWIG_CGAL/Triangulation_2/CMakeFiles/CGAL_Triangulation_2.dir/CGAL_Triangulation
_2JAVA_wrap.cxx.o
make[2]: ***
[SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2JAV
A_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/all]
Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared module
../../../../examples/java/lib/libCGAL_Point_set_processing_3.so
[100%] Built target CGAL_Point_set_processing_3
Linking CXX shared module ../../../../examples/java/lib/libCGAL_Kernel.so
[100%] Built target CGAL_Kernel
Linking CXX shared module ../../../../examples/java/lib/libCGAL_Interpolation.so
[100%] Built target CGAL_Interpolation
Linking CXX shared module ../../../../examples/java/lib/libCGAL_Mesh_2.so
[100%] Built target CGAL_Mesh_2
Linking CXX shared module
../../../../examples/java/lib/libCGAL_Spatial_searching.so
[100%] Built target CGAL_Spatial_searching
Linking CXX shared module ../../../../examples/java/lib/libCGAL_AABB_tree.so
[100%] Built target CGAL_AABB_tree
Linking CXX shared module
../../../../examples/java/lib/libCGAL_Voronoi_diagram_2.so
[100%] Built target CGAL_Voronoi_diagram_2
Linking CXX shared module
../../../../examples/java/lib/libCGAL_Surface_mesher.so
[100%] Built target CGAL_Surface_mesher
Linking CXX shared module
../../../../examples/java/lib/libCGAL_Triangulation_3.so
[100%] Built target CGAL_Triangulation_3
Linking CXX shared module
../../../../examples/java/lib/libCGAL_Triangulation_2.so
[100%] Built target CGAL_Triangulation_2
Linking CXX shared module ../../../../examples/java/lib/libCGAL_Mesh_3.so
[100%] Built target CGAL_Mesh_3
make: *** [all] Error 2
What version of the product are you using? On what operating system?
ubuntu 13.04 upgraded from 12.04, 12.10
fossil@fossil-lt5:~/sandbox/cgal-bindings/build/CGAL-4.0.2-1$ dpkg -l libcgal*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version
Architecture Description
+++-======================================-========================-============
============-===================================================================
==============
ii libcgal-demo 4.0.2-1 all
C++ library for computational geometry (demos)
ii libcgal-dev 4.0.2-1 amd64
C++ library for computational geometry (development files)
ii libcgal-ipelets 4.0.2-1 amd64
C++ library for computational geometry (ipelets)
ii libcgal9 4.0.2-1 amd64
C++ library for computational geometry
Please provide any additional information below.
fossil@fossil-lt5:~/sandbox/cgal-bindings/build/CGAL-4.0.2-1$ dpkg -l swig*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version
Architecture Description
+++-======================================-========================-============
============-===================================================================
==============
ii swig 2.0.8-1ubuntu3 amd64
Generate scripting interfaces to C/C++ code
ii swig-doc 2.0.8-1ubuntu3 all
HTML documentation for SWIG
ii swig-examples 2.0.8-1ubuntu3 all
Examples for applications of SWIG
ii swig2.0 2.0.8-1ubuntu3 amd64
Generate scripting interfaces to C/C++ code
ii swig2.0-doc 2.0.8-1ubuntu3 all
HTML documentation for SWIG
ii swig2.0-examples 2.0.8-1ubuntu3 all
Examples for applications of SWIG
fossil@fossil-lt5:~/sandbox/cgal-bindings/build/CGAL-4.0.2-1$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 13.04
Release: 13.04
Codename: raring
Original issue reported on code.google.com by [email protected]
on 25 Aug 2013 at 8:44
I want to use CGAL from python, my effort to make cgal-binding fails with:
make[2]: *** No rule to make target `/usr/lib/i386-linux-gnu/libGLU.so', needed
by `lib/libCGAL_Triangulation_2_cpp.so'. Stop.
and 3 other error messages with similar content.
Information about my environment:
1. OSGeo 6.5 (Xubuntu based, 12.04)
2. CGAL 3.9-1 (Have been installed using Synaptics)
cmake command:
cmake -DCGAL_DIR=/usr/lib/CGAL -DBUILD_PYTHON=ON -DBUILD_JAVA=OFF
-DPYTHON_OUTDIR_PREFIX=../../examples/python ../..
Original issue reported on code.google.com by [email protected]
on 31 Jul 2013 at 11:43
What steps will reproduce the problem?
1.I follow the steps, including switch the git version to e77c16bd5a65.
2.When I am running > make -j 4, it stops at Mesh_3, and report the error:
cannot allocate memory.
What is the expected output? What do you see instead?
The expected output is the successful compiling. But My compiling stops at
Mesh_3
What version of the product are you using? On what operating system?
CGAL version: 3.9
SWIG version: 2.0.4
cmake version: 2.8.7
Java version: 1.6.0-30
Ubuntu version: 12.04
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 18 Mar 2014 at 6:53
What steps will reproduce the problem?
- checkout lastest cgal-bindings, cmake and build (please attached files for
convenient)
$ ./build_cgal-bindings.sh
What is the expected output? What do you see instead?
- error-free build result. first error is
/usr/include/CGAL/Alpha_shape_2.h:594:44: error: ‘locate’ was not declared
in this scope, ...
What version of the product are you using? On what operating system?
- I am using Fedora 17
$ yum info cgal swig boost gcc | grep -e Name -e Version
Name : CGAL
Version : 4.0.2
Name : boost
Version : 1.48.0
Name : gcc
Version : 4.7.0
Name : swig
Version : 2.0.7
$ uname -a
Linux wisut-pc.local 3.5.2-3.fc17.i686.PAE #1 SMP Tue Aug 21 19:27:17 UTC 2012
i686 i686 i386 GNU/Linux
Please provide any additional information below.
- got same error trying both pythonlibs version 2.7 and version 3
Original issue reported on code.google.com by [email protected]
on 29 Aug 2012 at 5:43
Attachments:
This issue follows on Issue 23 (which did help the compilation go further;
thank you!)
Problem now with "Alpha_shape_2.h:594:27: error: use of undeclared identifier
'locate'"
# What steps will reproduce the problem?
1. Installed CGAL 4.0.2 and swig 2.0.8 with Homebrew on OS X
2. git clone https://code.google.com/p/cgal-bindings/ (HEAD at 2ea2630) and cd
cgal-bindings
3. cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON
-DCGAL_CXX_FLAGS=-DCGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES
4. make
# What is the expected output? What do you see instead?
When running make:
[ 58%] Building CXX object
SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2JAVA
_wrap.cxx.o
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2JAVA_w
rap.cxx:283:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/all_includes.h:10:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/typedefs.h:11:
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Alpha_shape_2.h:594:27: error: use of
undeclared identifier 'locate'
Face_handle pFace = locate(p, type, i);
^
this->
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Alpha_shape_2.h:584:14: note: in
instantiation of member function
'CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
, CGAL::Default,
CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>,
CGAL::Boolean_tag<false> >::classify' requested here
return classify( p, get_alpha());
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/Alpha_shape_2.h:88:48:
note: in instantiation of member function
'CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick
,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>,
CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false> >::classify' requested here
SWIG_CGAL_FORWARD_CALL_1(Classification_type,classify,Point)
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:175:43: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_1'
SWIG_CGAL_FORWARD_CALL_SCOPE_1(RET,NAME,NAME,IN_TYPE)
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:171:57: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_SCOPE_1'
return RET(SWIG_CGAL_extract_data(this->get_data()).INAME(internal::Converter<IN_TYPE>::convert(c)));\
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2JAVA_w
rap.cxx:8190:45: note: in instantiation of member function
'Alpha_shape_2_wrapper<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::
Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2, SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>, SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick,
CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>, CGAL::Boolean_tag<false>,
Delaunay_triangulation_2_wrapper<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>,
CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>,
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>,
CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>,
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>,
CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>>
>::classify' requested here
result = (Classification_type)(arg1)->classify((Point_2 const &)*arg2);
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:410:3: note: must
qualify identifier to find this declaration in dependent base class
locate(const Point & p,
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:422:3: note: must
qualify identifier to find this declaration in dependent base class
locate(const Point & p, Face_handle start = Face_handle()) const
^
1 error generated.
make[2]: ***
[SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2JAV
A_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/all]
Error 2
make: *** [all] Error 2
# What version of the product are you using? On what operating system?
- Mac OS X 10.8.2
- cgal-bindings 2ea2630
- CGAL 4.0.2 via Homebrew package manager
- swig 2.0.8 via Homebrew
# Please provide any additional information below.
For reference, the output of cmake:
cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON
-DCGAL_CXX_FLAGS=-DCGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES
~/code/cgal-bindings
-- Build type: Release
-- USING CXXFLAGS = ' -DCGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES -O3 -DNDEBUG'
-- USING EXEFLAGS = ' '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=12
-- Mac Leopard detected
-- BUILD_Ruby is set to OFF: no CGAL-bindings for Ruby will be generated.
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/Users/jsick/code/cgal-bindings/build-python/CGAL.
-- Found JNI: JNI include dirs
/System/Library/Frameworks/JavaVM.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Headers.
-- CGAL-SWIG Java libraries and files will be respectively written in
/Users/jsick/code/cgal-bindings/build-java/lib and
/Users/jsick/code/cgal-bindings/build-java/CGAL.
-- NOTICE: CGAL imageIO has not be found, few bindings will not be compiled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jsick/code/cgal-bindings
Original issue reported on code.google.com by [email protected]
on 2 Oct 2012 at 9:43
I would like to create a 3d Mesh from a segmented medical image (I want to
recreate all the point 3.3 of
http://doc.cgal.org/latest/Mesh_3/index.html#Chapter_3D_Mesh_Generation)
But i dont know if cgal-bindings has the methods to do it, like Image_3 and
poisson reconstruction, if the answer its negative, theres a way to construct
those method with the existing ones, other way to do it, or even a way to
include those methods manually?
This is for an investigation an it would be a big help i you can help me with
this.
THANKS!
Original issue reported on code.google.com by [email protected]
on 15 Jan 2014 at 11:23
I get a segfault when I keep a reference to the face of an edge, but not the
edge itself.
To reproduce the problem (also see attached script):
1. Create Constrained_Delaunay_triangulation_2
2. Force python to allocate enough memory to start reusing freed memory.
3. Add a small number of points with constraints between them
4. Query for incident constraints, retain a handle for the face, but not the
edge.
5. The face is still referenced, but it's memory is overwritten by subsequent
operations.
6. Further access to the face can lead to a segfault.
This happens on an up to date Ubuntu system, and appears to happen on OSX as
well (same behavior, but I haven't been able to narrow it down as much)
CGAL: 4.2 (ubuntu)
boost: 1.53 (ubuntu)
SWIG: 2.0.10 (ubuntu)
Python: 2.7.5 (ubuntu)
cgal-bindings: from git as of 2013-12-05
compiled with gcc 4.8.1
Note that to trigger this error, it's necessary to have allocated enough
objects so that the python memory manager will start reusing memory.
Original issue reported on code.google.com by [email protected]
on 5 Dec 2013 at 8:34
Attachments:
What steps will reproduce the problem?
1. I have CGAL 4.0.2 and Swig 2.0.8 installed using Homebrew. OS X version
10.8.2.
2. Using master branch of cgal-bindings (1a97eaa664b9).
3. cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON
4. make
What is the expected output? What do you see instead?
When building I get his error (and some warnings):
In file included from
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2JAVA_w
rap.cxx:283:
In file included from
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/all_includes.h:10:
In file included from
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/typedefs.h:11:
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Alpha_shape_2.h:594:27: error: use of
undeclared identifier 'locate'
Face_handle pFace = locate(p, type, i);
^
this->
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Alpha_shape_2.h:584:14: note: in
instantiation of member function
'CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false> >::classify'
requested here
return classify( p, get_alpha());
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/Alpha_shape_2.h:88:48:
note: in instantiation of member function
'CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick,
CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick,
CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick, CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false> >::classify'
requested here
SWIG_CGAL_FORWARD_CALL_1(Classification_type,classify,Point)
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:43: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_1'
SWIG_CGAL_FORWARD_CALL_SCOPE_1(RET,NAME,NAME,IN_TYPE)
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Common/Macros.h:185:57: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_SCOPE_1'
return RET(SWIG_CGAL_extract_data(this->get_data()).INAME(internal::Converter<IN_TYPE>::convert(c)));\
^
/Users/teemu/Code/cgal-bindings/SWIG_CGAL/Alpha_shape_2/CGAL_Alpha_shape_2JAVA_w
rap.cxx:8320:45: note: in instantiation of member function
'Alpha_shape_2_wrapper<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default,
CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2,
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>,
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>, CGAL::Boolean_tag<false>,
Delaunay_triangulation_2_wrapper<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick, CGAL::Default,
CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>,
SWIG_Triangulation_2::CGAL_Vertex_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>,
SWIG_Triangulation_2::CGAL_Face_handle<CGAL::Alpha_shape_2<CGAL::Delaunay_triangulation_2<CGAL::Epick, CGAL::Triangulation_data_structure_2<CGAL::Alpha_shape_vertex_base_2<CGAL::Epick,
CGAL::Default, CGAL::Boolean_tag<false>>, CGAL::Triangulation_face_base_with_info_2<JavaData, CGAL::Epick, CGAL::Alpha_shape_face_base_2<CGAL::Epick, CGAL::Triangulation_face_base_2<CGAL::Epick,
CGAL::Triangulation_ds_face_base_2<void>>, CGAL::Boolean_tag<false>>>>>, CGAL::Boolean_tag<false>>, Point_2>> >::classify' requested here
result = (Classification_type)(arg1)->classify((Point_2 const &)*arg2);
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:410:3: note: must
qualify identifier to find this declaration in dependent base class
locate(const Point & p,
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Triangulation_2.h:422:3: note: must
qualify identifier to find this declaration in dependent base class
locate(const Point & p, Face_handle start = Face_handle()) const
^
18 warnings and 1 error generated.
make[2]: ***
[SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/CGAL_Alpha_shape_2JAV
A_wrap.cxx.o] Error 1
make[1]: *** [SWIG_CGAL/Alpha_shape_2/CMakeFiles/CGAL_Alpha_shape_2.dir/all]
Error 2
make: *** [all] Error 2
What version of the product are you using? On what operating system?
Cmake output looks like this:
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /usr/local/bin/swig (found version "2.0.8")
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = ' '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=12
-- Mac Leopard detected
-- BUILD_Ruby is set to OFF: no CGAL-bindings for Ruby will be generated.
-- Found PythonLibs: /usr/local/lib/libpython2.7.dylib (found version "2.7.2")
-- Found JNI: -framework JavaVM
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/Users/teemu/Code/cgal-bindings/build-python/CGAL.
-- Found JNI: JNI include dirs
/System/Library/Frameworks/JavaVM.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Headers.
-- CGAL-SWIG Java libraries and files will be respectively written in
/Users/teemu/Code/cgal-bindings/build-java/lib and
/Users/teemu/Code/cgal-bindings/build-java/CGAL.
-- NOTICE: CGAL imageIO has not be found, few bindings will not be compiled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/teemu/Code/cgal-bindings
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 15 Oct 2012 at 6:00
[deleted issue]
Hi,
Here are some patches to improve python3 compatibility and some other
enhancements.
Regards,
J.
Original issue reported on code.google.com by [email protected]
on 9 Apr 2014 at 6:59
Attachments:
What steps will reproduce the problem?
1. untar CGAL-4.2 into /usr/local/share/CGAL
cd /usr/local/share/CGAL
cmake .
make -j
cd ; cd sandbox
git clone https://code.google.com/p/cgal-bindings
cd cgal-bindings
mkdir build/CGAL-4.2 -p
cd build/CGAL-4.2/
cmake -DCGAL_DIR=/usr/local/share/CGAL -DBUILD_PYTHON=OFF
-DJAVA_OUTDIR_PREFIX=../../examples/java ../..
make -j
cd ../../examples/java/
sh ./test.sh > test.out
What is the expected output?
test runs without errors
What do you see instead?
fossil@fossil-lt5:~/sandbox/cgal-bindings/examples/java$ sh ./test.sh > test.out
valid data structure
Delaunay valid triangulation
geometrically valid cell
Delaunay valid cell
_readImageHeaderAndGetError: error: unable to open file 'skull_2.9.inr'
Aborted (core dumped)
What version of the product are you using? On what operating system?
CGAL-4.2
ubuntu 13.04 upgraded from 12.04, 12.10
Please provide any additional information below.
the test.out with the core message are attached
Original issue reported on code.google.com by [email protected]
on 25 Aug 2013 at 10:32
Attachments:
What steps will reproduce the problem?
1. Using Visual Studio 2010 Professional
2. Building CGAL_Kernel
What is the expected output? What do you see instead?
2>------ Build started: Project: CGAL_Kernel, Configuration: Release x64 ------
2>Build started 11.12.2012 09:45:59.
2>InitializeBuildStatus:
2> Touching "CGAL_Kernel.dir\Release\CGAL_Kernel.unsuccessfulbuild".
2>CustomBuild:
2> All outputs are up-to-date.
2>ClCompile:
2> All outputs are up-to-date.
2>Link:
2> Creating library
C:/data/builds/swig/build-java/lib/Release/CGAL_Kernel.lib and object
C:/data/builds/swig/build-java/lib/Release/CGAL_Kernel.exp
2>CGAL_KernelJAVA_wrap.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class Vector_2 __cdecl Point_2::operator-(struct
Origin const &)" (__imp_??GPoint_2@@QEAA?AVVector_2@@AEBUOrigin@@@Z) referenced
in function Java_CGAL_Kernel_CGAL_1KernelJNI_Point_12_1minus_1_1SWIG_12
2>CGAL_KernelJAVA_wrap.obj : error LNK2019: unresolved external symbol
"__declspec(dllimport) public: class Vector_3 __cdecl Point_3::operator-(struct
Origin const &)" (__imp_??GPoint_3@@QEAA?AVVector_3@@AEBUOrigin@@@Z) referenced
in function Java_CGAL_Kernel_CGAL_1KernelJNI_Point_13_1minus_1_1SWIG_12
2>C:\data\builds\swig\build-java\lib\Release\CGAL_Kernel.dll : fatal error
LNK1120: 2 unresolved externals
2>
2>Build FAILED.
What version of the product are you using? On what operating system?
CGAL-4.1 (zlib-1.2.7, boost 1.51)
cgal-bindings-198195ece239
swigwin 2.0.8
cmake 2.8.10.2
Windows 7 (64-bit) as well as on Windows XP (32-bit)
Please provide any additional information below.
Everything else runs smoothly.
Original issue reported on code.google.com by [email protected]
on 11 Dec 2012 at 10:09
I had trouble building cgal-bindings using the CGAL 3.9 installed on my Ubuntu
12.04 machine using "sudo apt-get install", so I decided to build CGAL 4.0.2
from source:
cmake -DCMAKE_INSTALL_PREFIX=/home/epifanio .
make
make install
The install went fine, but when I tried to build "cgal-bindings" using this
distribution, I got an error
"CMake Error: Error processing file:GAL_DIR=/home/epifanio/lib/CGAL
Here's what I did:
epifanio@gam:~/rps/cgal-bindings/build/CGAL-4.02_release$ cmake
-CGAL_DIR=/home/epifanio/lib/CGAL -DJAVA_OUTDIR_PREFIX=../../examples/java
-DPYTHON_OUTDIR_PREFIX=../../examples/python ../..
loading initial cache file GAL_DIR=/home/epifanio/lib/CGAL
CMake Error: Error processing file:GAL_DIR=/home/epifanio/lib/CGAL
-- Build type: Release
-- USING CXXFLAGS = '-g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Wformat-security -frounding-math -O3 -DNDEBUG'
-- USING EXEFLAGS = ' -Wl,-Bsymbolic-functions -Wl,-z,relro '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Release mode with g++: using -fno-strict-aliasing flags
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/home/epifanio/rps/cgal-bindings/examples/python/CGAL.
-- Found JNI: JNI include dirs /usr/lib/jvm/java-6-sun/include
/usr/lib/jvm/java-6-sun/include/linux.
-- CGAL-SWIG Java libraries and files will be respectively written in
/home/epifanio/rps/cgal-bindings/examples/java/lib and
/home/epifanio/rps/cgal-bindings/examples/java/CGAL.
-- Configuring incomplete, errors occurred!
Thanks,
Rich
Original issue reported on code.google.com by rsignell
on 31 Jul 2012 at 2:39
Hi,
I think I may find an issue on the dual function of a delaunay triangulation.
When I call it with a face handle as first argument and a point as a second
argument, it always return none.
Here are the steps to reproduce the problem:
{{{
points=[]
points.append( Point_2(1,0) )
points.append( Point_2(3,2) )
points.append( Point_2(4,5) )
points.append( Point_2(9,8) )
points.append( Point_2(7,4) )
points.append( Point_2(5,2) )
points.append( Point_2(6,3) )
points.append( Point_2(10,1) )
t=Delaunay_triangulation_2()
t.insert(points)
for edge in t.finite_edges():
for p in points:
print t.dual(edge[0], p)
}}}
I noticed that the dual function is working when it is used like this:
{{{
edge_it = t.finite_edges()
edge = edge_id.next()
print t.dual(edge[0])
}}}
But this one only returns the center of the circle circumscribed to face
edge[0].
Thx,
François
Original issue reported on code.google.com by [email protected]
on 23 Jan 2012 at 5:47
What steps will reproduce the problem?
1.cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.3 -DBUILD_JAVA=OFF
then everything seems okey:
-- Build type: Release
-- USING CXXFLAGS = ' -frounding-math -fno-strict-aliasing -O3 -DNDEBUG'
-- USING EXEFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries
/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/li
bGL.dylib '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=10
-- Mac Leopard detected
-- Requested component: ImageIO
-- Requested component: MPFR
-- Requested component: GMP
-- Release mode with g++: using -fno-strict-aliasing flags
-- BUILD_JAVA is set to OFF: no CGAL-bindings for Java will be generated.
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/Users/../cgal-bindings/build-python/CGAL.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/../cgal-bindings
2.Then:
make
But,After scanning over "Scanning dependencies of target CGAL_Kernel_cpp"
Linking CXX shared library ../../lib/libCGAL_Kernel_cpp.dylib
[ 44%] Built target CGAL_Kernel_cpp
[ 46%] Swig source
Scanning dependencies of target _CGAL_Kernel
[ 48%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/_CGAL_Kernel.dir/CGAL_KernelPYTHON_wrap.cxx.o
/Users/../cgal-bindings/SWIG_CGAL/Kernel/CGAL_KernelPYTHON_wrap.cxx: In
function ‘void SWIG_Python_AddErrorMsg(const char*)’:
/Users/../cgal-bindings/SWIG_CGAL/Kernel/CGAL_KernelPYTHON_wrap.cxx:870:
warning: format not a string literal and no format arguments
Linking CXX shared module ../../build-python/CGAL/_CGAL_Kernel.so
Undefined symbols for architecture x86_64:
"__PyObject_NextNotImplemented", referenced from:
Input_iterator_wrapper<Point_2, CGAL::Point_2<CGAL::Epick> >::Input_iterator_wrapper(_object*, swig_type_info*)in CGAL_KernelPYTHON_wrap.cxx.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [build-python/CGAL/_CGAL_Kernel.so] Error 1
make[1]: *** [SWIG_CGAL/Kernel/CMakeFiles/_CGAL_Kernel.dir/all] Error 2
make: *** [all] Error 2
I had try make -j before with similar errors, any help?
Original issue reported on code.google.com by [email protected]
on 12 Feb 2014 at 1:20
I am not very familiar with CGAL library but want to use the Python bindings,
so not sure if I can create 3d convex hulls using this project.
Thanks.
Original issue reported on code.google.com by [email protected]
on 8 Jun 2012 at 3:56
It would be nice to be able to copy Triangulation_* classes but it would seem
only the default constructors are exposed to the wrapping.
Original issue reported on code.google.com by [email protected]
on 4 Jul 2014 at 11:59
What steps will reproduce the problem?
1. CGAL-4.2
2. git clone https://code.google.com/p/cgal-bindings/
3. SWIG 2.0.10
4. cmake gui: CGAL_DIR=/opt/local/share/CGAL/cmake BUILD_JAVA=FALSE
BUILD_PYTHON=TRUE
PYTHON_OUTDIR_PREFIX=/Users/USERNAME/cgal-bindings/build-python
What is the expected output? What do you see instead?
I expect to get all python files in build-python/CGAL, but what I only see is
the __init__.py file, and the file is empty.
What version of the product are you using? On what operating system?
OS: OSX 10.8.3
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 3 Jun 2013 at 10:08
Attachments:
If anyone is interested, I've created a Fedora package for the cgal-bindings.
I've tested it on Fedora 17 and CGAL-4.0.2 from the Fedora repositories. The
sources contained in the attached source RPM were exported with:
git archive -o ~/rpmbuild/SOURCES/CGAL-bindings-20121114.tar.gz --prefix
CGAL-bindings-20121114/ 198195ece2
To rebuild the package:
yum install rpmbuild CGAL-devel cmake gcc-c++ python-devel java-devel
rpmbuild --rebuild
So if this seems interesting, stick the spec and patch files from the source
RPM into a rpm-subdirectory in the source tree.
Original issue reported on code.google.com by [email protected]
on 15 Nov 2012 at 12:30
Attachments:
Hello,
First, thx you very much for implementing these new bindings! I was so sad to
see that the project cgal-python stopped...
One request though, it seems that the triangulation hierarchy is not wrapped.
Do you plan to work on this feature ? Or should I add it myself ;)
Thx,
François
Original issue reported on code.google.com by [email protected]
on 18 Jan 2012 at 9:17
Hi,
I noticed that a the hash given by the hash method of a Point_2 changes even if
the Point have the same coordinates.
p1 = Point_2(1,1)
p2 = Point_2(1,1)
p1 == p2 returns True
p1.__hash__() == p2.__hash__() returns False
I don't know if this is a bug or not, but I think it would be better to have
the same hash.
Thx
Original issue reported on code.google.com by [email protected]
on 16 Feb 2012 at 3:07
Re:
http://groups.google.com/group/cgal-bindings-discuss/browse_thread/thread/3ae011
0f79b708fb
As requested, an issue item has been created. For convenience, a fork
demonstrating how this would work is available on github
https://github.com/AndrewWalker/cgal-bindings.
The first change involved Adding a python specific __hash__ implementation for
the Face_handle and Vertex_handle classes that facilitates using instances of
these classes in python sets and dictionaries.
A second change was to add python polygonal triangulation example code. The
code for this patch is based on the C++ CGAL documentation, in the chapter "2D
Triangulations", under the heading "Example: Triangulating a Polygonal Domain",
with minor language specific alterations, and the addition of plotting, where
it is available.
Original issue reported on code.google.com by [email protected]
on 5 Apr 2012 at 12:21
hi,
I am doing ray/polyhedron intersections queries using the python binding for
CGAL (with the class AABB_tree_Polyhedron_3_Facet_handle and its method
all_intersected_primitives). This method gives me a list of intersected faces
and I would like to obtain the indices of these intersected faces (i.e numbers
between 0 and the total number of faces). For each facet in the list of
intersected faces, i managed to get the corresponding index by iterating over
all the facet of the polyhedron while incrementing a counter until the
intersected facet is equal to the facet of the polyhedron being considered. The
attached file provides the code to test that. This approach is very slow and i
tried to use the method.
set_id() and id() in the class CGAL_Polyhedron_3.Polyhedron_3_Facet_handle to
avoid having to iterate over all the facets without success. I would expect the
method set_id() to allow me to associate an index to each facet and then the
method id() to retrieve tat index. However the method id() always return -1. I
am using the binding at revision c15ccd439e55 (26/07/2013) with unbuntu
13.04. Is there a problem in the binding ? Is there a efficient method to
retrieve the indices of the intersected faces ? thanks
Original issue reported on code.google.com by [email protected]
on 9 Aug 2013 at 1:58
Attachments:
It would be nice to have a "setup.py" so that the CGAL package could be
installed the normal way.
Original issue reported on code.google.com by rsignell
on 31 Jul 2012 at 3:44
Trying to build bindings to Java, fails due to unresolved symbols
* What steps will reproduce the problem?
1. Using VC 2010 Express
2. Ran CMake v2.8.8 all right
3. Loaded up resulting project, but fails to build
* What is the expected output? What do you see instead?
Unresolved external symbols
* What version of the product are you using? On what operating system?
Windows 7 64-bit
* Please provide any additional information below.
Building CGAL_Kernel, lots of messages like:
4>CGAL_KernelJAVA_wrap.obj : error LNK2019: unresolved external symbol "double
__cdecl squared_distance(class Point_3 const &,class Point_3 const &)"
(?squared_distance@@YANABVPoint_3@@0@Z) referenced in function
_Java_CGAL_Kernel_CGAL_1KernelJNI_squared_1distance_1_1SWIG_10@32
CGAL libraries are built OK and are in the linker command line
Any ideas? Could it be a 64/32-bit issue?
Original issue reported on code.google.com by [email protected]
on 19 Jul 2012 at 8:37
What steps will reproduce the problem?
1. Generate VS2010 Solution with cmake.
2. Build solution with VS2010.
3. Add () to print for python 3 in examples\python>triangulation_prog1.py, and
run it from command line.
What is the expected output? What do you see instead?
I expect a list of points to be printed, but I get:
Traceback (most recent call last):
File "C:\cgal-bindings\examples\python\triangulation_prog1.py", line 1, in <module>
from CGAL.CGAL_Kernel import Point_2
ImportError: No module named 'CGAL'
What version of the product are you using? On what operating system?
cgal-bindings: git commit fef3e0e70ee4a1258e0cf865cf322e0c3f102f58
Cmake 2.8.11.1, Python 3.3.0, CGAL 4.2, boost 1.53, swigwin 2.0.10 on Windows 8.
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Jun 2013 at 10:08
Polygon should not be wrapped in the Kernel module.
Original issue reported on code.google.com by [email protected]
on 15 Jun 2012 at 6:05
What steps will reproduce the problem?
1. get `edge`, an instance of
CGAL.CGAL_Mesh_2.Mesh_2_Constrained_Delaunay_triangulation_plus_2_Edge
2. try to unpack `edge` : fh, i = edge
What is the expected output? What do you see instead?
One would expect the same thing as given by:
fh = edge[0]
i = edge[1]
Instead we get a exception : "ValueError: too many values to unpack"
What version of the product are you using? On what operating system?
I'm using commit 29ca15dbd820e190cc7e9736d468aa1fbe657f51 on linux debian
wheezy with CGAL 4.4
Please provide any additional information below.
Some investigation with the python debugger leads to the swig generated python
file `cgal-bindings/build-python/CGAL/CGAL_Mesh_2.py` :
* the __len__ method is defined to return 2
* the __getitem__ and __setitem__ methods are defined to accept any index and
interpreting it modulo 2
The point is that an Edge instance, in the context of the iterator protocol is
seen as an infinite sequence :
t = tuple(edge) loops for ever
Cf.
https://docs.python.org/2/reference/datamodel.html#emulating-container-types:
Note for loops expect that an IndexError will be raised for illegal indexes to allow proper detection of the end of the sequence.
Please either implement a proper iterable protocol of fix the sequence protocol.
Original issue reported on code.google.com by [email protected]
on 1 Jul 2014 at 3:18
What might make an interesting contribution is a OGL viewer for the CGAL
primitives. Is porting the QT viewer of the CGAL project an ambition of this
project? I'd be interested in helping out...
Original issue reported on code.google.com by [email protected]
on 23 Dec 2011 at 10:22
# What steps will reproduce the problem?
1. Installed CGAL 4.0.2 and swig 2.0.8 with Homebrew on OS X
2. git clone https://code.google.com/p/cgal-bindings/ (HEAD at 8a354bc) and cd
cgal-bindings
3. cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON
4. make
# What is the expected output? What do you see instead?
During make phase, I get the following std out with these errors:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.cpp:10:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.h:12:
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_impl.h:15:42: error:
lookup of 'Line_3' in member access expression is ambiguous
SWIG_CGAL_FORWARD_CALL_AND_REF_1(Plane_3,Line_3::perpendicular_plane,Point_3)
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:51: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_1'
SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1(RET,NAME,NAME,IN_TYPE)
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:183:43: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1'
SWIG_CGAL_FORWARD_CALL_SCOPE_1(RET,NAME,INAME,IN_TYPE) \
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:171:57: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_SCOPE_1'
return RET(SWIG_CGAL_extract_data(this->get_data()).INAME(...
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Line_3.h:37:7: note: lookup in the
object type 'CGAL::Line_3<CGAL::Epick>' refers here
class Line_3 : public R_::Kernel_base::Line_3
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_def.h:22:29: note:
lookup from the current scope refers here
class SWIG_CGAL_KERNEL_DECL Line_3{
^
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.cpp:10:
In file included from
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3.h:12:
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_impl.h:15:42: error:
lookup of 'Line_3' in member access expression is ambiguous
SWIG_CGAL_FORWARD_CALL_AND_REF_1(Plane_3,Line_3::perpendicular_plane,Point_3)
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:51: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_1'
SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1(RET,NAME,NAME,IN_TYPE)
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Common/Macros.h:185:56: note:
expanded from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1'
ret = RET(SWIG_CGAL_extract_data(this->get_data()).INAME(...
^
/usr/local/Cellar/cgal/4.0.2/include/CGAL/Line_3.h:37:7: note: lookup in the
object type 'CGAL::Line_3<CGAL::Epick>' refers here
class Line_3 : public R_::Kernel_base::Line_3
^
/Users/jsick/code/cgal-bindings/SWIG_CGAL/Kernel/Line_3_def.h:22:29: note:
lookup from the current scope refers here
class SWIG_CGAL_KERNEL_DECL Line_3{
^
3 warnings and 2 errors generated.
make[2]: *** [SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Line_3.cpp.o]
Error 1
make[1]: *** [SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/all] Error 2
make: *** [all] Error 2
# What version of the product are you using? On what operating system?
- Mac OS X 10.8.1
- cgal-bindings 8a354bc
- CGAL 4.0.2
- swig 2.0.8
# Please provide any additional information below.
Here is the result from cmake:
cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON
-DBUILD_JAVA=OFF
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is Clang 4.0.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found SWIG: /usr/local/bin/swig (found version "2.0.8")
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = ' '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=12
-- Mac Leopard detected
-- BUILD_Ruby is set to OFF: no CGAL-bindings for Ruby will be generated.
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found version "2.7.3")
-- BUILD_JAVA is set to OFF: no CGAL-bindings for Java will be generated.
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/Users/jsick/code/cgal-bindings/build-python/CGAL.
-- NOTICE: CGAL imageIO has not be found, few bindings will not be compiled
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/jsick/code/cgal-bindings
Original issue reported on code.google.com by [email protected]
on 22 Sep 2012 at 8:51
Are there plans to enable C# bindings for CGAL? Are there specific reasons for
not having enabled it yet?
Original issue reported on code.google.com by [email protected]
on 17 Jan 2012 at 10:23
What steps will reproduce the problem?
I tried building the CGAL bindings agains CGAL 4.2. This fails because of a typo
in declare_interpolation_function. The sibson_gradient_fitting_rn_2 function
apeas to wrap
sibson_gradient_fitting_nn_2 instead of the expected one.
This breaks compilation on my system.
The relevant fix is in my github fork of the cgal bindings:
https://github.com/jenshnielsen/cgal-bindings/commit/78ed13c8de73a080d9c09c1d9ca
7dd557878eb19
With this fix the code compiles for me.
Original issue reported on code.google.com by [email protected]
on 30 Apr 2013 at 11:29
What steps will reproduce the problem?
0. brew install --use-llvm mpfr
1. from homebrew: cgal: stable 4.0.2, swig: stable 2.0.8
2. cgal-bindings 851dc5f47249b3c9eef608fcd4761249032d9f0d
3. cmake -DCGAL_DIR=/usr/local/lib/CGAL -DBUILD_PYTHON=ON -DBUILD_JAVA=OFF
-DCGAL_CXX_FLAGS=-DCGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES ../..
-- Build type: Release
-- USING CXXFLAGS = ' -DCGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES -O3 -DNDEBUG'
-- USING EXEFLAGS = ' '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=11
-- Mac Leopard detected
-- BUILD_Ruby is set to OFF: no CGAL-bindings for Ruby will be generated.
-- BUILD_JAVA is set to OFF: no CGAL-bindings for Java will be generated.
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/Users/ttemple/research/projects/resman/code/thirdparty/cgal-bindings/build/CGAL
_take_two/build-python/CGAL.
-- Found JNI: JNI include dirs
/System/Library/Frameworks/JavaVM.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Headers.
-- CGAL-SWIG Java libraries and files will be respectively written in
/Users/ttemple/research/projects/resman/code/thirdparty/cgal-bindings/build/CGAL
_take_two/build-java/lib and
/Users/ttemple/research/projects/resman/code/thirdparty/cgal-bindings/build/CGAL
_take_two/build-java/CGAL.
-- NOTICE: CGAL imageIO has not be found, few bindings will not be compiled
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/ttemple/research/projects/resman/code/thirdparty/cgal-bindings/build/CGAL
_take_two
4. make
Alternatively:
3. cmake -DCGAL_DIR=/usr/local/Cellar/cgal/4.0.2/lib/CGAL/ -DBUILD_PYTHON=ON
../..
and I got issue 24
5. edit /usr/local/Cellar/cgal/4.0.2/include/CGAL/Alpha_shape_2.h:594 to
"this->locate"
then running make again produced the same error
What is the expected output? What do you see instead?
Linking CXX shared module ../../build-python/CGAL/_CGAL_Spatial_searching.so
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
boost::unique_lock<boost::mutex>::lock() in CGAL_Spatial_searchingPYTHON_wrap.cxx.o
boost::mutex::lock() in CGAL_Spatial_searchingPYTHON_wrap.cxx.o
boost::mutex::mutex() in CGAL_Spatial_searchingPYTHON_wrap.cxx.o
__GLOBAL__I_a in CGAL_Spatial_searchingPYTHON_wrap.cxx.o
"boost::system::generic_category()", referenced from:
__GLOBAL__I_a in CGAL_Spatial_searchingPYTHON_wrap.cxx.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [build-python/CGAL/_CGAL_Spatial_searching.so] Error 1
make[1]: ***
[SWIG_CGAL/Spatial_searching/CMakeFiles/_CGAL_Spatial_searching.dir/all] Error 2
What version of the product are you using? On what operating system?
851dc5f47249b3c9eef608fcd4761249032d9f0d,
OSX 10.7.5,
XCode Version 4.5 (4G182)
Please provide any additional information below.
I included the llvm flag I used with mpfr because I noticed that cmake chose a
/usr/lib/c++. I tried it with
3. cmake -DCMAKE_C_COMPILER=llvm-gcc -DCMAKE_CXX_COMPILER=llvm-g++
-DCGAL_DIR=/usr/local/lib/CGAL -DBUILD_JAVA=OFF -DBUILD_PYTHON=ON
-DCGAL_CXX_FLAGS=-DCGAL_CFG_NO_CPP0X_VARIADIC_TEMPLATES ../..
but then "make" gave me all sorts of errors.
Original issue reported on code.google.com by [email protected]
on 12 Dec 2012 at 10:23
It seems that it is not yet possible to use pickle with objects from CGAL.
I tried :
from CGAL.CGAL_Polyhedron_3 import Polyhedron_3
import pickle
polyhedron=Polyhedron_3()
filename='datafile'
with open( filename,'w') as f:
pickle.dump(polyhedron,f)
And I get the error "TypeError: can't pickle SwigPyObject objects"
on the line
File "C:\Python27\Lib\copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
Maybe this could be done by defining __getstate__ and __setstate_ methods in
the c++ code ?
_
Original issue reported on code.google.com by [email protected]
on 12 Jun 2013 at 1:01
Hi,
I want to test the natural neighbor coordinates interpolation function on
a delaunay triangulation.
Unfortunately, I can't find how to do it. Basically, here is what I tried in
python (I attached a python file for more details):
triangulation = Triangulation_2()
p = Point_2()
p_ = Point_2_and_double()
r = natural_neighbor_coordinates_2(t, p, p_)
This leads to the following error:
"""
Wrong number or type of arguments for overloaded function
'natural_neighbor_coordinates_2'.
Possible C/C++ prototypes are:
natural_neighbor_coordinates_2(Delaunay_triangulation_2_SWIG_wrapper const &,Point_2 const &,boost::function_output_iterator< Container_writer< std::pair< Point_2,double >,std::pair< Point_2::cpp_base,double > > >,SWIG_Triangulation_2::CGAL_Face_handle< CGAL_DT2,Point_2 > const &)
natural_neighbor_coordinates_2(Delaunay_triangulation_2_SWIG_wrapper const &,Point_2 const &,boost::function_output_iterator< Container_writer< std::pair< Point_2,double >,std::pair< Point_2::cpp_base,double > > >)
natural_neighbor_coordinates_2(Delaunay_triangulation_2_SWIG_wrapper const &,Point_2 const &,boost::function_output_iterator< Container_writer< std::pair< Point_2,double >,std::pair< Point_2::cpp_base,double > > >,std::pair< Input_iterator_wrapper< Delaunay_triangulation_2_Edge_SWIG_wrapper,CGAL_DT2::Edge >,Input_iterator_wrapper< Delaunay_triangulation_2_Edge_SWIG_wrapper,CGAL_DT2::Edge > >)
natural_neighbor_coordinates_2(Delaunay_triangulation_2_SWIG_wrapper const &,SWIG_Triangulation_2::CGAL_Vertex_handle< CGAL_DT2,Point_2 > const &,boost::function_output_iterator< Container_writer< std::pair< Point_2,double >,std::pair< Point_2::cpp_base,double > > >)
"""
I think I didn't understand what Point_2_and_double is for...
Thx,
François
Original issue reported on code.google.com by [email protected]
on 19 Jan 2012 at 8:53
Attachments:
I'm having trouble building cgal-bindings on Ubuntu 12.04, using the latest
source because "helpers.h" is not being found:
1. CGAL installation:
sudo apt-get install libcgal-dev
2. cgal-bindings installation:
git clone https://code.google.com/p/cgal-bindings
mkdir build/CGAL-3.9_release -p
cd ~/rps/cgal-bindings/build/CGAL-3.9_release
cmake -DCGAL_DIR=/usr/lib/CGAL -DJAVA_OUTDIR_PREFIX=../../examples/java
-DPYTHON_OUTDIR_PREFIX=../../examples/python ../..
-- Build type: Release
-- USING CXXFLAGS = '-g -O2 -fstack-protector --param=ssp-buffer-size=4
-Wformat -Wformat-security -frounding-math -O3 -DNDEBUG'
-- USING EXEFLAGS = ' -Wl,-Bsymbolic-functions -Wl,-z,relro '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- Release mode with g++: using -fno-strict-aliasing flags
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/home/epifanio/rps/cgal-bindings/examples/python/CGAL.
-- Found JNI: JNI include dirs /usr/lib/jvm/java-6-sun/include
/usr/lib/jvm/java-6-sun/include/linux.
-- CGAL-SWIG Java libraries and files will be respectively written in
/home/epifanio/rps/cgal-bindings/examples/java/lib and
/home/epifanio/rps/cgal-bindings/examples/java/CGAL.
-- Configuring done
-- Generating done
-- Build files have been written to:
/home/epifanio/rps/cgal-bindings/build/CGAL-3.9_release
make -j 4
[ 1%] [ 2%] Building CXX object
SWIG_CGAL/Java/CMakeFiles/CGAL_Java_cpp.dir/JavaData.cpp.o
[ 3%] Building CXX object
SWIG_CGAL/Triangulation_2/CMakeFiles/CGAL_Triangulation_2_cpp.dir/Object.cpp.o
[ 5%] Building CXX object
SWIG_CGAL/Triangulation_3/CMakeFiles/CGAL_Triangulation_3_cpp.dir/Object.cpp.o
In file included from
/home/epifanio/rps/cgal-bindings/SWIG_CGAL/Triangulation_2/Object.h:11:0,
from /home/epifanio/rps/cgal-bindings/SWIG_CGAL/Triangulation_2/Object.cpp:10:
/home/epifanio/rps/cgal-bindings/SWIG_CGAL/Triangulation_2/decl.h:11:33: fatal
error: CGAL/export/helpers.h: No such file or directory
compilation terminated.
Original issue reported on code.google.com by rsignell
on 31 Jul 2012 at 2:13
I noticed that linking fails on a mac because the python library is not linked.
I just added it in SWIG_CGAL_marcros.cmake.
Original issue reported on code.google.com by [email protected]
on 24 Jan 2012 at 8:17
I am not very familiar with CGAL library but want to use the Python bindings,
so not sure if I can create 3d convex hulls using this project.
Thanks.
Original issue reported on code.google.com by [email protected]
on 8 Jun 2012 at 3:56
Has this been built on a windows machine?
Following the installation instructions, I get:
c:\Program Files (x86)\CGAL-3.9\cgal-bindings>cmake .
-- Build type: Release
-- USING CXXFLAGS = ' /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR
-D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS
-D_SCL_SECURE_NO_WARNINGS /fp:strict /fp:except- /MD /O2/Ob2 /D NDEBUG'
-- USING EXEFLAGS = ' /STACK:10000000 /machine:X86 /INCREMENTAL:NO'
-- Targetting Visual Studio 10
-- Target build enviroment supports auto-linking
-- Using VC10 compiler.
-- Generator uses intermediate configuration directory: $(Configuration)
Release mode: using -fno-strict-aliasing flags
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)
CMake Warning at CMakeLists.txt:37 (message):
Python has not been found, CGAL-bindings for Python will not be generated.
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY
JAVA_INCLUDE_PATH JAVA_INCLUDE_PA
TH2 JAVA_AWT_INCLUDE_PATH)
CMake Warning at CMakeLists.txt:45 (message):
JNI has not been found, CGAL-bindings for Java will not be generated.
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Program Files
(x86)/CGAL-3.9/cgal-bindings
Even if I set PYTHON_INCLUDE_DIRS etc, I get the same errors.
Original issue reported on code.google.com by [email protected]
on 17 Jan 2012 at 4:16
The dual method returns a new triangulation instead of a copy of underlying
triangulation. This imply that the handles are different for example.
Original issue reported on code.google.com by [email protected]
on 4 Feb 2013 at 11:00
the typemap's for iterators (input/output) for kernel type
could be easily wrapped inside the common.i for example
(see Convex_hull_2 for example).
Original issue reported on code.google.com by [email protected]
on 27 Aug 2012 at 6:11
What steps will reproduce the problem?
1.CGAL-3.9
2.git clone https://code.google.com/p/cgal-bindings/
3.cmake -DCGAL_DIR=/usr/local/lib/CGAL
What is the expected output? What do you see instead?
Part of output:
/home/yulan/cgal-bindings/SWIG_CGAL/Triangulation_3/CGAL_Triangulation_3JAVA_wra
p.cxx: In function ‘void
Java_CGAL_Triangulation_13_CGAL_1Triangulation_13JNI_Internal_1Triangulation_13_
1Regular_1triangulation_13_1adjacent_1vertices(JNIEnv*, _jclass*, jlong,
_jobject*, jlong, _jobject*, _jobject*)’:
/home/yulan/cgal-bindings/SWIG_CGAL/Triangulation_3/CGAL_Triangulation_3JAVA_wra
p.cxx:25590: error: no match for ‘operator=’ in ‘arg3 =
boost::make_function_output_iterator(const UnaryFunction&) [with UnaryFunction
=
Container_writer<std::pair<SWIG_Triangulation_3::CGAL_Cell_handle<CGAL::Regular_
triangulation_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick,
double, true>, CGAL::Default>, Weighted_point_3>, int>,
std::pair<CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Regular_tria
ngulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick
, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>,
CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Tr
iangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::E
pick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > >,
CGAL::Default>, false>, int> >]()’
/usr/include/boost/function_output_iterator.hpp:19: note: candidates are:
boost::function_output_iterator<Container_writer<SWIG_Triangulation_3::CGAL_Vert
ex_handle<CGAL::Regular_triangulation_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>, CGAL::Default>, Weighted_point_3>,
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_b
ase_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick, double,
true>,
CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::
Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL:
:Epick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, CGAL::Default>, false> > >&
boost::function_output_iterator<Container_writer<SWIG_Triangulation_3::CGAL_Vert
ex_handle<CGAL::Regular_triangulation_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>, CGAL::Default>, Weighted_point_3>,
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_b
ase_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick, double,
true>,
CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::
Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL:
:Epick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, CGAL::Default>, false> > >::operator=(const
boost::function_output_iterator<Container_writer<SWIG_Triangulation_3::CGAL_Vert
ex_handle<CGAL::Regular_triangulation_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>, CGAL::Default>, Weighted_point_3>,
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_b
ase_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick, double,
true>,
CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::
Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL:
:Epick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, CGAL::Default>, false> > >&)
/home/yulan/cgal-bindings/SWIG_CGAL/Triangulation_3/CGAL_Triangulation_3JAVA_wra
p.cxx: In function ‘void
Java_CGAL_Triangulation_13_CGAL_1Triangulation_13JNI_Internal_1Triangulation_13_
1Regular_1triangulation_13_1finite_1adjacent_1vertices(JNIEnv*, _jclass*,
jlong, _jobject*, jlong, _jobject*, _jobject*)’:
/home/yulan/cgal-bindings/SWIG_CGAL/Triangulation_3/CGAL_Triangulation_3JAVA_wra
p.cxx:25626: error: no match for ‘operator=’ in ‘arg3 =
boost::make_function_output_iterator(const UnaryFunction&) [with UnaryFunction
=
Container_writer<std::pair<SWIG_Triangulation_3::CGAL_Cell_handle<CGAL::Regular_
triangulation_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick,
double, true>, CGAL::Default>, Weighted_point_3>, int>,
std::pair<CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Regular_tria
ngulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick
, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>,
CGAL::Triangulation_ds_cell_base_3<CGAL::Triangulation_data_structure_3<CGAL::Tr
iangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::E
pick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > >,
CGAL::Default>, false>, int> >]()’
/usr/include/boost/function_output_iterator.hpp:19: note: candidates are:
boost::function_output_iterator<Container_writer<SWIG_Triangulation_3::CGAL_Vert
ex_handle<CGAL::Regular_triangulation_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>, CGAL::Default>, Weighted_point_3>,
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_b
ase_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick, double,
true>,
CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::
Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL:
:Epick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, CGAL::Default>, false> > >&
boost::function_output_iterator<Container_writer<SWIG_Triangulation_3::CGAL_Vert
ex_handle<CGAL::Regular_triangulation_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>, CGAL::Default>, Weighted_point_3>,
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_b
ase_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick, double,
true>,
CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::
Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL:
:Epick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, CGAL::Default>, false> > >::operator=(const
boost::function_output_iterator<Container_writer<SWIG_Triangulation_3::CGAL_Vert
ex_handle<CGAL::Regular_triangulation_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>, CGAL::Default>, Weighted_point_3>,
CGAL::internal::CC_iterator<CGAL::Compact_container<CGAL::Triangulation_vertex_b
ase_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL::Epick, double,
true>,
CGAL::Triangulation_ds_vertex_base_3<CGAL::Triangulation_data_structure_3<CGAL::
Triangulation_vertex_base_3<CGAL::Regular_triangulation_euclidean_traits_3<CGAL:
:Epick, double, true>, CGAL::Triangulation_ds_vertex_base_3<void> >,
CGAL::Regular_triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_tr
aits_3<CGAL::Epick, double, true>,
CGAL::Triangulation_cell_base_3<CGAL::Regular_triangulation_euclidean_traits_3<C
GAL::Epick, double, true>, CGAL::Triangulation_ds_cell_base_3<void> >,
std::list<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double>,
std::allocator<CGAL::Weighted_point<CGAL::Point_3<CGAL::Epick>, double> > > > >
> >, CGAL::Default>, false> > >&)
make[2]: ***
[SWIG_CGAL/Triangulation_3/CMakeFiles/CGAL_Triangulation_3.dir/CGAL_Triangulatio
n_3JAVA_wrap.cxx.o] Error 1
make[1]: ***
[SWIG_CGAL/Triangulation_3/CMakeFiles/CGAL_Triangulation_3.dir/all] Error 2
make: *** [all] Error 2
What version of the product are you using? On what operating system?
ubuntu
Please provide any additional information below.
Bosst-1.40
Original issue reported on code.google.com by [email protected]
on 22 Jun 2012 at 2:24
Trying to build python bindings on OS X, and get various compilation failures.
Building java bindings seems to fail the same way.
Here is output of my cmake, followed by output of compilation.
Patricks-MacBook-Pro:CGAL-3.9_release pds$ cmake
-DCGAL_DIR=/Users/pds/tools/CGAL-3.9 -DBUILD_PYTHON=ON -DBUILD_JAVA=OFF ../..
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries
/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/li
bGL.dylib '
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=11
-- Mac Leopard detected
-- BUILD_JAVA is set to OFF: no CGAL-bindings for Java will be generated.
-- Found Python libs.
-- CGAL-SWIG Python files and libraries will be written in
/Users/pds/tools/cgal-bindings/build/CGAL-3.9_release/build-python/CGAL.
-- Found JNI: JNI include dirs
/System/Library/Frameworks/JavaVM.framework/Headers
/System/Library/Frameworks/JavaVM.framework/Headers.
-- CGAL-SWIG Java libraries and files will be respectively written in
/Users/pds/tools/cgal-bindings/build/CGAL-3.9_release/build-java/lib and
/Users/pds/tools/cgal-bindings/build/CGAL-3.9_release/build-java/CGAL.
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/pds/tools/cgal-bindings/build/CGAL-3.9_release
Here is the compilation failure, doesn't like something with the Line_3_def.h:
Patricks-MacBook-Pro:CGAL-3.9_release pds$ make
Scanning dependencies of target CGAL_Kernel_cpp
[ 2%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Point_2.cpp.o
[ 4%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Weighted_point_2.cpp.o
[ 6%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Segment_2.cpp.o
[ 8%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Triangle_2.cpp.o
[ 10%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Ray_2.cpp.o
[ 12%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Direction_2.cpp.o
[ 14%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Line_2.cpp.o
[ 16%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Vector_2.cpp.o
[ 18%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Polygon_2.cpp.o
[ 20%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Point_3.cpp.o
[ 22%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Weighted_point_3.cpp.o
[ 24%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Sphere_3.cpp.o
[ 26%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Plane_3.cpp.o
[ 28%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Segment_3.cpp.o
[ 30%] Building CXX object
SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Line_3.cpp.o
In file included from
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3.cpp:10:
In file included from
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3.h:12:
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3_impl.h:15:42: error:
lookup of 'Line_3' in member access expression is ambiguous
SWIG_CGAL_FORWARD_CALL_AND_REF_1(Plane_3,Line_3::perpendicular_plane,Point_3)
^
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:51: note: expanded
from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_1'
SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1(RET,NAME,NAME,IN_TYPE)
^
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Common/Macros.h:183:43: note: expanded
from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1'
SWIG_CGAL_FORWARD_CALL_SCOPE_1(RET,NAME,INAME,IN_TYPE) \
^
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Common/Macros.h:171:57: note: expanded
from macro 'SWIG_CGAL_FORWARD_CALL_SCOPE_1'
return RET(SWIG_CGAL_extract_data(this->get_data()).INAME(...
^
/opt/local/include/CGAL/Line_3.h:37:7: note: lookup in the object type
'CGAL::Line_3<CGAL::Epick>' refers here
class Line_3 : public R_::Kernel_base::Line_3
^
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3_def.h:22:29: note:
lookup from the current scope refers here
class SWIG_CGAL_KERNEL_DECL Line_3{
^
In file included from
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3.cpp:10:
In file included from
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3.h:12:
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3_impl.h:15:42: error:
lookup of 'Line_3' in member access expression is ambiguous
SWIG_CGAL_FORWARD_CALL_AND_REF_1(Plane_3,Line_3::perpendicular_plane,Point_3)
^
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Common/Macros.h:189:51: note: expanded
from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_1'
SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1(RET,NAME,NAME,IN_TYPE)
^
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Common/Macros.h:185:56: note: expanded
from macro 'SWIG_CGAL_FORWARD_CALL_AND_REF_SCOPE_1'
ret = RET(SWIG_CGAL_extract_data(this->get_data()).INAME(...
^
/opt/local/include/CGAL/Line_3.h:37:7: note: lookup in the object type
'CGAL::Line_3<CGAL::Epick>' refers here
class Line_3 : public R_::Kernel_base::Line_3
^
/Users/pds/tools/cgal-bindings/SWIG_CGAL/Kernel/Line_3_def.h:22:29: note:
lookup from the current scope refers here
class SWIG_CGAL_KERNEL_DECL Line_3{
^
2 errors generated.
make[2]: *** [SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/Line_3.cpp.o]
Error 1
make[1]: *** [SWIG_CGAL/Kernel/CMakeFiles/CGAL_Kernel_cpp.dir/all] Error 2
make: *** [all] Error 2
Patricks-MacBook-Pro:CGAL-3.9_release pds$
Original issue reported on code.google.com by [email protected]
on 5 May 2012 at 10:53
The C++ Triangulation_2::is_edge method uses two output arguments : a reference
to a Face_handle and to an int.
(cf.
http://doc.cgal.org/latest/Triangulation_2/classCGAL_1_1Triangulation__2.html#ad
beb9736f9bfc588658316669cd7fb44)
For now the method has to be used as follow (thanks to Sébastien Loriot for
the trick):
from CGAL_Mesh_2 import
Ref_Mesh_2_Constrained_Delaunay_triangulation_plus_2_Face_handle
from CGAL_Kernel import Ref_int
# Assume `cdt` is a CDT+2 and `va`, `vb` are valid `Face_handle`s
fh_ref=Ref_Mesh_2_Constrained_Delaunay_triangulation_plus_2_Face_handle()
i = Ref_int()
is_edge = cdt.is_edge(va, vb, fh, i)
if is_edge:
return (fh.object(), i.object())
Please consider documenting this and/or reducing the complexity.
I'm willing to contribute the doc patch or help with the patch.
Original issue reported on code.google.com by [email protected]
on 1 Jul 2014 at 7:02
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.