do not compute the convex hull

This commit is contained in:
Johann Dreo 2014-05-21 11:25:05 +02:00
commit ab22d6dd41

View file

@ -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):