copy drawbox... code from blender interface
add corresponding unit test