current_dir = os.getcwd() filename = current_dir + "/frames/vd500_zoomout"+ ('%05d' % n)+".png" lwr.SetFileName( filename ) #lwr.Write() if __name__ == "__main__": #print ocl.revision() #w=2500 #h=1500 #w=1920 #h=1080 w=1024 h=1024 myscreen = ovdvtk.VTKScreen(width=w, height=h) ovdvtk.drawOCLtext(myscreen, rev_text=ovd.revision() ) w2if = vtk.vtkWindowToImageFilter() w2if.SetInput(myscreen.renWin) lwr = vtk.vtkPNGWriter() lwr.SetInput( w2if.GetOutput() ) #w2if.Modified() #lwr.SetFileName("tux1.png") scale=1 myscreen.render() random.seed(42) far = 1 camPos = far zmult = 3 # camPos/float(1000)
t_after = time.time() point_site_time = (t_after - t_before) # insert linesegs t_before = time.time() for s in id_list: vd.addLineSite( s[0], s[1] ) t_after = time.time() line_site_time = (t_after - t_before) return [point_site_time , line_site_time] def log2(x): return math.log10(x)/math.log10(2) if __name__ == "__main__": print ovd.revision() far = 1 Nmax_exp_start = 13 Nmax_exp_end = 20 # 10 -> 32 linesites # 14 -> 128 # 18 -> 512 # 20 -> 1024 timeVoronoiSegs() segtype=1 (Release-build) (398-splitverts) # 24 -> 4096 # 28 -> 16384 # 32 -> 65536 # 33 -> 92681 # 34 -> 131072 timeVoronoiPoints() (Release-build) # 35 -> 185363 # 36 -> 262144