compute an error estimate of bezier3d approximation
stop outputting scale in ps.cpp
move sqr function