/usr/share/dx/samples/scripts/Rotate is in dxsamples 4.2.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | // import the electron density field
electrondensity = Import("watermolecule");
// partition the data for parallelism
electrondensity = Partition(electrondensity);
// Create an isosurface at value 0.3
isosurface = Isosurface(electrondensity,0.3);
// Create a camera
camera = AutoCamera(electrondensity);
// Display the isosurface using the camera
Display(isosurface,camera);
// Rotate the isosurface about the y axis by 45 degrees and display
rotated = Rotate(isosurface,"y",45);
Display(rotated,camera);
// Rotate the isosurface about the x axis by 45 degrees and then about the
// z axis by 30 degrees and display
rotated = Rotate(isosurface,"x",45, "z", 30);
Display(rotated,camera);
|