/usr/share/dx/samples/scripts/interop 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 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | // Import two fields, a scalar field and a vector field
group = Import("hyper");
scalarfield = Select(group,0);
vectorfield = Select(group,1);
// Create a camera
camera = AutoCamera(scalarfield,"off-left",width=10,resolution=400);
// Create a streamline based on the starting point [3,3,0.1]
streamline = Streamline(vectorfield,[3,3,0.1]);
// Map the scalar data onto the streamline
mappedline = Map(streamline,scalarfield);
// Color the line based on the data values. Set range=1 for one
// complete trip around the color wheel
coloredline = AutoColor(mappedline,range=1);
// Turn the colored line into a tube
tube = Tube(coloredline,diameter=1.5,ngon=15);
// Create an image
image1 = Render(tube,camera);
// This time create a tube directly from the streamline
tube = Tube(streamline,diameter=1.5,ngon=15);
// Map the data onto the tube
mappedtube = Map(tube,scalarfield);
// Color the tube
coloredtube = AutoColor(mappedtube,range=1);
// Create another image
image2 = Render(coloredtube,camera);
// Collect the images together and arrange them one over the other
combined = Collect(image1,image2);
combined = Arrange(combined,1);
// Display
Display(combined);
|