/usr/share/dx/samples/scripts/Glyph 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 16 17 18 19 20 21 | // Import the electron density field
electrondensity = Import("watermolecule");
// Partition the data for parallelism
electrondensity = Partition(electrondensity);
// create approximately 200 samples of the field
mapped = Sample(electrondensity,200);
// Color the samples based on the data values
mapped = AutoColor(mapped);
// create a camera
camera = AutoCamera(mapped,"off-diagonal", resolution = 300, aspect = 1);
// Use glyph to create sphere glyphs. The size of each glyph, in user units,
// will be equal to 0.5 times the data value.
glyphs = Glyph(mapped, scale = 0.5);
// Display the glyphs using the camera
Display(glyphs,camera);
|