added generate mesh class