recity the trimesh to meet some function