Commit e1f86ab7 authored by Mike Kremer's avatar Mike Kremer
Browse files

Fixed behaviour of HalfFaceVertexIter

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@166 66977474-1d4b-4f09-8fe9-267525286df2
parent 66276d08
......@@ -423,12 +423,16 @@ HalfFaceVertexIter::HalfFaceVertexIter(const HalfFaceHandle& _ref_h,
const TopologyKernel* _mesh) :
BaseIter(_mesh, _ref_h) {
if(!_ref_h.is_valid()) return;
std::vector<HalfEdgeHandle> hes = _mesh->halfface(_ref_h).halfedges();
for(std::vector<HalfEdgeHandle>::const_iterator he_it = hes.begin();
he_it != hes.end(); ++he_it) {
vertices_.push_back(_mesh->halfedge(*he_it).from_vertex());
}
iter_ = vertices_.begin();
BaseIter::valid(iter_ != vertices_.end());
if(BaseIter::valid()) {
BaseIter::cur_handle(*iter_);
......
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