Go to the documentation of this file.
118 #define CGAL_HIERARCHY
132 #include "triSurface.H"
243 const scalar mirrorDist,
276 const Triangulation::Finite_vertices_iterator& vit
294 Triangulation::Finite_vertices_iterator& vit,
297 const label hitSurface
304 Triangulation::Finite_vertices_iterator& vit,
307 const scalar maxProtSize
377 const scalar nearness
cv2DControls controls_
Meshing controls.
bool insertMirrorPoint(const point2D &nearSurfPt, const point2D &surfPt)
Simple random number generator.
const typedef point2D & point2DFromPoint
void insertSurfacePointPairs()
Insert all surface point-pairs from.
void insertFeaturePoints()
Insert point groups at the feature points.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
void insertPointPair(const scalar mirrorDist, const point2D &surfPt, const vector2D &n)
Insert a point-pair at a distance ppDist either side of.
A class for handling words, derived from string.
A class for handling file names.
point2D vertices[maxNvert+1]
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
label insertBoundaryConformPointPairs(const fileName &fName)
Insert point-pairs corresponding to dual-cells which intersect.
conformationSurfaces qSurf_
bool insertPointPairAtIntersection(Triangulation::Finite_vertices_iterator &vit, const point2D &defVert, const point2D vertices[], const scalar maxProtSize)
Insert point-pair at the best intersection point between the lines.
void writeTriangles(const fileName &fName, bool internalOnly) const
Write triangles as .obj file.
label startOfInternalPoints_
Keep track of the start of the internal points.
CV2D(const CV2D &)
Disallow default bitwise copy construct.
void insertPoints(const point2DField &points, const scalar nearness)
Create the initial mesh from the given internal points.
void operator=(const CV2D &)
Disallow default bitwise assignment.
void insertBoundingBox()
Create the initial mesh from the bounding-box.
void newPoints()
Move the internal points to the given new locations and update.
bool outsideTriangle(const CV2D::Face_handle fc)
std::list< Vb > featurePoints_
Store the feature points.
void insertSurfaceNearestPointPairs()
Insert point-pairs at the nearest points on the surface to the.
void extractPatches(wordList &patchNames, labelList &patchSizes, EdgeMap< label > &mapEdgesRegion, EdgeMap< label > &indirectPatchEdge) const
Extract patch names and sizes.
void insertPointPairs(const DynamicList< point2D > &nearSurfacePoints, const DynamicList< point2D > &surfacePoints, const DynamicList< label > &surfaceTris, const DynamicList< label > &surfaceHits, const fileName fName)
Insert point-pairs at the given set of points using the surface.
bool dualCellSurfaceIntersection(const Triangulation::Finite_vertices_iterator &vit) const
Check to see if dual cell specified by given vertex iterator.
vector2D edges[maxNvert+1]
void writePoints(const fileName &fName, bool internalOnly) const
Write internal points to .obj file.
label startOfSurfacePointPairs_
Keep track of the start of the surface point-pairs.
void insertGrid()
Create the initial mesh as a regular grid of points.
void insertSurfaceNearPointPairs()
Insert point-pairs at small dual-cell edges on the surface in order.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
runTime controlDict().lookup("adjustTimeStep") >> adjustTimeStep
Conformal-Voronoi 2D automatic mesher with grid or read initial points and point position relaxation ...
autoPtr< relaxationModel > relaxationModel_
Relaxation coefficient model. Runtime selectable.
wordList patchNames(nPatches)
const point2D & toPoint2D(const point &) const
A list of keyword definitions, which are a keyword followed by any number of values (e....
bool boundaryTriangle(const CV2D::Face_handle fc)
void removeSurfacePointPairs()
Remove the point-pairs introduced by insertSurfacePointPairs.
PointFromPoint2D toPoint(const point2D &) const
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
void reinsertFeaturePoints()
Re-insert point groups at the feature points.
bool internal_flip(Face_handle &f, int i)
const typedef Point & PointFromPoint2D
ClassName("CV2D")
Runtime type information.
const cv2DControls & meshControls() const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void markNearBoundaryPoints()
void external_flip(Face_handle &f, int i)
Container for searchableSurfaces.
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.
label insertPoint(const point2D &pt, const label type)
Insert point and return it's index.
void writePatch(const fileName &fName) const
Write patch.
point toPoint3D(const point2D &) const
const Time & runTime_
The time registry of the application.
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
void movePoint(const Vertex_handle &vh, const Point &P)
void boundaryConform()
Insert point-pairs where there are protrusions into.
CGAL::Delaunay_triangulation_3< K, Tds, CompactLocator > Delaunay
CGAL data structures used for 2D Delaunay meshing.
Controls for the 2D CV mesh generator.
cellSizeAndAlignmentControls cellSizeControl_
The cell size control object.
label startOfBoundaryConformPointPairs_
Keep track of the boundary conform point-pairs.
bool on2DLine(const point2D &p, const linePointRef &line)
Check if a point is within a line.
void writeFaces(const fileName &fName, bool internalOnly) const
Write dual faces as .obj file.
searchableSurfaces allGeometry_
The surface to mesh.
static const label maxNvert
Temporary storage for a dual-cell.
void fast_restore_Delaunay(Vertex_handle vh)
Restore the Delaunay contraint.