1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
slib_lang_exists_tmp=yes
slib_title=Format off to xyz
slib_parms=3\
,file at format off\
[_SS,_AA,_FF],button on sommets, edges, faces\
[blue,red,yellow],color in the order sommets, edges, faces
slib_out=translate format "off" in "xyz" extended (as in LatticeViewer)
slib_comment=small buttons may be added to represent the sommets, edges and faces.
An example of utilisation in oef :
<pre><br/>\text{jmol_poly=wims(record 0 of data/polyedre_off/cube.off)}\
<br/>\text{jmol_poly=slib(geo3D/off2jmol \jmol_poly,[_AA,,_BB],[brown,,blue])}\
<br/>\text{jmol_file=\jmol_poly[2]}\
<br/>\text{jmol_script=\jmol_poly[1]}\
<br/>\text{jmol_script=wims(declosing \jmol_script)}\
<br/>\text{filescript=slib(oef/newfile spt,jmol_file)}\
<br/>\text{jmol_applet=slib(chemistry/jmolshow \jmol_file,400,400,white,\jmol_script)}</pre>
|