begin precomputing tool shape