1 2 3 4 5 6 7 8 9 10 11 12
| from ovito.io import import_file from ovito.vis import Viewport,TachyonRenderer
d = "1_nvt_-0.07" pipeline = import_file(d+'.data') pipeline.add_to_scene() vp = Viewport(type = Viewport.Type.FRONT, camera_dir = (0, 0, 0)) vp.zoom_all()
vp.render_image(filename=d+'.png', size=(3200, 2400), renderer=TachyonRenderer(shadows=False, direct_light_intensity=1.1))
|