Dear Bob
A few years ago, you helped me to write a script aiming at displaying the facetting of nanoclusters. Unfortunately, it no longer works under the 14.1 versions of jmol and beyond. The line at which the error seems to happen is indicated in the script reported below. Your help would be appreciated, I am unable to understand the origin of this problem and to fix it by myself - if possible
Regards
Romuald

Var atoms = {Ruthenium}
Var n = atoms.length
Var minDistance = 3.3 # perhaps

for (Var i = 1; i <= n; i++) {
  Var a = atoms[i]
  for (Var j = i + 1; j <= n; j++) {
    Var b = atoms[j]
# THE ERROR SEEMS TO BE NEXT LINE, when I check the script, it returns "ERROR: invalid argument" and b.distance(a) is highlighted in red
     if (b.distance(a) < minDistance) {
       for (Var k = j + 1; k <= n; k++) {
         Var c = atoms[k]
         if (c.distance(a) < minDistance && c.distance(b) < minDistance) {
            draw ID @{"d" + i + j + k} @a @b @c
            color $@{"d" + i + j + k} grey translucent 0.2
     }
       }
     }
  }
}

<<attachment: romuald_poteau.vcf>>

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to