Example #1
0
    t_after = time.time()
    line_time = t_after - t_before
    if line_time < 1e-3:
        line_time = 1
    times.append(line_time)

    # of = ovd.Offset( vd.getGraph() ) # pass the created graph to the Offset class
    # of.str()
    # ofs = of.offset(0.123)
    # print ofs
    # drawOffsets(myscreen, ofs)

    pi = ovd.PolygonInterior(True)
    vd.filter_graph(pi)

    of = ovd.Offset(
        vd.getGraph())  # pass the created graph to the Offset class

    ofs = of.offset(0.123)
    # print ofs
    ovdvtk.drawOffsets(myscreen, ofs)

    # of.offset(0.125)

    vod.setVDText2(times)
    vod.setAll()
    print("PYTHON All DONE.")
    myscreen.render()
    myscreen.iren.Start()
    vd.check()

    t_after = time.time()
    line_time = t_after - t_before
    if line_time < 1e-3:
        line_time = 1
    times.append(line_time)

    # of = ovd.Offset( vd.getGraph() ) # pass the created graph to the Offset class
    # of.str()
    # ofs = of.offset(0.123)
    # print ofs
    # drawOffsets(myscreen, ofs)

    pi = ovd.PolygonInterior(True)
    vd.filter_graph(pi)

    of = ovd.Offset(vd.getGraph())  # pass the created graph to the Offset class

    ofs = of.offset(0.123)
    # print ofs
    ovdvtk.drawOffsets(myscreen, ofs)

    # of.offset(0.125)

    vod.setVDText2(times)
    vod.setAll()
    print "PYTHON All DONE."
    myscreen.render()
    myscreen.iren.Start()