First stuff on ruled grid generation done