/*
this -not really- advanced script implements
the realtime csg between a sphere and a ... cube!
*/

scene clip(1,8000);
scene fov(60);
scene position(0,0,-500);
scene rotation(0,0,0);
scene speed(1,1);

//the cube ....
CUBE = load("cube1");
object CUBE position(-60,0,0);
object CUBE active(1);

//the sphere ...
BALL = load("m_planet");
object BALL scale(2.0);
object BALL position(+60,0,-60);
object BALL active(1);

myCSG = new cCSG(CUBE,BALL);
csg myCSG opmode(0);
csg myCSG object2(BALL);
csg myCSG object1(CUBE);
csg myCSG active(1);

scene focus(CUBE);
scene keybd(1);
scene start;
