#NEWLINE# def __init__( self , points , radius = None , center = None ) : #NEWLINE# #INDENT# '\n        Initializes the object and starts the computation of the Voronoi\n        diagram.\n\n        points : The generator points of the Voronoi diagram assumed to be\n         all on the sphere with radius supplied by the radius parameter and\n         center supplied by the center parameter.\n        radius : The radius of the sphere. Will default to 1 if not supplied.\n        center : The center of the sphere. Will default to the origin if not\n         supplied.\n        ' #NEWLINE# self . points = points #NEWLINE# if np . any ( radius ) : #NEWLINE# #INDENT# self . center = center #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . center = np . zeros ( 3 ) #NEWLINE# #UNINDENT# if radius : #NEWLINE# #INDENT# self . radius = radius #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . radius = 1 #NEWLINE# #UNINDENT# self . vertices = None #NEWLINE# self . regions = None #NEWLINE# self . _tri = None #NEWLINE# self . _calc_vertices_regions ( )