coverity: check dimension before creating mesh
coverity: check dimension before creating mesh

YetAnotherMinion/core,yangf4/core,yangf4/core,YetAnotherMinion/core,yangf4/core,yangf4/core,YetAnotherMinion/core,yangf4/core,YetAnotherMinion/core,YetAnotherMinion/core