A list of faces which address into the list of points. More...
Public Types | |
enum | surfaceTopo { MANIFOLD , OPEN , ILLEGAL } |
Enumeration defining the surface type. Used in check routines. More... | |
typedef FaceList | FaceListType |
typedef std::remove_reference< FaceList >::type::value_type | FaceType |
typedef PointField | PointFieldType |
typedef std::remove_reference< PointField >::type::value_type | PointType |
Public Member Functions | |
PrimitivePatch (const FaceList &faces, const Field< PointType > &points) | |
Construct from components. More... | |
PrimitivePatch (FaceList &&faces, Field< PointType > &&points) | |
Move constructor from components. More... | |
PrimitivePatch (FaceList &faces, Field< PointType > &points, const bool reuse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< FaceList, PointField > &) | |
Copy constructor. More... | |
PrimitivePatch (PrimitivePatch< FaceList, PointField > &&) | |
Move constructor. More... | |
autoPtr< PrimitivePatch< FaceList, PointField > > | clone () const |
Construct and return a clone. More... | |
~PrimitivePatch () | |
Destructor. More... | |
const Field< PointType > & | points () const |
Return reference to global points. More... | |
label | nPoints () const |
Return number of points supporting patch faces. More... | |
label | nEdges () const |
Return number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. More... | |
const labelListList & | faceFaces () const |
Return face-face addressing. More... | |
const labelListList & | edgeFaces () const |
Return edge-face addressing. More... | |
const labelListList & | faceEdges () const |
Return face-edge addressing. More... | |
const labelListList & | pointEdges () const |
Return point-edge addressing. More... | |
const labelListList & | pointFaces () const |
Return point-face addressing. More... | |
const List< FaceType > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. They are constructed. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. More... | |
const Field< PointType > & | localPoints () const |
Return pointField of points in patch. More... | |
const labelList & | localPointOrder () const |
Return orders the local points for most efficient search. More... | |
label | whichPoint (const label gp) const |
Given a global point index, return the local point index. More... | |
label | whichEdge (const edge &) const |
Given an edge in local point labels, return its. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. More... | |
const Field< PointType > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< PointType > & | faceAreas () const |
Return face areas for patch. More... | |
const Field< PointType > & | faceNormals () const |
Return face normals for patch. More... | |
const Field< PointType > & | pointNormals () const |
Return point normals for patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const |
Project vertices of patch onto another patch. More... | |
template<class ToPatch > | |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const |
Project vertices of patch onto another patch. More... | |
const labelListList & | edgeLoops () const |
Return list of closed loops of boundary vertices. More... | |
surfaceTopo | surfaceType () const |
Calculate surface type formed by patch. More... | |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
void | operator= (const PrimitivePatch< FaceList, PointField > &) |
Assignment operator. More... | |
void | operator= (PrimitivePatch< FaceList, PointField > &&) |
Move assignment operator. More... | |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
template<class ToPatch > | |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
A list of faces which address into the list of points.
The class is templated on the face type (e.g. triangle, polygon etc.) and on the list type of faces and points so that it can refer to existing lists using UList and const pointField& or hold the storage using List and pointField.
Definition at line 79 of file PrimitivePatch.H.
typedef FaceList FaceListType |
Definition at line 89 of file PrimitivePatch.H.
typedef std::remove_reference<FaceList>::type::value_type FaceType |
Definition at line 92 of file PrimitivePatch.H.
typedef PointField PointFieldType |
Definition at line 94 of file PrimitivePatch.H.
typedef std::remove_reference<PointField>::type::value_type PointType |
Definition at line 97 of file PrimitivePatch.H.
enum surfaceTopo |
Enumeration defining the surface type. Used in check routines.
Enumerator | |
---|---|
MANIFOLD | |
OPEN | |
ILLEGAL |
Definition at line 103 of file PrimitivePatch.H.
PrimitivePatch | ( | const FaceList & | faces, |
const Field< PointType > & | points | ||
) |
Construct from components.
Definition at line 32 of file PrimitivePatch.C.
PrimitivePatch | ( | FaceList && | faces, |
Field< PointType > && | points | ||
) |
Move constructor from components.
Definition at line 62 of file PrimitivePatch.C.
PrimitivePatch | ( | FaceList & | faces, |
Field< PointType > & | points, | ||
const bool | reuse | ||
) |
Construct from components, reuse storage.
Definition at line 92 of file PrimitivePatch.C.
PrimitivePatch | ( | const PrimitivePatch< FaceList, PointField > & | pp | ) |
Copy constructor.
Definition at line 123 of file PrimitivePatch.C.
PrimitivePatch | ( | PrimitivePatch< FaceList, PointField > && | pp | ) |
Move constructor.
Definition at line 153 of file PrimitivePatch.C.
Destructor.
Definition at line 185 of file PrimitivePatch.C.
|
inline |
Construct and return a clone.
Definition at line 277 of file PrimitivePatch.H.
Return reference to global points.
Definition at line 295 of file PrimitivePatch.H.
Referenced by booleanSurface::booleanSurface(), Foam::meshTools::calcBoxPointNormals(), addPatchCellLayer::calcSidePatch(), Foam::meshCheck::checkCoupledPoints(), Foam::meshCheck::checkGeometry(), distributedTriSurfaceMesh::distribute(), patchToPatch::distributePatch(), edgeIntersections::edgeIntersections(), patchProbes::findElements(), nearby::initialise(), coupledPolyPatch::initOrder(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), MeshedSurface< Face >::operator=(), triSurface::operator=(), coupledPolyPatch::order(), orientedSurface::orientedSurface(), patch::points(), thresholdCellFaces::points(), triSurfaceMesh::points(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), repatchMesh::read(), Foam::selectCutEdges(), addPatchCellLayer::setRefinement(), triSurfacePointGeoMesh::size(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), triSurfaceTools::triangulate(), patchEdgeFacePoint::updateEdge(), GTSsurfaceFormat< Face >::write(), AC3DsurfaceFormat< Face >::write(), TRIsurfaceFormat< Face >::write(), VTKsurfaceFormat< Face >::write(), rawSurfaceWriter::write(), STLsurfaceFormat< Face >::writeAscii(), and STLsurfaceFormat< Face >::writeBinary().
|
inline |
Return number of points supporting patch faces.
Definition at line 304 of file PrimitivePatch.H.
References PrimitivePatch< FaceList, PointField >::meshPoints(), and List< T >::size().
Referenced by booleanSurface::booleanSurface(), Foam::meshTools::calcBoxPointNormals(), Foam::meshCheck::checkTopology(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::doSnap(), FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), snappySnapDriver::getZoneSurfacePoints(), triSurfaceTools::greenRefine(), coupledPolyPatch::initOrder(), PatchTools::matchPoints(), triSurfaceTools::mergePoints(), globalMeshData::mergePoints(), medialAxisMeshMover::move(), coupledPolyPatch::order(), mappedExtrudedPatchBase::patchLocalPoints(), addPatchCellLayer::setRefinement(), surfaceIntersection::surfaceIntersection(), syncTools::syncPointList(), and AC3DsurfaceFormat< Face >::write().
|
inline |
Return number of edges in patch.
Definition at line 310 of file PrimitivePatch.H.
References PrimitivePatch< FaceList, PointField >::edges(), and List< T >::size().
Referenced by booleanSurface::booleanSurface(), createShellMesh::calcPointRegions(), addPatchCellLayer::calcSidePatch(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), edgeIntersections::edgeIntersections(), edgeSurface::edgeSurface(), FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), triSurfaceTools::greenRefine(), coupledPolyPatch::initOrder(), PatchTools::matchEdges(), polyBoundaryMesh::nbrEdges(), coupledPolyPatch::order(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), patchZones::patchZones(), edgeIntersections::removeDegenerates(), patchIntersection::report(), addPatchCellLayer::setRefinement(), surfaceFeatures::surfaceFeatures(), surfaceIntersection::surfaceIntersection(), syncTools::syncEdgeList(), patchToPatchStabilisation::update(), GTSsurfaceFormat< Face >::write(), and searchableSurfaces::writeStats().
const Foam::edgeList & edges |
Return list of edges, address into LOCAL point list.
Definition at line 194 of file PrimitivePatch.C.
Referenced by booleanSurface::booleanSurface(), createShellMesh::calcPointRegions(), addPatchCellLayer::calcSidePatch(), snappySnapDriver::calcSnapDistance(), searchableSurfaces::checkIntersection(), Foam::checkNonManifoldEdge(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), edgeSurface::edgeSurface(), triSurfaceTools::getEdge(), combineFaces::getOutsideFace(), triSurfaceTools::getVertexTriangles(), triSurfaceTools::getVertexVertices(), triSurfaceTools::greenRefine(), PatchTools::matchEdges(), triSurfaceTools::maxEdge(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), polyBoundaryMesh::nbrEdges(), PrimitivePatch< FaceList, PointField >::nEdges(), triSurfaceTools::oppositeEdge(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherEdges(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), patchIntersection::report(), Foam::selectBox(), Foam::selectCutEdges(), addPatchCellLayer::setRefinement(), perfectInterface::setRefinement(), surfaceFeatures::surfaceFeatures(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceSide(), syncTools::syncEdgeMap(), patchToPatchStabilisation::update(), patchFaceOrientation::updateEdge(), patchEdgeFacePoint::updateEdge(), patchFaceOrientation::updateFace(), OBJstream::write(), and GTSsurfaceFormat< Face >::write().
Foam::label nInternalEdges |
Number of internal edges.
Definition at line 206 of file PrimitivePatch.C.
Referenced by patchPatchDist::correct(), combineFaces::getOutsideFace(), coupledPolyPatch::initOrder(), PrimitivePatch< FaceList, PointField >::isInternalEdge(), polyBoundaryMesh::nbrEdges(), coupledPolyPatch::order(), and addPatchCellLayer::setRefinement().
|
inline |
Is internal edge?
Definition at line 322 of file PrimitivePatch.H.
References PrimitivePatch< FaceList, PointField >::nInternalEdges().
const Foam::labelList & boundaryPoints |
Return list of boundary points,.
address into LOCAL point list
Definition at line 219 of file PrimitivePatch.C.
const Foam::labelListList & faceFaces |
Return face-face addressing.
Definition at line 232 of file PrimitivePatch.C.
const Foam::labelListList & edgeFaces |
Return edge-face addressing.
Definition at line 246 of file PrimitivePatch.C.
Referenced by booleanSurface::booleanSurface(), createShellMesh::calcPointRegions(), addPatchCellLayer::calcSidePatch(), Foam::checkNonManifoldEdge(), triSurfaceTools::collapseEdges(), triSurfaceTools::edgeSide(), edgeSurface::edgeSurface(), extendedEdgeMesh::extendedEdgeMesh(), FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), cellClassification::fillRegionEdges(), combineFaces::getOutsideFace(), triSurfaceTools::getTriangle(), triSurfaceTools::getVertexTriangles(), addPatchCellLayer::globalEdgeFaces(), triSurfaceTools::greenRefine(), patchToPatch::intersectPatchQueue(), triSurfaceTools::otherFace(), Foam::primitivePatchGetZones(), patchIntersection::report(), Foam::selectManifoldEdges(), addPatchCellLayer::setRefinement(), surfaceFeatures::surfaceFeatures(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceNormal(), and patchToPatchStabilisation::update().
const Foam::labelListList & faceEdges |
Return face-edge addressing.
Definition at line 259 of file PrimitivePatch.C.
Referenced by createShellMesh::calcPointRegions(), cyclicPolyPatch::coupledEdges(), FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), combineFaces::getOutsideFace(), triSurfaceTools::getTriangle(), intersectedSurface::intersectedSurface(), patchToPatch::intersectPatchQueue(), triSurfaceTools::oppositeEdge(), triSurfaceTools::otherEdges(), Foam::primitivePatchGetZones(), addPatchCellLayer::setRefinement(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), and GTSsurfaceFormat< Face >::write().
const Foam::labelListList & pointEdges |
Return point-edge addressing.
Definition at line 272 of file PrimitivePatch.C.
Referenced by snappySnapDriver::calcSnapDistance(), triSurfaceTools::getEdge(), triSurfaceTools::getVertexVertices(), edgeIntersections::minEdgeLength(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), and triSurfaceTools::surfaceSide().
const Foam::labelListList & pointFaces |
Return point-face addressing.
Definition at line 285 of file PrimitivePatch.C.
Referenced by snappySnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), cellClassification::fillRegionPoints(), localPointRegion::findDuplicateFaces(), triSurfaceTools::getVertexTriangles(), volPointInterpolation::interpolateUnconstrained(), patchToPatch::intersectPatchQueue(), and volPointInterpolation::volPointInterpolation().
const Foam::List< typename Foam::PrimitivePatch< FaceList, PointField >::FaceType > & localFaces |
Return patch faces addressing into local point list.
Definition at line 301 of file PrimitivePatch.C.
Referenced by createShellMesh::calcPointRegions(), Foam::meshCheck::checkGeometry(), Foam::checkNonManifoldEdge(), triSurfaceTools::collapseEdges(), patchToPatch::distributePatch(), faceCoupleInfo::faceCoupleInfo(), nearest::finalise(), localPointRegion::findDuplicateFaces(), combineFaces::getOutsideFace(), triSurfaceTools::greenRefine(), intersectedSurface::intersectedSurface(), patchToPatch::intersectPatches(), patchToPatch::intersectPatchQueue(), Foam::levelSetFraction(), Foam::meshCheck::mergeAndWrite(), triSurfaceTools::mergePoints(), meshTriangulation::meshTriangulation(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherEdges(), triSurfaceTools::otherVertices(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), pairPatchAgglomeration::pairPatchAgglomeration(), repatchMesh::read(), repatchMesh::readTriSurface(), snappySnapDriver::repatchToSurface(), addPatchCellLayer::setRefinement(), patchToPatch::srcBox(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), patchToPatch::tgtBox(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), patch::update(), patchToPatch::update(), patchFaceOrientation::updateEdge(), patchFaceOrientation::updateFace(), FacePostProcessing< CloudType >::write(), OBJstream::write(), AC3DsurfaceFormat< Face >::write(), coupledPolyPatch::writeOBJ(), and meshRefinement::zonify().
const Foam::labelList & meshPoints |
Return labelList of mesh points in patch. They are constructed.
walking through the faces in incremental order and not sorted anymore.
Definition at line 314 of file PrimitivePatch.C.
Referenced by snappySnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), snappySnapDriver::calcNearestSurface(), addPatchCellLayer::calcSidePatch(), snappySnapDriver::calcSnapDistance(), Foam::meshCheck::checkGeometry(), Foam::meshCheck::checkWedges(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), snappySnapDriver::detectNearSurfaces(), FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), syncTools::getMasterPoints(), combineFaces::getOutsideFace(), globalIndexAndTransform::globalIndexAndTransform(), globalPoints::globalPoints(), volPointInterpolation::interpolateUnconstrained(), localPointRegion::localPointRegion(), PatchTools::matchEdges(), PatchTools::matchPoints(), Foam::meshCheck::mergeAndWrite(), globalMeshData::mergePoints(), facePointPatch::meshPoints(), medialAxisMeshMover::move(), polyBoundaryMesh::nbrEdges(), PrimitivePatch< FaceList, PointField >::nPoints(), inversePointDistanceDiffusivity::operator()(), orientedSurface::orientedSurface(), mappedExtrudedPatchBase::patchLocalPoints(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), Foam::selectCutEdges(), motionSmootherAlgo::setDisplacement(), addPatchCellLayer::setRefinement(), perfectInterface::setRefinement(), snappySnapDriver::smoothDisplacement(), syncTools::syncEdgeMap(), globalMeshData::syncPointData(), syncTools::syncPointList(), syncTools::syncPointMap(), pointConstraints::syncUntransformedData(), patchEdgeFacePoint::updateEdge(), volPointInterpolation::volPointInterpolation(), FacePostProcessing< CloudType >::write(), and GTSsurfaceFormat< Face >::write().
const Foam::Map< Foam::label > & meshPointMap |
Mesh point map. Given the global point index find its.
location in the patch
Definition at line 327 of file PrimitivePatch.C.
Referenced by Foam::meshCheck::checkGeometry(), cellClassification::fillRegionPoints(), snappySnapDriver::getZoneSurfacePoints(), globalPoints::globalPoints(), PatchTools::matchPoints(), Foam::meshCheck::mergeAndWrite(), globalMeshData::mergePoints(), PatchTools::pointNormals(), syncTools::syncPointList(), and FacePostProcessing< CloudType >::write().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & localPoints |
Return pointField of points in patch.
Definition at line 343 of file PrimitivePatch.C.
Referenced by snappySnapDriver::avgCellCentres(), booleanSurface::booleanSurface(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::calcSnapDistance(), searchableSurfaces::checkIntersection(), triSurfaceTools::collapseEdges(), cyclicPolyPatch::coupledEdges(), snappySnapDriver::detectNearSurfaces(), patchToPatch::distributePatch(), snappySnapDriver::doSnap(), edgeSurface::edgeSurface(), nearest::finalise(), triSurfaceTools::greenRefine(), patchToPatch::intersectPatches(), Foam::levelSetFraction(), facePointPatch::localPoints(), triSurfaceTools::maxEdge(), Foam::meshCheck::mergeAndWrite(), triSurfaceTools::mergePoints(), meshTriangulation::meshTriangulation(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), polyBoundaryMesh::nbrEdges(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), pairPatchAgglomeration::pairPatchAgglomeration(), mappedExtrudedPatchBase::patchLocalPoints(), repatchMesh::read(), repatchMesh::readTriSurface(), patchIntersection::report(), Foam::selectBox(), addPatchCellLayer::setRefinement(), perfectInterface::setRefinement(), snappySnapDriver::smoothDisplacement(), patchToPatch::srcBox(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceSide(), patchToPatch::tgtBox(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), patch::update(), patchToPatchStabilisation::update(), patchToPatch::update(), OBJstream::write(), AC3DsurfaceFormat< Face >::write(), coupledPolyPatch::writeOBJ(), triSurfaceTools::writeOBJ(), and meshRefinement::zonify().
const Foam::labelList & localPointOrder |
Return orders the local points for most efficient search.
Definition at line 356 of file PrimitivePatch.C.
Foam::label whichPoint | ( | const label | gp | ) | const |
Given a global point index, return the local point index.
If the point is not found, return -1
Definition at line 368 of file PrimitivePatch.C.
Foam::label whichEdge | ( | const edge & | e | ) | const |
Given an edge in local point labels, return its.
index in the edge list. If the edge is not found, return -1
Definition at line 146 of file PrimitivePatchMeshEdges.C.
References Foam::constant::electromagnetic::e, forAll, and nPoints.
Foam::labelList meshEdges | ( | const edgeList & | allEdges, |
const labelListList & | cellEdges, | ||
const labelList & | faceCells | ||
) | const |
Return labels of patch edges in the global edge list using.
cell addressing
Definition at line 32 of file PrimitivePatchMeshEdges.C.
References Foam::endl(), forAll, found, InfoInFunction, and List< T >::size().
Referenced by addPatchCellLayer::calcSidePatch(), addPatchCellLayer::globalEdgeFaces(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), and addPatchCellLayer::setRefinement().
Foam::labelList meshEdges | ( | const edgeList & | allEdges, |
const labelListList & | pointEdges | ||
) | const |
Return labels of patch edges in the global edge list using.
basic edge addressing.
Definition at line 99 of file PrimitivePatchMeshEdges.C.
References Foam::endl(), forAll, InfoInFunction, and List< T >::size().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & faceCentres |
Return face centres for patch.
Definition at line 392 of file PrimitivePatch.C.
Referenced by nearest::finalise(), coupledPolyPatch::initOrder(), cyclicPolyPatch::initOrder(), nearest::intersectFaces(), patchToPatch::intersectPatches(), coupledPolyPatch::order(), cyclicPolyPatch::order(), patchEdgeFacePoint::updateFace(), and rawSurfaceWriter::write().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & faceAreas |
Return face areas for patch.
Definition at line 408 of file PrimitivePatch.C.
Referenced by cyclicPolyPatch::initOrder(), and cyclicPolyPatch::order().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & faceNormals |
Return face normals for patch.
Definition at line 424 of file PrimitivePatch.C.
Referenced by CloudFilmTransfer< CloudType >::bounceInteraction(), Foam::meshTools::calcBoxPointNormals(), Foam::checkNonManifoldEdge(), directions::directions(), CloudFilmTransfer< CloudType >::drySplashInteraction(), triSurfaceTools::edgeSide(), intersectedSurface::intersectedSurface(), Foam::primitivePatchGetZones(), CloudFilmTransfer< CloudType >::splashInteraction(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), and CloudFilmTransfer< CloudType >::wetSplashInteraction().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & pointNormals |
Return point normals for patch.
Definition at line 440 of file PrimitivePatch.C.
Referenced by Foam::meshTools::calcBoxPointNormals(), mappedPatchBase::calcMapping(), facePointPatch::pointNormals(), and triSurfaceTools::surfaceNormal().
List<objectHit> projectPoints | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | = intersection::algorithm::fullRay , |
||
const intersection::direction | = intersection::direction::vector |
||
) | const |
Project vertices of patch onto another patch.
List<objectHit> projectFaceCentres | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | = intersection::algorithm::fullRay , |
||
const intersection::direction | = intersection::direction::vector |
||
) | const |
Project vertices of patch onto another patch.
const Foam::labelListList & edgeLoops |
Return list of closed loops of boundary vertices.
Edge loops are given as ordered lists of vertices in local addressing
Definition at line 152 of file PrimitivePatchEdgeLoops.C.
Referenced by combineFaces::getOutsideFace(), and combineFaces::setRefinement().
Foam::PrimitivePatch< FaceList, PointField >::surfaceTopo surfaceType |
Calculate surface type formed by patch.
Types:
Definition at line 105 of file PrimitivePatchCheck.C.
References Foam::endl(), forAll, Foam::Info, InfoInFunction, and List< T >::size().
Referenced by Foam::meshCheck::checkTopology().
bool checkTopology | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Check surface formed by patch for manifoldness (see above).
Return true if any incorrect edges are found. Insert vertices of incorrect edges into set.
Definition at line 146 of file PrimitivePatchCheck.C.
References Foam::constant::electromagnetic::e, Foam::endl(), forAll, Foam::Info, InfoInFunction, HashSet< Key, Hash >::insert(), and List< T >::size().
Referenced by Foam::meshCheck::checkTopology().
bool checkPointManifold | ( | const bool | report = false , |
labelHashSet * | setPtr = nullptr |
||
) | const |
Checks primitivePatch for faces sharing point but not edge.
This denotes a surface that is pinched at a single point (test for pinched at single edge is already in PrimitivePatch) Returns true if this situation found and puts conflicting (mesh)point in set. Based on all the checking routines in primitiveMesh.
Definition at line 200 of file PrimitivePatchCheck.C.
References Foam::endl(), Foam::findIndex(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::constant::atomic::mp, Foam::nl, and pFaces.
Referenced by Foam::meshCheck::checkTopology(), and cellClassification::fillRegionPoints().
void clearOut |
Definition at line 95 of file PrimitivePatchClear.C.
Referenced by PrimitiveOldTimePatch< FaceList, PointField >::clearOut().
void clearGeom |
Definition at line 33 of file PrimitivePatchClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and InfoInFunction.
Referenced by PrimitiveOldTimePatch< FaceList, PointField >::clearGeom().
void clearTopology |
Definition at line 49 of file PrimitivePatchClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and InfoInFunction.
void clearPatchMeshAddr |
Definition at line 81 of file PrimitivePatchClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and InfoInFunction.
void operator= | ( | const PrimitivePatch< FaceList, PointField > & | pp | ) |
Assignment operator.
Definition at line 454 of file PrimitivePatch.C.
void operator= | ( | PrimitivePatch< FaceList, PointField > && | pp | ) |
Move assignment operator.
Definition at line 466 of file PrimitivePatch.C.
Foam::List<Foam::objectHit> projectPoints | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | alg, | ||
const intersection::direction | dir | ||
) | const |
Definition at line 40 of file PrimitivePatchProjectPoints.C.
References Foam::abort(), Foam::fvc::average(), PointHit< Point >::distance(), PointHit< Point >::eligibleMiss(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, PointHit< Point >::hit(), Foam::Info, Foam::mag(), Foam::magSqr(), PointHit< Point >::missPoint(), Foam::nl, nPoints, points, and List< T >::size().
Foam::List<Foam::objectHit> projectFaceCentres | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | alg, | ||
const intersection::direction | dir | ||
) | const |
Definition at line 276 of file PrimitivePatchProjectPoints.C.
References Foam::abort(), Foam::bandCompression(), PointHit< Point >::distance(), PointHit< Point >::eligibleMiss(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, forAll, PointHit< Point >::hit(), Foam::Info, Foam::mag(), Foam::magSqr(), PointHit< Point >::missPoint(), Foam::nl, points, and List< T >::size().