import numpy as np from scvt.timer import Timer ######################################################## def simplex(ii,jj,kk): if ii>jj: ii,jj = jj,ii if jj>kk: jj,kk = kk,jj if ii>jj: ii,jj = jj,ii # now ii ((n1,point1, (n2,point2)) # where n is the index of a simplex containing edge # and point is the index of the third point of that simplex # regions is a dictionary : point -> dict of edges edges,regions = {},{} for n,(ii,jj,kk) in enumerate(simplices): # note that ii