Update BlockGenerator

can handle any convex polygon.