add chamfer function for ortho objects and fix rough testing problem