do not compute the convex hull
This commit is contained in:
parent
c0ebccb5b4
commit
ab22d6dd41
1 changed files with 6 additions and 5 deletions
11
run_all.py
11
run_all.py
|
|
@ -10,6 +10,7 @@ from itertools import ifilterfalse as filter_if_not
|
||||||
import ants
|
import ants
|
||||||
import utils
|
import utils
|
||||||
from utils import LOG,LOGN
|
from utils import LOG,LOGN
|
||||||
|
from geometry import x,y
|
||||||
import hull
|
import hull
|
||||||
import uberplot
|
import uberplot
|
||||||
import shortpath
|
import shortpath
|
||||||
|
|
@ -153,11 +154,11 @@ else:
|
||||||
points = utils.vertices_of(penrose_segments)
|
points = utils.vertices_of(penrose_segments)
|
||||||
triangles = triangulation.delaunay_bowyer_watson( points, do_plot = False )
|
triangles = triangulation.delaunay_bowyer_watson( points, do_plot = False )
|
||||||
|
|
||||||
LOGN( "\tCompute the convex hull of",len(points),"points" )
|
# LOGN( "\tCompute the convex hull of",len(points),"points" )
|
||||||
# Should convert the set into a list
|
# # Should convert the set into a list
|
||||||
hull = hull.convex_hull( list(points) )
|
# hull = hull.convex_hull( list(points) )
|
||||||
hull_edges = list(utils.tour(hull))
|
# hull_edges = list(utils.tour(hull))
|
||||||
LOGN( "\t\tHull of",len(hull_edges),"edges" )
|
# LOGN( "\t\tHull of",len(hull_edges),"edges" )
|
||||||
|
|
||||||
LOGN( "\tRemove triangles that are not sub-parts of the Penrose tiling" )
|
LOGN( "\tRemove triangles that are not sub-parts of the Penrose tiling" )
|
||||||
# def adjoin_hull(triangle):
|
# def adjoin_hull(triangle):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue