From: Alan H. <he...@il...> - 2007-05-21 16:47:49
|
Bob Hanson said: > Then, what I think makes this really cool is that I think he > is recalculating the isosurface with every slide. (That right, Alan?) so > you get the VERY COOL effect of the isosurface slabbing as well. > > Actually, Alan, how ARE you getting that isosurface to slab that way? > What's your isosurface command? That is praise indeed from the master, but in http://icsd.ill.fr/slabslider/ I only extended slightly what other people had already done. The isosurface command is the standard jmol: "isosurface delete resolution 0 sasurface 1.4 fullylit" It is only executed once at the start, but as the cursors are dragged, new "slab plane" and "depth plane" scripts are executed in real time. It is surprisingly fast, but that is thanks to jmol, not me. function slabSlider1() { jmolScript( 'slab plane Z=' + eval(100-(20+dd.elements.thumb1.x-dd.elements.thumb1.defx))/10 ) document.getElementById("posi").innerHTML = 100-(20+dd.elements.thumb1.x-dd.elements.thumb1.defx) } I didn't pay proper attention to the atom sizes as Christian reminds me, and I just used the fastest and most convenient isosurface to hand, since I was concentrating on the slider control, not the details of the display. What I don't have quite right are the limits of the sliders, and for that I still have to work out how to get the Z-limits of the visible structure. Alan. _____________________________________________________________ Dr Alan Hewat, ILL Grenoble, FRANCE <he...@il...>fax+33.476.20.76.48 +33.476.20.72.13 (.26 Mme Guillermet) http://www.ill.fr/dif/people/hewat/ _____________________________________________________________ |