Move edge2pts from Base module to Shape class as singleton method.