Reputation: 20355
It seems to me that the CGAL
documentation is not well documented. I am totally lost with how to use their packages in Python.
I have installed CGAL-4.3
on my Windows, and I tried to do
In [233]: """ python 2.4"""
.....: from CGAL.Alpha_shapes_2 import *
.....: from CGAL.Triangulations_2 import Delaunay_triangulation_2
.....: from CGAL.Kernel import *
.....: from ShapeHelper import *
.....: import numpy as np
.....: import sys
Error message says
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-233-4807de38949d> in <module>()
1 """ python 2.4"""
----> 2 from CGAL.Alpha_shapes_2 import *
3 from CGAL.Triangulations_2 import Delaunay_triangulation_2
4 from CGAL.Kernel import *
5 from ShapeHelper import *
ImportError: No module named CGAL.Alpha_shapes_2
What should I do so that I can import these modules correctly?
After I can import them, it is as easy as using any other modules in python.
Upvotes: 0
Views: 4481
Reputation: 8302
There are some Unofficial binaries to go with python scientific-extension packages that are not compatible with Windows out of the box.
There is one for CGAL-python in the link provided, a little ways down.
Upvotes: 5