File: off2jmol

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (18 lines) | stat: -rw-r--r-- 818 bytes parent folder | download | duplicates (8)
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>