File: saveview.cmd

package info (click to toggle)
evolver 2.70+ds-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 17,148 kB
  • sloc: ansic: 127,395; makefile: 209; sh: 98
file content (33 lines) | stat: -rw-r--r-- 1,346 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// saveview.cmd

// Evolver command for saving current view matrix in proper form
//   for reading in.
// Typical usage: saveview >>> "viewfile.cmd"
// Then to restore view: read "viewfile.cmd"

// Programmer: Ken Brakke, brakke@susqu.edu, http://www.susqu.edu/brakke

saveview := {
  printf "oldautodisplay := (autodisplay);\n";
  printf "autodisplay off\n";
  printf "view_matrix[1][1] := %f\n",view_matrix[1][1];
  printf "view_matrix[1][2] := %f\n",view_matrix[1][2];
  printf "view_matrix[1][3] := %f\n",view_matrix[1][3];
  printf "view_matrix[1][4] := %f\n",view_matrix[1][4];
  printf "view_matrix[2][1] := %f\n",view_matrix[2][1];
  printf "view_matrix[2][2] := %f\n",view_matrix[2][2];
  printf "view_matrix[2][3] := %f\n",view_matrix[2][3];
  printf "view_matrix[2][4] := %f\n",view_matrix[2][4];
  printf "view_matrix[3][1] := %f\n",view_matrix[3][1];
  printf "view_matrix[3][2] := %f\n",view_matrix[3][2];
  printf "view_matrix[3][3] := %f\n",view_matrix[3][3];
  printf "view_matrix[3][4] := %f\n",view_matrix[3][4];
  printf "view_matrix[4][1] := %f\n",view_matrix[4][1];
  printf "view_matrix[4][2] := %f\n",view_matrix[4][2];
  printf "view_matrix[4][3] := %f\n",view_matrix[4][3];
  printf "view_matrix[4][4] := %f\n",view_matrix[4][4];
  printf "if oldautodisplay then autodisplay on\n";
}