This little script takes 7 inputs - the name of the input dataset, an initial point in xyz RAI coordinates, and an ending point also in xyz RAI coordinates. You should get a line between the points at the grid of the input dataset. There may be only one voxel in any particular image slice. If you want a sphere down at each voxel instead of single voxel, use the -srad option for a default radius. Alternatively, add a fourth and fifth column to the text file with a value and a radius, meaning put a sphere down of radius and specified value.
x y z val radius
If you reduce the step size (and take more steps), then you will get something like a cylinder with rounded ends.
Edited 1 time(s). Last edit at 03/18/2019 04:17PM by Daniel Glen.