c++ mesh