summaryrefslogtreecommitdiff
path: root/src/python/example/plot_alpha_complex.py
diff options
context:
space:
mode:
authorHind-M <hind.montassif@gmail.com>2022-01-31 11:15:54 +0100
committerHind-M <hind.montassif@gmail.com>2022-01-31 11:15:54 +0100
commit1209db091a89ed48527c34fff0cc9ef41c78d11f (patch)
treee34a11454579e27ad3c711b50a46c5c9670a3e54 /src/python/example/plot_alpha_complex.py
parent8d1e7aeb3416194d00f45587d1ecea85ba218028 (diff)
parent7f1b8eb706c72921141b53e607d6e2aa28e2bf19 (diff)
Merge remote-tracking branch 'upstream/master' into fetch_datasets
Diffstat (limited to 'src/python/example/plot_alpha_complex.py')
-rwxr-xr-xsrc/python/example/plot_alpha_complex.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/python/example/plot_alpha_complex.py b/src/python/example/plot_alpha_complex.py
index 99c18a7c..0924619b 100755
--- a/src/python/example/plot_alpha_complex.py
+++ b/src/python/example/plot_alpha_complex.py
@@ -1,8 +1,9 @@
#!/usr/bin/env python
import numpy as np
-import gudhi
-ac = gudhi.AlphaComplex(off_file='../../data/points/tore3D_1307.off')
+import gudhi as gd
+points = gd.read_points_from_off_file(off_file = '../../data/points/tore3D_1307.off')
+ac = gd.AlphaComplex(points = points)
st = ac.create_simplex_tree()
points = np.array([ac.get_point(i) for i in range(st.num_vertices())])
# We want to plot the alpha-complex with alpha=0.1.