Thanks Bob, I'm pleased that my reading of the commands was far out. I tried switching to an updated based on the changes you suggested version c.f. var script = "load ./inorganicmodels/" + model + "; select *; connect 2.7 (oxygen) ; connect 3.0 (fluorine) ; connect 2.9 (bromine); connect 3.0 (iodine); connect 3.3 (sulfur or selenium) ; connect 2.9 (sodium) (chlorine); connect 3.8 (caesium) (chlorine); polyhedra bonds; select *; polyhedra frontedges; select silicon; colour blue; select *;connect; wireframe on; select *"; But I think my 10.0.48 doesn't like it and you link to you code version is broken I think. In fact the link on the JMOL home site to your work In my current version of commands before reading your message I adopted the Delete commands to remove unwanted overlapping polyhedra. var script = "load ./inorganicmodels/" + model + "; select *; connect DELETE; select *; connect 1.0 2.7 (oxygen); connect 1.0 3.3 (sulphur); connect 1.0 2.8 (nitrogen); connect 1.0 3.3 (hydrogen); connect 1.0 3.3 (selenium); connect 1.0 3.3 (carbon); connect 1.0 3.3 (arsenic); connect 1.0 3.0 (fluorine); select sodium; connect 1.0 2.9 (chlorine); select caesium; connect 1.0 3.8 (chlorine); connect 1.0 2.9 (bromine); connect 1.0 3.6 (iodine); select *; polyhedra bonds; polyhedra frontedges; select sodium; polyhedra DELETE; select calcium; polyhedra DELETE; select silicon; colour blue; select *;connect; wireframe on; select *"; I like the select box idea but don't know how to implement it with the load command, is there an example somewhere. I also really like the idea of the polyhedra bonds number specification, so that would be really useful for a case by case code but the code I want is generic for a large number of structures which would include 4 and 6 structures. Having 8 for a polyhedra as an option would be nice too. The classic CsCl structure. Though in my example code, I cannot even Cs Cl get to have a wireframe structure even though I've set "select caesium; connect 1.0 3.8 (chlorine);" In my examples I don't know why, LiCl and KCl are not displaying at least a wireframe whereas AgCl is. Overall, I'm really pleased the way the polyhedra works and look forward to progress here. The collection if you are wondering is for the latest Shriver and Atkins "Inorganic Chemistry" v4 website. This has 1700 JMOL structures to illustrate the book, available online really soon. Regards, Karl
|
- [Jmol-users] Re: Re: Polyhedra connections Karl Harrison
- [Jmol-users] Re: Polyhedra connections Karl Harrison
- Re: [Jmol-users] Re: Re: Polyhedra connections Bob Hanson
- Re: [Jmol-users] Re: Re: Polyhedra connections Bob Hanson
- [Jmol-users] Re: Polyhedra connections Hens Borkent

