switch to unique_ptr for mesh points