ensure the constructor parameters

mesh can't be assigned implicitly