31 inline Foam::label Foam::CV2D::insertPoint
37 unsigned int nVert = number_of_vertices();
43 inline Foam::label Foam::CV2D::insertPoint
54 inline Foam::label Foam::CV2D::insertPoint
61 unsigned int nVert = number_of_vertices();
65 if (nVert == number_of_vertices())
68 <<
"Failed to insert point " << toPoint2D(
p) <<
endl;
80 inline bool Foam::CV2D::insertMirrorPoint
86 point2D mirrorPoint(2*surfPt - nearSurfPt);
88 if (qSurf_.outside(toPoint3D(mirrorPoint)))
98 inline void Foam::CV2D::insertPointPair
107 label master = insertPoint
110 number_of_vertices() + 1
113 insertPoint(surfPt + ppDistn, master);
127 return reinterpret_cast<const point2D&
>(
p);
136 temp[pointi] =
point2D(
p[pointi].
x(),
p[pointi].
y());
152 return reinterpret_cast<point2DFromPoint
>(P);
165 return point2D(CGAL::to_double(P.x()), CGAL::to_double(P.y()));
179 return Foam::point(CGAL::to_double(P.x()), CGAL::to_double(P.y()), z_);
190 Vertex_handle newVh =
insert(P);
void size(const label n)
Older name for setAddressableSize.
vector2D point2D
Point2D is a vector.
srcOptions insert("case", fileName(rootDirSource/caseDirSource))
Vector2D< scalar > vector2D
A 2D vector of scalars obtained from the generic Vector2D.
const point2D & toPoint2D(const Foam::point &) const
Ostream & endl(Ostream &os)
Add newline and flush stream.
Foam::point toPoint3D(const point2D &) const
bool outsideTriangle(const CV2D::Face_handle fc)
const cv2DControls & meshControls() const
#define forAll(list, i)
Loop across all elements in list.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
PointFromPoint2D toPoint(const point2D &) const
Generic templated field type.
PointFrompoint toPoint(const Foam::point &p)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
Controls for the 2D CV mesh generator.
vector point
Point is a vector.
#define WarningInFunction
Report a warning using Foam::Warning.
void movePoint(const Vertex_handle &vh, const Point &P)
bool boundaryTriangle(const CV2D::Face_handle fc)
const Point & PointFromPoint2D