/usr/share/dx/samples/scripts/Partition is in dxsamples 4.4.0-3.
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 | // Import the data
electrondensity = Import("watermolecule");
// Create a camera
camera = AutoCamera(electrondensity,width=4);
// Create an isosurface
isosurface = Isosurface(electrondensity,0.3);
// Display
Display(isosurface,camera);
// Parttion the data into about 10 pieces
electrondensity = Partition(electrondensity,10);
// Create an isosurface
isosurface = Isosurface(electrondensity,0.3);
// Display (it should look the same)
Display(isosurface,camera);
|