0
- remove_face方法是否更改網格索引?
我得到一個分段錯誤與此代碼:CGAL表面網格 - 去除表面
auto face_iterator = m.faces_around_target(m.halfedge(v3));
for (auto i=face_iterator.begin(); i!=face_iterator.end(); i++) {
m.remove_face(*i);
}
根據我的文檔的理解,只要我不叫collect_garbage的臉都是唯一標記爲刪除。因此指數沒有變化。發生什麼事?
- 做remove_face,也刪除臉halfedges \使它們指向null_face?它似乎並沒有這樣做,我不明白爲什麼不..
謝謝。
謝謝! CGAL :: Euler正是我所需要的。結束了使用CGAL :: Euler :: remove_center_vertex(),它完美的工作! – AmirB