/usr/share/dx/samples/scripts/Display 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 24 25 26 27 28 29 30 31 32 33 34 35 | // Import the data
electrondensity = Import("watermolecule");
// Partition the data for parallelism
electrondensity = Partition(electrondensity);
// Create an isosurface at the value 0.3
isosurface = Isosurface(electrondensity,0.3);
// Create a camera
camera = AutoCamera(isosurface,"off-diagonal",resolution = 300, aspect = 1);
// In this example, we create an image using the Render module. We could then
// filter or compute on the image, for example, before displaying it using
// the Display module.
image = Render(isosurface,camera);
Display(image);
// In this example, we render and display in one step using the Display
// module. In this case, the image is not available for processing.
Display(isosurface,camera);
// In this example, we render two views of the object and display them
// in two separate windows using the "where" parameter.
camera1 = AutoCamera(isosurface,"front", resolution=300);
camera2 = AutoCamera(isosurface,"top", resolution=300);
image1 = Render(isosurface,camera1);
image2 = Render(isosurface,camera2);
//The host on which the images will be displayed is that to which the
//DISPLAY environment variable is set, since the host name is left out
//of the where parameter
Display(image1,where="X,,view from front");
Display(image2,where="X,,view from top");
|