From 25d81b1f71c8716bb1b878a170ef20c5383f18b7 Mon Sep 17 00:00:00 2001 From: laurence Date: Mon, 2 Sep 2013 15:29:54 +0100 Subject: [PATCH] ENH: foamyHexMesh: add hasBoundaryPoint() to indexedCell --- .../conformalVoronoiMesh/indexedCell/indexedCell.H | 1 + .../conformalVoronoiMesh/indexedCell/indexedCellI.H | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H b/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H index 7a95b036a9..82bbe43b95 100644 --- a/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H +++ b/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCell.H @@ -183,6 +183,7 @@ public: inline bool hasSeedPoint() const; inline bool hasInternalPoint() const; + inline bool hasBoundaryPoint() const; inline bool hasConstrainedPoint() const; diff --git a/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellI.H b/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellI.H index 8e035dbc7b..2f5d076138 100644 --- a/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellI.H +++ b/applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/indexedCell/indexedCellI.H @@ -228,6 +228,19 @@ inline bool CGAL::indexedCell::hasInternalPoint() const } +template +inline bool CGAL::indexedCell::hasBoundaryPoint() const +{ + return + ( + this->vertex(0)->boundaryPoint() + || this->vertex(1)->boundaryPoint() + || this->vertex(2)->boundaryPoint() + || this->vertex(3)->boundaryPoint() + ); +} + + template inline bool CGAL::indexedCell::hasConstrainedPoint() const {