Reboot of the attempt to port Three.cpp