/usr/share/axiom-20170501/input/bouquet.input is in axiom-test 20170501-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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | )set break resume
)spool bouquet.output
)set message test on
)set message auto off
)clear all
--S 1 of 4
arrowScale := 0.2@DFLOAT
--R
--R
--R (1) 0.2
--R Type: DoubleFloat
--E 1
--S 2 of 4
arrowAngle := %pi-%pi/10.0@DFLOAT
--R
--R
--R (2) 2.827433388230814
--R Type: DoubleFloat
--E 2
--S 3 of 4
makeArrow(p1, p2) ==
delta := p2 - p1
len := arrowScale * length delta
theta := atan(delta.1, delta.2)
c1 := len * cos(theta + arrowAngle)
s1 := len * sin(theta + arrowAngle)
c2 := len * cos(theta - arrowAngle)
s2 := len * sin(theta - arrowAngle)
z := p2.3*(1 - arrowScale)
p3 := point [p2.1 + c1, p2.2 + s1, z, p2.4]
p4 := point [p2.1 + c2, p2.2 + s2, z, p2.4]
[[p1, p2, p3], [p2, p4]]
--R
--R Type: Void
--E 3
--S 4 of 4
drawBouquet(n,title) ==
angle := 0.0@DFLOAT
sp := create3Space()$ThreeSpace(DFLOAT)
for i in 0..n-1 repeat
start := point [0.0@DFLOAT,0.0@DFLOAT,0.0@DFLOAT,angle]
end := point [cos angle, sin angle, 1.0@DFLOAT, angle]
arrow := makeArrow(start, end)
for a in arrow repeat curve(sp,a)
angle := angle + 2*%pi/n
makeViewport3D(sp,title)$VIEW3D
--R
--R Type: Void
--E 4
)spool
)lisp (bye)
|