Commit 0c060762 authored by Mike Kremer's avatar Mike Kremer

Fixed some minor issues.

git-svn-id: http://www.openvolumemesh.org/svnrepo/OpenVolumeMesh/trunk@196 66977474-1d4b-4f09-8fe9-267525286df2
parent 51a7ff1e
...@@ -95,6 +95,10 @@ public: ...@@ -95,6 +95,10 @@ public:
return cur_handle_; return cur_handle_;
} }
bool operator< (const BaseIterator& _c) const {
return cur_handle_.idx() < _c.cur_handle_.idx();
}
BaseIterator& operator=(const BaseIterator& _c) { BaseIterator& operator=(const BaseIterator& _c) {
this->valid_ = _c.valid(); this->valid_ = _c.valid();
this->cur_handle_ = _c.cur_handle(); this->cur_handle_ = _c.cur_handle();
......
...@@ -903,8 +903,8 @@ CellIter TopologyKernel::delete_cell_range(const CellIter& _first, const CellIte ...@@ -903,8 +903,8 @@ CellIter TopologyKernel::delete_cell_range(const CellIter& _first, const CellIte
std::vector<Cell>::iterator it = cells_.erase(cells_.begin() + _first->idx(), cells_.begin() + _last->idx()); std::vector<Cell>::iterator it = cells_.erase(cells_.begin() + _first->idx(), cells_.begin() + _last->idx());
// Re-compute face bottom-up adjacencies if necessary // Re-compute face bottom-up adjacencies if necessary
if(v_bottom_up_) { if(f_bottom_up_) {
v_bottom_up_ = false; f_bottom_up_ = false;
enable_face_bottom_up_adjacencies(true); enable_face_bottom_up_adjacencies(true);
} }
......
...@@ -168,7 +168,7 @@ public: ...@@ -168,7 +168,7 @@ public:
// ======================= Connectivity functions ============================= // ======================= Connectivity functions =============================
inline HalfFaceHandle opposite_halfface_handle_in_cell(const HalfFaceHandle& _hfh, const CellHandle& _ch) { inline HalfFaceHandle opposite_halfface_handle_in_cell(const HalfFaceHandle& _hfh, const CellHandle& _ch) const {
assert((unsigned int)_ch.idx() < TopologyKernel::cells_.size()); assert((unsigned int)_ch.idx() < TopologyKernel::cells_.size());
......
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