Commit e7ae96b6 authored by Mike Kremer's avatar Mike Kremer

Fixed bug in HalfEdgeCellIter

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@265 66977474-1d4b-4f09-8fe9-267525286df2
parent ed1bc0c3
......@@ -371,6 +371,7 @@ CellHandle HalfEdgeCellIter::getCellHandle(int _cur_index) const
{
const std::vector<HalfFaceHandle>& halffacehandles = BaseIter::mesh()->incident_hfs_per_he_[BaseIter::ref_handle().idx()];
HalfFaceHandle currentHalfface = halffacehandles[_cur_index];
if(!currentHalfface.is_valid()) return CellHandle(-1);
CellHandle cellhandle = BaseIter::mesh()->incident_cell_per_hf_[currentHalfface.idx()];
return cellhandle;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment