Openmesh library錯誤之 operator OpenMesh::EdgeHandle': Implicit casts of iterators are unsafe. Use dereferencing operators -> and * instead.
最近在把舊project移至新框架,產生了一系列的問題,接下來我會一一把遇到的問題做個記錄,以利之後遇到同樣問題可以快速解決,希望也能幫助到大家
這個問題的錯誤描述如下:
'OpenMesh::Iterators::GenericIteratorT<OpenMesh::PolyConnectivity::This,OpenMesh::ArrayKernel::EdgeHandle,OpenMesh::ArrayKernel,{&OpenMesh::ArrayKernel::has_edge_status,0},{&OpenMesh::ArrayKernel::[thunk]: __thiscall OpenMesh::ArrayKernel::`vcall'{12,{flat}}' }',0}>::operator OpenMesh::EdgeHandle': Implicit casts of iterators are unsafe. Use dereferencing operators -> and * instead.
它發生在以下的情況中,裡面的符號使用是→,(左)這邊為原始程式→(右)遇此錯誤修改後的程式:
- 以下程式為用以檢查邊界
- 以下程式為用以從半邊取得點
- 以下程式為用以為遍歷點時取得點
留言
張貼留言