Making a cylindrical mask instead of sphere

If anyone is interested, here is a cone: