From: Bryn F. <fe...@sc...> - 2013-08-19 22:59:42
|
Hi All, I am trying to ray trace an empty cone. I can find no way to get an image of the inside of the cone. Does anyone have a work around. Example attached. run test.py cone ray when the ray command is issued the cone disappears from view. robert # # test.py # from pymol import cmd from pymol.cgo import * def cone(name='cone'): o = [] o.extend( [ CONE, 0.0, 0.0, 0.0, # XYZ 1 0.0, 0.0, 1.5, # XYZ 2 0.0, # Radius 1 0.3, # Radius 2 1.0, 0.0, 0.0, # RGB Color 1 0.0, 0.0, 1.0, # RGB Color 2 0.0, 0.0, # Caps 1 & 2 ] ) cmd.load_cgo(o, name) cmd.extend('cone', cone) -- R. Bryn Fenwick, Structural and Computational Biology, The Scripps Research Institute, 10550 North Torrey Pines Rd., La Jolla, CA 92037, USA. fe...@sc... |
From: Thomas H. <tho...@sc...> - 2013-08-21 08:50:54
|
Hi Robert, this looks like a bug, none of the closed CGOs is rendered on the inside, even with two_sided_lighting=on. I filed a bug report: https://sourceforge.net/p/pymol/bugs/134/ Cheers, Thomas Bryn Fenwick wrote, On 08/20/13 00:42: > > Hi All, > > I am trying to ray trace an empty cone. I can find no way to get an image of the inside of the cone. Does anyone have a work around. Example attached. > > run test.py > cone > ray > > when the ray command is issued the cone disappears from view. > > robert > > > # > # test.py > # > > > from pymol import cmd > from pymol.cgo import * > > > def cone(name='cone'): > > o = [] > > o.extend( [ CONE, > 0.0, 0.0, 0.0, # XYZ 1 > 0.0, 0.0, 1.5, # XYZ 2 > 0.0, # Radius 1 > 0.3, # Radius 2 > 1.0, 0.0, 0.0, # RGB Color 1 > 0.0, 0.0, 1.0, # RGB Color 2 > 0.0, 0.0, # Caps 1 & 2 > ] ) > > > cmd.load_cgo(o, name) > > cmd.extend('cone', cone) -- Thomas Holder PyMOL Developer Schrödinger Contractor |