Illustrates the use of BoundingBoxFromEntity().
8 sdh=io.LoadPDB(
'data/sdh.pdb')
10 helix=sdh.Select(
'rnum=99:128 and cname=A and aname=CA,C,N,O')
13 go=gfx.Entity(
'helix', gfx.SIMPLE, helix)
18 bbox=mol.BoundingBoxFromEntity(helix)
21 bb=gfx.Cuboid(
'xxx', bbox)
22 bb.SetFillColor(gfx.Color(0.5, 0.8, 0.5, 0.2))
26 scene.center=go.center