File: test_surf_pov.py

package info (click to toggle)
openstructure 2.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 206,240 kB
  • sloc: cpp: 188,571; python: 36,686; ansic: 34,298; fortran: 3,275; sh: 312; xml: 146; makefile: 29
file content (20 lines) | stat: -rw-r--r-- 575 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# run with ost_cl
struct=io.LoadEntity("sdh.pdb")
surf=io.LoadSurface("sdh","msms")
surf.Attach(struct,5.0)
go=gfx.Surface("surf",surf)
scene.Add(go)
scene.SetCenter(go.GetCenter())
scene.Autoslab()
scene.SetFog(True)
scene.Autoslab(True)
scene.fog_near_offset=10
scene.SetBackground(gfx.WHITE)

# fast version, via attached atoms
go.ColorBy("abfac",gfx.Color(0,0,1),gfx.Color(1,0,0),30,80)

scene.SetRTC(geom.Mat4(0.656168,-0.753826,-0.0341944,29.688,0.471087,0.444621,-0.761822,19.9405,0.589488,0.483781,0.646863,73.0075,-1.51607,3.36172,-100,1))

scene.ExportPov("test")