/usr/share/doc/epix/examples/cube.flx is in epix 1.2.18-1.
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 | /* -*-ePiX-*- */
#include "epix.h"
using namespace ePiX;
int main(int argc, char* argv[])
{
if (argc == 3)
{
char* arg;
double temp1, temp2;
temp1=strtod(argv[1], &arg);
temp2=strtod(argv[2], &arg);
tix()=temp1/temp2;
}
picture(P(-4,-4), P(4,4), "5 x 5in");
begin();
revolutions();
grid(1,1);
P ctr(3.25,-3.25); // "clock" center
bold();
ellipse(ctr, P(0.5,0.5)); // clock face
line(ctr, ctr+polar(0.4,tix())); // hands
label_angle(tix()-0.25);
label(ctr+polar(0.6,tix()), "$\\theta$");
// a cube :)
domain R(P(-2,-2,-2), P(2,2,2), mesh(1,1,1));
camera.at(sph(10,tix(),-0.05));
plain(Cyan());
plot(xyz, R); // draw cube; xyz = Cartesian pt constructor
camera.at(sph(10,0.01 + tix(),-0.05)); // 3.6 degrees away
red(1.4); // slightly lightened red
plot(xyz, R);
end();
}
|