fix: mesh shape related memory leak and rebuild constraints after refracture