searchingEngine_CGAL.H File Reference

Go to the source code of this file.

Functions

Random rndGen (653213)
 
List< treeBoundBox > meshBb (1, treeBoundBox(coarseMesh.points()).extend(rndGen, 1e-3))
 
dict add ("bounds", meshBb)
 
dict add ("distributionType", distributedTriSurfaceMesh::distributionTypeNames_ [distributedTriSurfaceMesh::FROZEN])
 
dict add ("mergeDistance", SMALL)
 
labelList triSurfaceToAgglom (5 *nFineFaces)
 
distributedTriSurfaceMesh surfacesMesh (IOobject("wallSurface.stl", runTime.constant(), "triSurface", runTime, IOobject::NO_READ, IOobject::NO_WRITE), localSurface, dict)
 
triSurfaceToAgglom resize (surfacesMesh.size())
 
surfacesMesh setField (triSurfaceToAgglom)
 
triangles reserve (surf.size())
 
 for (const auto &f :surf)
 
Tree tree (triangles.begin(), triangles.end())
 

Variables

dictionary dict
 
const triSurface localSurface
 
std::vector< Triangletriangles
 
const pointField & pts = surf.points()
 

Function Documentation

◆ rndGen()

Random rndGen ( 653213  )

◆ meshBb()

List<treeBoundBox> meshBb ( ,
treeBoundBox(coarseMesh.points()).extend(rndGen, 1e-3)   
)

◆ add() [1/3]

dict add ( "bounds"  ,
meshBb   
)

◆ add() [2/3]

dict add ( "distributionType"  ,
distributedTriSurfaceMesh::distributionTypeNames_  [distributedTriSurfaceMesh::FROZEN] 
)

◆ add() [3/3]

dict add ( "mergeDistance"  ,
SMALL   
)

◆ triSurfaceToAgglom()

labelList triSurfaceToAgglom ( 5 *  nFineFaces)

◆ surfacesMesh()

distributedTriSurfaceMesh surfacesMesh ( IOobject("wallSurface.stl", runTime.constant(), "triSurface", runTime, IOobject::NO_READ, IOobject::NO_WRITE)  ,
localSurface  ,
dict   
)

◆ resize()

triSurfaceToAgglom resize ( surfacesMesh.  size())

◆ setField()

◆ reserve()

◆ for()

for ( const auto &f :surf  )

Definition at line 66 of file searchingEngine_CGAL.H.

References Foam::constant::physicoChemical::b, Foam::constant::universal::c, Foam::endl(), f(), pts, and triangles.

Here is the call graph for this function:

◆ tree()

Variable Documentation

◆ dict

dictionary dict

Definition at line 11 of file searchingEngine_CGAL.H.

◆ localSurface

const triSurface localSurface
Initial value:
= triangulate
(
includePatches,
finalAgglom,
globalNumbering,
coarsePatches
)
labelList triSurfaceToAgglom(5 *nFineFaces)
const polyBoundaryMesh & patches

Definition at line 25 of file searchingEngine_CGAL.H.

◆ triangles

std::vector<Triangle> triangles

◆ pts

const pointField& pts = surf.points()

Definition at line 64 of file searchingEngine_CGAL.H.

Referenced by tetIndices::barycentricToPoint(), booleanSurface::booleanSurface(), searchableBox::boundingSpheres(), triSurfaceMesh::boundingSpheres(), face::box(), edge::box(), meshRefinement::calculateEdgeWeights(), edge::centre(), Foam::meshTools::constrainToMeshCentre(), edgeVertex::coord(), searchableBox::coordinates(), triSurfaceMesh::coordinates(), distanceSurface::createGeometry(), cutFaceAdvect::cutPoints(), triSurfaceTools::delaunay2D(), triFace::edge(), face::edge(), extendedFeatureEdgeMesh::extendedFeatureEdgeMesh(), boundBox::faceCentres(), cellVolumeWeightMethod::findInitialSeeds(), for(), triSurfaceMesh::getNormal(), triSurfaceMeshPointSet::getRefPoint(), boundBox::hexCorners(), uniformBin::initialise(), PDRblock::innerMesh(), blockMesh::inplacePointTransforms(), triangleFuncs::intersect(), vectorTensorTransform::invTransformPosition(), isoSurfaceCell::isoSurfaceCell(), isoSurfacePoint::isoSurfacePoint(), triSurfaceMesh::isSurfaceClosed(), edge::line(), face::longestEdge(), edge::mag(), edge::magSqr(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), Patch::mesh(), meshedSurfRef::movePoints(), ZoneMesh< cellZone, polyMesh >::movePoints(), faceZone::movePoints(), triSurface::movePoints(), tetIndices::oldTet(), processorPolyPatch::order(), cuttingPlane::performCut(), vtuAdaptor::points(), triFace::points(), Foam::vtk::Tools::Points(), face::points(), searchablePlate::points(), searchableCylinder::points(), searchableSurfaceCollection::points(), treeBoundBox::points(), searchableCone::points(), singleDirectionUniformBin::processField(), AMIInterpolation::projectPointsToSurface(), triFace::rcEdge(), face::rcEdge(), NASedgeFormat::read(), STARCDedgeFormat::read(), sampledSurface::sampleOnFaces(), sampledSurface::sampleOnPoints(), extendedEdgeMesh::sortPointsAndEdges(), surfaceFeatures::subsetPlane(), reconstructionSchemes::surface(), triSurface::swapPoints(), tetIndices::tet(), tetPoints::tetPoints(), triSurface::transfer(), vectorTensorTransform::transformPosition(), triPoints::triPoints(), edge::unitVec(), edge::vec(), Foam::vtk::Tools::Vertices(), vtkWriter::write(), areaWrite::write(), momentum::write(), box::writeBoxes(), STARCDsurfaceFormatCore::writeCase(), meshToMeshMethod::writeConnectivity(), VTKsurfaceFormatCore::writeHeader(), VTPsurfaceFormatCore::writeHeader(), AABBTreeBase::writeOBJ(), Foam::meshTools::writeOBJ(), indexedOctreeBase::writeOBJ(), triSurfaceTools::writeOBJ(), Foam::writeObjPoints(), X3DsurfaceFormatCore::writePoints(), topOVariablesBase::writeSurfaceFiles(), csvWriter::writeTemplate(), and rawWriter::writeTemplate().