/usr/lib/open-axiom/input/ribbons.input is in open-axiom-test 1.4.1+svn~2626-2ubuntu2.
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 | --Copyright The Numerical Algorithms Group Limited 1994.
--the second attempt
drawRibbons(flist, xrange, yrange) ==
sp := createThreeSpace()
num := # flist
yVar := variable yrange
y0:Float := lo segment yrange
width:Float := (hi segment yrange - y0)/num
for f in flist for color in 1..num repeat
makeObject(f, xrange, yVar = y0..y0+width,
var2Steps == 1, colorFunction == (x,y) +-> color,
space ==sp)
y0:= y0 + width
vp := makeViewport3D(sp, "Ribbons")
drawStyle(vp, "shade")
outlineRender(vp, "on")
showRegion(vp, "on")
vp
|