mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: resolve 'point' ambiguity in foamyQuadMesh
- CGAL Triangulation_2.h (version 4.12) defines a point function, which interferes with the Foam::point typedef.
This commit is contained in:
committed by
Mark Olesen
parent
d571e5231b
commit
8058184b0c
@ -150,7 +150,7 @@ Foam::CV2D::CV2D
|
||||
),
|
||||
z_
|
||||
(
|
||||
point
|
||||
Foam::point
|
||||
(
|
||||
cvMeshDict.subDict("surfaceConformation").lookup("locationInMesh")
|
||||
).z()
|
||||
@ -260,7 +260,7 @@ void Foam::CV2D::insertGrid()
|
||||
{
|
||||
for (int j=0; j<nj; j++)
|
||||
{
|
||||
point p(x0 + i*deltax, y0 + j*deltay, 0);
|
||||
Foam::point p(x0 + i*deltax, y0 + j*deltay, 0);
|
||||
|
||||
if (meshControls().randomiseInitialGrid())
|
||||
{
|
||||
|
||||
@ -347,9 +347,9 @@ public:
|
||||
|
||||
// Conversion functions between point2D, point and Point
|
||||
|
||||
inline const point2D& toPoint2D(const point&) const;
|
||||
inline const point2D& toPoint2D(const Foam::point&) const;
|
||||
inline const point2DField toPoint2D(const pointField&) const;
|
||||
inline point toPoint3D(const point2D&) const;
|
||||
inline Foam::point toPoint3D(const point2D&) const;
|
||||
|
||||
#ifdef CGAL_INEXACT
|
||||
typedef const point2D& point2DFromPoint;
|
||||
@ -361,7 +361,7 @@ public:
|
||||
|
||||
inline point2DFromPoint toPoint2D(const Point&) const;
|
||||
inline PointFromPoint2D toPoint(const point2D&) const;
|
||||
inline point toPoint3D(const Point&) const;
|
||||
inline Foam::point toPoint3D(const Point&) const;
|
||||
|
||||
|
||||
// Point insertion
|
||||
|
||||
@ -121,7 +121,7 @@ inline const Foam::cv2DControls& Foam::CV2D::meshControls() const
|
||||
}
|
||||
|
||||
|
||||
inline const Foam::point2D& Foam::CV2D::toPoint2D(const point& p) const
|
||||
inline const Foam::point2D& Foam::CV2D::toPoint2D(const Foam::point& p) const
|
||||
{
|
||||
return reinterpret_cast<const point2D&>(p);
|
||||
}
|
||||
@ -140,7 +140,7 @@ inline const Foam::point2DField Foam::CV2D::toPoint2D(const pointField& p) const
|
||||
|
||||
inline Foam::point Foam::CV2D::toPoint3D(const point2D& p) const
|
||||
{
|
||||
return point(p.x(), p.y(), z_);
|
||||
return Foam::point(p.x(), p.y(), z_);
|
||||
}
|
||||
|
||||
|
||||
@ -175,7 +175,7 @@ inline Foam::CV2D::PointFromPoint2D Foam::CV2D::toPoint(const point2D& p) const
|
||||
|
||||
inline Foam::point Foam::CV2D::toPoint3D(const Point& P) const
|
||||
{
|
||||
return point(CGAL::to_double(P.x()), CGAL::to_double(P.y()), z_);
|
||||
return Foam::point(CGAL::to_double(P.x()), CGAL::to_double(P.y()), z_);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -210,8 +210,8 @@ void Foam::CV2D::extractPatches
|
||||
|| (vB->internalOrBoundaryPoint() && !vA->internalOrBoundaryPoint())
|
||||
)
|
||||
{
|
||||
point ptA = toPoint3D(vA->point());
|
||||
point ptB = toPoint3D(vB->point());
|
||||
Foam::point ptA = toPoint3D(vA->point());
|
||||
Foam::point ptB = toPoint3D(vB->point());
|
||||
|
||||
label patchIndex = qSurf_.findPatch(ptA, ptB);
|
||||
|
||||
|
||||
@ -295,7 +295,7 @@ void Foam::CV2D::markNearBoundaryPoints()
|
||||
{
|
||||
if (vit->internalPoint())
|
||||
{
|
||||
point vert(toPoint3D(vit->point()));
|
||||
Foam::point vert(toPoint3D(vit->point()));
|
||||
|
||||
pointIndexHit pHit;
|
||||
label hitSurface = -1;
|
||||
|
||||
@ -109,8 +109,8 @@ void Foam::CV2D::insertFeaturePoints()
|
||||
{
|
||||
const edge& e = feMesh.edges()[edgeI];
|
||||
|
||||
const point& ep0 = points[e.start()];
|
||||
const point& ep1 = points[e.end()];
|
||||
const Foam::point& ep0 = points[e.start()];
|
||||
const Foam::point& ep1 = points[e.end()];
|
||||
|
||||
const linePointRef line(ep0, ep1);
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ bool Foam::CV2D::dualCellSurfaceIntersection
|
||||
{
|
||||
if (!is_infinite(ec))
|
||||
{
|
||||
point e0 = toPoint3D(circumcenter(ec->first));
|
||||
Foam::point e0 = toPoint3D(circumcenter(ec->first));
|
||||
|
||||
// If edge end is outside bounding box then edge cuts boundary
|
||||
if (!qSurf_.globalBounds().contains(e0))
|
||||
@ -47,7 +47,8 @@ bool Foam::CV2D::dualCellSurfaceIntersection
|
||||
return true;
|
||||
}
|
||||
|
||||
point e1 = toPoint3D(circumcenter(ec->first->neighbor(ec->second)));
|
||||
Foam::point e1 =
|
||||
toPoint3D(circumcenter(ec->first->neighbor(ec->second)));
|
||||
|
||||
// If other edge end is outside bounding box then edge cuts boundary
|
||||
if (!qSurf_.globalBounds().contains(e1))
|
||||
|
||||
Reference in New Issue
Block a user