Re: [PyMOL] Showing periodic images

2007-04-21 Thread Tsjerk Wassenaar
Dear Felix, One of the easiest ways to determine whether a point is inside a triclinic box is by matrix multiplying the coordinates with the inverse of the box matrix. Then, every point which has coordinates within [0,1] will be inside the box. Furthermore, every point can be mapped to the tricli

Re: [PyMOL] Showing periodic images

2007-04-19 Thread Tsjerk Wassenaar
Hi Gianluca, Unfortunately, Pymol offers no such functionality intrinsically. But this is where python comes in handy. Attached you find a script I wrote for the purpose. It allows you to shift objects or selections over the periodic lattice: run lattice.py create ObjectCopy,MyObject shift 1,0,0