Commit 39b25c46 authored by Alexander Dielen's avatar Alexander Dielen
Browse files

Added BoundaryCellIter.

parent 33fc6210
Pipeline #6373 passed with stage
in 3 minutes and 28 seconds
......@@ -1215,9 +1215,9 @@ bool BoundaryItemIter<FaceIter, FaceHandle>::has_incidences() const {
return BaseIter::mesh()->has_face_bottom_up_incidences();
}
//template <>
//bool BoundaryItemIter<CellIter, CellHandle>::has_incidences() const {
// return true; // TODO
//}
template <>
bool BoundaryItemIter<CellIter, CellHandle>::has_incidences() const {
return true;
}
} // Namespace OpenVolumeMesh
......@@ -1372,7 +1372,7 @@ typedef BoundaryItemIter<HalfEdgeIter, HalfEdgeHandle> BoundaryHalfEdgeIter;
typedef BoundaryItemIter<EdgeIter, EdgeHandle> BoundaryEdgeIter;
typedef BoundaryItemIter<HalfFaceIter, HalfFaceHandle> BoundaryHalfFaceIter;
typedef BoundaryItemIter<FaceIter, FaceHandle> BoundaryFaceIter;
//typedef BoundaryItemIter<CellIter, CellHandle> BoundaryCellIter;
typedef BoundaryItemIter<CellIter, CellHandle> BoundaryCellIter;
//===========================================================================
......
......@@ -251,9 +251,9 @@ public:
return BoundaryFaceIter(this);
}
// BoundaryCellIter bc_iter() const {
// return BoundaryCellIter(this);
// }
BoundaryCellIter bc_iter() const {
return BoundaryCellIter(this);
}
VertexIter v_iter() const {
return VertexIter(this);
......@@ -891,6 +891,15 @@ public:
return false;
}
bool is_boundary(const CellHandle& _cellHandle) const {
assert(_cellHandle.is_valid() && (size_t)_cellHandle.idx() < n_cells());
for(CellFaceIter cf_it = cf_iter(_cellHandle); cf_it.valid(); ++cf_it) {
if(is_boundary(*cf_it)) return true;
}
return false;
}
size_t n_vertices_in_cell(const CellHandle& _ch) const {
assert(_ch.is_valid() && (size_t)_ch.idx() < 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