Пример #1
0
def main():
    v = Voronoi(view=False)
    v.read("d1_sites.txt")
    v.precompute()
    v.validateDCEL()
    v.outputVoronoi()

    v2 = Voronoi(view=False)
    v2.read("d2_sites.txt")
    v2.precompute()
    v2.validateDCEL()
    v2.outputVoronoi()

    d1 = v.delaunay
    d2 = v2.delaunay

    Delaunay.merge_triangulations(d1, d2)
Пример #2
0
def main():
    v = Voronoi(view=False)
    v.read('sites.txt')
    v.precompute()
    v.validateDCEL()
    v.outputVoronoi()