118 #define CGAL_HIERARCHY 155 const Time& runTime_;
180 label startOfInternalPoints_;
183 label startOfSurfacePointPairs_;
189 label startOfBoundaryConformPointPairs_;
192 std::list<Vb> featurePoints_;
195 static const label maxNvert = 20;
196 mutable point2D vertices[maxNvert+1];
202 inline label insertPoint
209 inline label insertPoint
216 inline label insertPoint
223 inline bool insertMirrorPoint
231 inline void insertPointPair
233 const scalar mirrorDist,
239 void insertBoundingBox();
245 void insertFeaturePoints();
248 void reinsertFeaturePoints();
253 void insertPointPairs
264 bool dualCellSurfaceIntersection
266 const Triangulation::Finite_vertices_iterator& vit
273 void insertSurfaceNearestPointPairs();
278 void insertSurfaceNearPointPairs();
284 Triangulation::Finite_vertices_iterator& vit,
287 const label hitSurface
292 bool insertPointPairAtIntersection
294 Triangulation::Finite_vertices_iterator& vit,
297 const scalar maxProtSize
302 label insertBoundaryConformPointPairs(
const fileName& fName);
304 void markNearBoundaryPoints();
307 void fast_restore_Delaunay(Vertex_handle vh);
310 void external_flip(Face_handle&
f,
int i);
311 bool internal_flip(Face_handle& f,
int i);
357 inline point2DFromPoint
toPoint2D(
const Point&)
const;
359 inline point
toPoint3D(
const Point&)
const;
370 const scalar nearness
400 inline void movePoint(
const Vertex_handle& vh,
const Point& P);
void operator=(const CV2D &)=delete
Disallow default bitwise assignment.
CGAL::Delaunay_triangulation_3< K, Tds, CompactLocator > Delaunay
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
void writePatch(const fileName &fName) const
Write patch.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
A list of keyword definitions, which are a keyword followed by any number of values (e...
void insertSurfacePointPairs()
Insert all surface point-pairs from.
point toPoint3D(const point2D &) const
bool outsideTriangle(const CV2D::Face_handle fc)
const cv2DControls & meshControls() const
void newPoints()
Move the internal points to the given new locations and update.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const point2D & toPoint2D(const point &) const
void insertGrid()
Create the initial mesh as a regular grid of points.
void writeFaces(const fileName &fName, bool internalOnly) const
Write dual faces as .obj file.
PointFromPoint2D toPoint(const point2D &) const
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects...
Pre-declare SubField and related Field type.
A class for handling words, derived from string.
wordList patchNames(nPatches)
Container for searchableSurfaces.
const point2D & point2DFromPoint
void calcDual(point2DField &dualPoints, faceList &dualFaces, wordList &patchNames, labelList &patchSizes, EdgeMap< label > &mapEdgesRegion, EdgeMap< label > &indirectPatchEdge) const
Calculates dual points (circumcentres of tets) and faces.
void insertPoints(const point2DField &points, const scalar nearness)
Create the initial mesh from the given internal points.
Controls for the 2D CV mesh generator.
void extractPatches(wordList &patchNames, labelList &patchSizes, EdgeMap< label > &mapEdgesRegion, EdgeMap< label > &indirectPatchEdge) const
Extract patch names and sizes.
void writeTriangles(const fileName &fName, bool internalOnly) const
Write triangles as .obj file.
ClassName("CV2D")
Runtime type information.
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
void movePoint(const Vertex_handle &vh, const Point &P)
Conformal-Voronoi 2D automatic mesher with grid or read initial points and point position relaxation ...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
bool boundaryTriangle(const CV2D::Face_handle fc)
CGAL data structures used for 2D Delaunay meshing.
CV2D(const Time &runTime, const dictionary &controlDict)
Construct for given surface.
const Point & PointFromPoint2D
void removeSurfacePointPairs()
Remove the point-pairs introduced by insertSurfacePointPairs.
void boundaryConform()
Insert point-pairs where there are protrusions into.
void writePoints(const fileName &fName, bool internalOnly) const
Write internal points to .obj file.