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 81 of file PrimitivePatch.H.
typedef FaceList FaceListType |
Definition at line 91 of file PrimitivePatch.H.
typedef std::remove_reference<FaceList>::type::value_type FaceType |
Definition at line 94 of file PrimitivePatch.H.
typedef PointField PointFieldType |
Definition at line 96 of file PrimitivePatch.H.
typedef std::remove_reference<PointField>::type::value_type PointType |
Definition at line 99 of file PrimitivePatch.H.
enum surfaceTopo |
Enumeration defining the surface type. Used in check routines.
Enumerator | |
---|---|
MANIFOLD | |
OPEN | |
ILLEGAL |
Definition at line 105 of file PrimitivePatch.H.
PrimitivePatch | ( | const FaceList & | faces, |
const Field< PointType > & | points | ||
) |
Construct from components.
Definition at line 33 of file PrimitivePatch.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::PrimitivePatch().
PrimitivePatch | ( | FaceList && | faces, |
Field< PointType > && | points | ||
) |
Move constructor from components.
Definition at line 63 of file PrimitivePatch.C.
PrimitivePatch | ( | FaceList & | faces, |
Field< PointType > & | points, | ||
const bool | reuse | ||
) |
Construct from components, reuse storage.
Definition at line 93 of file PrimitivePatch.C.
PrimitivePatch | ( | const PrimitivePatch< FaceList, PointField > & | pp | ) |
Copy constructor.
Definition at line 124 of file PrimitivePatch.C.
PrimitivePatch | ( | PrimitivePatch< FaceList, PointField > && | pp | ) |
Move constructor.
Definition at line 154 of file PrimitivePatch.C.
~PrimitivePatch | ( | ) |
Destructor.
Definition at line 185 of file PrimitivePatch.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::clone().
|
inline |
Construct and return a clone.
Definition at line 279 of file PrimitivePatch.H.
Referenced by emptyPolyPatch::clone(), wallPolyPatch::clone(), symmetryPolyPatch::clone(), internalPolyPatch::clone(), mergedCyclicPolyPatch::clone(), genericPolyPatch::clone(), symmetryPlanePolyPatch::clone(), cyclicSlipPolyPatch::clone(), nonConformalProcessorCyclicPolyPatch::clone(), wedgePolyPatch::clone(), nonConformalErrorPolyPatch::clone(), mappedVariableThicknessWallPolyPatch::clone(), mappedWallPolyPatch::clone(), mappedPolyPatch::clone(), processorPolyPatch::clone(), nonConformalCyclicPolyPatch::clone(), processorCyclicPolyPatch::clone(), cyclicAMIPolyPatch::clone(), cyclicPolyPatch::clone(), and polyPatch::clone().
Return reference to global points.
Definition at line 297 of file PrimitivePatch.H.
Referenced by booleanSurface::booleanSurface(), PatchTools::calcBounds(), Foam::meshTools::calcBoxPointNormals(), triSurfaceTools::calcInterpolationWeights(), addPatchCellLayer::calcSidePatch(), PatchTools::checkOrientation(), searchableSurfaces::checkQuality(), triSurfaceTools::classify(), distributedTriSurfaceMesh::distribute(), patchToPatch::distributePatch(), edgeIntersections::edgeIntersections(), extrudePatchMesh::extrudePatchMesh(), patchProbes::findElements(), mappedPatchBase::findSamples(), PatchTools::gatherAndMerge(), triSurfaceMesh::getNormal(), distributedTriSurfaceMesh::getNormal(), coupledPolyPatch::initOrder(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), coupledPolyPatch::matchTolerance(), NamedEnum< compressibleField, 8 >::names(), MeshedSurface< Foam::face >::operator=(), triSurface::operator=(), coupledPolyPatch::order(), orientedSurface::orient(), orientedSurface::orientedSurface(), distributedTriSurfaceMesh::overlappingSurface(), pairPatchAgglomeration::patchLevel(), AMIInterpolation::patchMagSf(), thresholdCellFaces::points(), patch::points(), triSurfaceMesh::points(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), repatchMesh::read(), Foam::selectCutEdges(), repatchMesh::setFeatureEdges(), patchInjectionBase::setPositionAndCell(), addPatchCellLayer::setRefinement(), triSurfacePointGeoMesh::size(), intersection::srcBoxStatic(), AMIInterpolation::srcPointFace(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), AMIInterpolation::tgtPointFace(), patchInjectionBase::topoChange(), triSurfaceSearch::tree(), triSurfaceTools::triangulate(), patchEdgeFaceInfo::updateEdge(), rawSurfaceWriter::write(), and surfaceLocation::write().
|
inline |
Return number of points supporting patch faces.
Definition at line 306 of file PrimitivePatch.H.
Referenced by booleanSurface::booleanSurface(), Foam::meshTools::calcBoxPointNormals(), PointEdgeWave< Type, TrackingData >::countPatchType(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::doSnap(), snappySnapDriver::getZoneSurfacePoints(), triSurfaceTools::greenRefine(), coupledPolyPatch::initOrder(), PatchTools::matchPoints(), triSurfaceTools::mergePoints(), globalMeshData::mergePoints(), medialAxisMeshMover::move(), listPlusEqOp< T >::operator()(), coupledPolyPatch::order(), nonConformalBoundary::ownerOrigBoundaryPointMeshPoint(), PatchTools::pointNormals(), mappedPatchBase::sampleSize(), addPatchCellLayer::setRefinement(), PatchTools::subsetMap(), surfaceIntersection::surfaceIntersection(), syncTools::syncPointList(), and AC3DsurfaceFormat< Face >::write().
|
inline |
Return number of edges in patch.
Definition at line 312 of file PrimitivePatch.H.
Referenced by booleanSurface::booleanSurface(), createShellMesh::calcPointRegions(), addPatchCellLayer::calcSidePatch(), PatchTools::checkOrientation(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), edgeIntersections::edgeIntersections(), PatchTools::edgeNormals(), edgeSurface::edgeSurface(), extrudePatchMesh::extrudePatchMesh(), surfaceFeatures::findFeatures(), triSurfaceTools::greenRefine(), coupledPolyPatch::initOrder(), PatchTools::matchEdges(), meshRefinement::mergeBaffles(), polyBoundaryMesh::nbrEdges(), surfaceFeatures::nearestFeatEdge(), listPlusEqOp< T >::operator()(), coupledPolyPatch::order(), orientedSurface::orient(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), nonConformalBoundary::ownerOrigBoundaryEdges(), nonConformalBoundary::ownerOrigBoundaryPointMeshPoint(), repatchMesh::read(), edgeIntersections::removeDegenerates(), addPatchCellLayer::setRefinement(), intersection::srcBoxStatic(), surfaceFeatures::surfaceFeatures(), surfaceIntersection::surfaceIntersection(), syncTools::syncEdgeList(), surfaceFeatures::trimFeatures(), and searchableSurfaces::writeStats().
const Foam::edgeList & edges | ( | ) | const |
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(), PatchTools::checkOrientation(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), PatchTools::edgeOwner(), edgeSurface::edgeSurface(), triSurfaceTools::getEdge(), combineFaces::getOutsideFace(), triSurfaceTools::getVertexTriangles(), triSurfaceTools::getVertexVertices(), triSurfaceTools::greenRefine(), PatchTools::matchEdges(), triSurfaceTools::maxEdge(), Foam::meshEdge(), polyPatch::meshEdges(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), slidingInterface::modifyMotionPoints(), polyBoundaryMesh::nbrEdges(), surfaceFeatures::nearestEdges(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), PrimitivePatch< IndirectList< face >, const pointField & >::nEdges(), listPlusEqOp< T >::operator()(), triSurfaceTools::oppositeEdge(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherEdges(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), nonConformalBoundary::ownerOrigBoundaryEdges(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), Foam::selectBox(), Foam::selectCutEdges(), repatchMesh::setFeatureEdges(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), PatchTools::sortedEdgeFaces(), PatchTools::sortedPointEdges(), intersection::srcBoxStatic(), surfaceFeatures::surfaceFeatures(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceSide(), syncTools::syncEdgeMap(), surfaceFeatures::trimFeatures(), patchFaceOrientation::updateEdge(), patchEdgeFaceInfo::updateEdge(), patchFaceOrientation::updateFace(), surfaceLocation::write(), and surfaceFeatures::writeObj().
Foam::label nInternalEdges | ( | ) | const |
Number of internal edges.
Definition at line 206 of file PrimitivePatch.C.
Referenced by patchPatchDist::correct(), extrudePatchMesh::extrudePatchMesh(), combineFaces::getOutsideFace(), coupledPolyPatch::initOrder(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), polyBoundaryMesh::nbrEdges(), PrimitivePatch< IndirectList< face >, const pointField & >::nEdges(), coupledPolyPatch::order(), and addPatchCellLayer::setRefinement().
Is internal edge?
Definition at line 324 of file PrimitivePatch.H.
const Foam::labelList & boundaryPoints | ( | ) | const |
Return list of boundary points,.
address into LOCAL point list
Definition at line 219 of file PrimitivePatch.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), and listPlusEqOp< T >::operator()().
const Foam::labelListList & faceFaces | ( | ) | const |
Return face-face addressing.
Definition at line 233 of file PrimitivePatch.C.
Referenced by pairPatchAgglomeration::agglomerate(), AMIMethod::appendNbrFaces(), PrimitivePatch< IndirectList< face >, const pointField & >::boundaryPoints(), triSurfaceMesh::getNormal(), and PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge().
const Foam::labelListList & edgeFaces | ( | ) | const |
Return edge-face addressing.
Definition at line 246 of file PrimitivePatch.C.
Referenced by booleanSurface::booleanSurface(), createShellMesh::calcPointRegions(), addPatchCellLayer::calcSidePatch(), searchableSurfaces::checkClosed(), Foam::checkNonManifoldEdge(), PatchTools::checkOrientation(), triSurfaceTools::collapseEdges(), PatchTools::edgeNormals(), PatchTools::edgeOwner(), triSurfaceTools::edgeSide(), edgeSurface::edgeSurface(), extendedEdgeMesh::extendedEdgeMesh(), extrudePatchMesh::extrudePatchMesh(), surfaceFeatures::findFeatures(), combineFaces::getOutsideFace(), triSurfaceTools::getTriangle(), triSurfaceTools::getVertexTriangles(), addPatchCellLayer::globalEdgeFaces(), triSurfaceTools::greenRefine(), patchToPatch::intersectPatchQueue(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), PatchTools::markZone(), Foam::meshEdge(), surfaceLocation::normal(), listPlusEqOp< T >::operator()(), orientedSurface::orient(), triSurfaceTools::otherFace(), Foam::primitivePatchGetZones(), Foam::selectManifoldEdges(), repatchMesh::setFeatureEdges(), addPatchCellLayer::setRefinement(), PatchTools::sortedEdgeFaces(), PatchTools::sortedPointEdges(), intersection::srcBoxStatic(), surfaceFeatures::surfaceFeatures(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceNormal(), and triSurfaceTools::trackToEdge().
const Foam::labelListList & faceEdges | ( | ) | const |
Return face-edge addressing.
Definition at line 259 of file PrimitivePatch.C.
Referenced by createShellMesh::calcPointRegions(), PatchTools::checkOrientation(), triSurfaceTools::classify(), cyclicPolyPatch::coupledEdges(), combineFaces::getOutsideFace(), triSurfaceTools::getTriangle(), intersectedSurface::intersectedSurface(), patchToPatch::intersectPatchQueue(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), PatchTools::markZone(), meshRefinement::mergeBaffles(), triSurfaceTools::oppositeEdge(), triSurfaceTools::otherEdges(), Foam::primitivePatchGetZones(), addPatchCellLayer::setRefinement(), PatchTools::sortedPointEdges(), intersection::srcBoxStatic(), triSurfaceTools::surfaceNormal(), and triSurfaceTools::surfaceSide().
const Foam::labelListList & pointEdges | ( | ) | const |
Return point-edge addressing.
Definition at line 272 of file PrimitivePatch.C.
Referenced by snappySnapDriver::calcSnapDistance(), triSurfaceTools::getEdge(), triSurfaceTools::getVertexVertices(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), polyPatch::meshEdges(), edgeIntersections::minEdgeLength(), listPlusEqOp< T >::operator()(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), PatchTools::sortedPointEdges(), and triSurfaceTools::surfaceSide().
const Foam::labelListList & pointFaces | ( | ) | const |
Return point-face addressing.
Definition at line 285 of file PrimitivePatch.C.
Referenced by snappySnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), triSurfaceTools::getVertexTriangles(), volPointInterpolation::interpolateUnconstrained(), patchToPatch::intersectPatchQueue(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), listPlusEqOp< T >::operator()(), PatchTools::pointNormals(), and triSurfaceTools::trackToEdge().
const Foam::List< typename Foam::PrimitivePatch< FaceList, PointField >::FaceType > & localFaces | ( | ) | const |
Return patch faces addressing into local point list.
Definition at line 301 of file PrimitivePatch.C.
Referenced by mappedPatchBase::calcAMI(), createShellMesh::calcPointRegions(), Foam::checkNonManifoldEdge(), PatchTools::checkOrientation(), triSurfaceTools::classify(), triSurfaceTools::collapseEdges(), PatchTools::edgeOwner(), extrudePatchMesh::extrudePatchMesh(), combineFaces::getOutsideFace(), triSurfaceTools::greenRefine(), intersectedSurface::intersectedSurface(), patchToPatch::intersectPatches(), patchToPatch::intersectPatchQueue(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), Foam::levelSetFraction(), triSurfaceTools::mergePoints(), meshTriangulation::meshTriangulation(), NamedEnum< compressibleField, 8 >::names(), listPlusEqOp< T >::operator()(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherEdges(), triSurfaceTools::otherVertices(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), pairPatchAgglomeration::pairPatchAgglomeration(), AMIInterpolation::patchMagSf(), PatchTools::pointNormals(), repatchMesh::readTriSurface(), snappySnapDriver::repatchToSurface(), cyclicAMIPolyPatch::resetAMI(), addPatchCellLayer::setRefinement(), PatchTools::sortedEdgeFaces(), patchToPatch::srcBox(), intersection::srcBoxStatic(), PatchTools::subsetMap(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), patchToPatch::tgtBox(), triSurfaceTools::triangulateFaceCentre(), patch::update(), patchToPatch::update(), patchFaceOrientation::updateEdge(), patchFaceOrientation::updateFace(), AC3DsurfaceFormat< Face >::write(), coupledPolyPatch::writeOBJ(), and meshRefinement::zonify().
const Foam::labelList & meshPoints | ( | ) | const |
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(), interpolationCellPointWallModified< Type >::calcPointField(), addPatchCellLayer::calcSidePatch(), snappySnapDriver::calcSnapDistance(), patchPatchDist::correct(), PointEdgeWave< Type, TrackingData >::countPatchType(), cyclicPolyPatch::coupledEdges(), snappySnapDriver::detectNearSurfaces(), extrudePatchMesh::extrudePatchMesh(), mappedPatchBase::findSamples(), combineFaces::getOutsideFace(), globalIndexAndTransform::globalIndexAndTransform(), globalPoints::globalPoints(), volPointInterpolation::interpolateUnconstrained(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), localPointRegion::localPointRegion(), PatchTools::matchEdges(), PatchTools::matchPoints(), globalMeshData::mergePoints(), Foam::meshEdge(), facePointPatch::meshPoints(), medialAxisMeshMover::move(), NamedEnum< compressibleField, 8 >::names(), polyBoundaryMesh::nbrEdges(), PrimitivePatch< IndirectList< face >, const pointField & >::nPoints(), listPlusEqOp< T >::operator()(), inversePointDistanceDiffusivity::operator()(), orientedSurface::orientedSurface(), nonConformalBoundary::ownerOrigBoundaryPointMeshPoint(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), PatchTools::pointNormals(), fvMeshDistribute::printCoupleInfo(), Foam::selectCutEdges(), motionSmootherAlgo::setDisplacement(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), snappySnapDriver::smoothDisplacement(), syncTools::syncEdgeMap(), globalMeshData::syncPointData(), syncTools::syncPointList(), syncTools::syncPointMap(), pointConstraints::syncUntransformedData(), patchEdgeFaceInfo::updateEdge(), and medialAxisMeshMover::~medialAxisMeshMover().
const Foam::Map< Foam::label > & meshPointMap | ( | ) | const |
Mesh point map. Given the global point index find its.
location in the patch
Definition at line 327 of file PrimitivePatch.C.
Referenced by snappySnapDriver::getZoneSurfacePoints(), globalPoints::globalPoints(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), PatchTools::matchPoints(), globalMeshData::mergePoints(), PatchTools::pointNormals(), and syncTools::syncPointList().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & localPoints | ( | ) | const |
Return pointField of points in patch.
Definition at line 343 of file PrimitivePatch.C.
Referenced by snappySnapDriver::avgCellCentres(), booleanSurface::booleanSurface(), mappedPatchBase::calcAMI(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::calcSnapDistance(), searchableSurfaces::checkIntersection(), PatchTools::checkOrientation(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::doSnap(), edgeSurface::edgeSurface(), triSurfaceTools::greenRefine(), patchToPatch::intersectPatches(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), Foam::levelSetFraction(), facePointPatch::localPoints(), triSurfaceTools::maxEdge(), triSurfaceTools::mergePoints(), meshTriangulation::meshTriangulation(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), slidingInterface::modifyMotionPoints(), polyBoundaryMesh::nbrEdges(), surfaceFeatures::nearestEdges(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), listPlusEqOp< T >::operator()(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), pairPatchAgglomeration::pairPatchAgglomeration(), AMIInterpolation::patchMagSf(), nonConformalBoundary::patchPointOwnerOrigBoundaryPoints(), repatchMesh::readTriSurface(), snappySnapDriver::repatchToSurface(), Foam::selectBox(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), snappySnapDriver::smoothDisplacement(), PatchTools::sortedEdgeFaces(), patchToPatch::srcBox(), intersection::srcBoxStatic(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceSide(), patchToPatch::tgtBox(), triSurfaceTools::triangulateFaceCentre(), surfaceFeatures::trimFeatures(), patch::update(), patchToPatch::update(), AC3DsurfaceFormat< Face >::write(), surfaceLocation::write(), coupledPolyPatch::writeOBJ(), triSurfaceTools::writeOBJ(), surfaceFeatures::writeObj(), and meshRefinement::zonify().
const Foam::labelList & localPointOrder | ( | ) | const |
Return orders the local points for most efficient search.
Definition at line 356 of file PrimitivePatch.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge().
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 369 of file PrimitivePatch.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), PrimitivePatch< IndirectList< face >, const pointField & >::localPointOrder(), and slidingInterface::modifyMotionPoints().
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 147 of file PrimitivePatchMeshEdges.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), PrimitivePatch< IndirectList< face >, const pointField & >::meshEdges(), and slidingInterface::modifyMotionPoints().
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 33 of file PrimitivePatchMeshEdges.C.
Referenced by addPatchCellLayer::calcSidePatch(), addPatchCellLayer::globalEdgeFaces(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), meshRefinement::mergeBaffles(), polyPatch::meshEdges(), PrimitivePatch< IndirectList< face >, const pointField & >::meshEdges(), listPlusEqOp< T >::operator()(), nonConformalBoundary::ownerOrigBoundaryEdgeMeshEdge(), addPatchCellLayer::setRefinement(), and medialAxisMeshMover::~medialAxisMeshMover().
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 100 of file PrimitivePatchMeshEdges.C.
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & faceCentres | ( | ) | const |
Return face centres for patch.
Definition at line 392 of file PrimitivePatch.C.
Referenced by symmetryPlanePolyPatch::calcGeometry(), wedgePolyPatch::calcGeometry(), coupledPolyPatch::initOrder(), cyclicPolyPatch::initOrder(), patchToPatch::intersectPatches(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), meshRefinement::mergeBaffles(), listPlusEqOp< T >::operator()(), coupledPolyPatch::order(), cyclicPolyPatch::order(), intersection::srcBoxStatic(), patchEdgeFaceInfo::updateFace(), rawSurfaceWriter::write(), and AMIInterpolation::writeFaceConnectivity().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & faceAreas | ( | ) | const |
Return face areas for patch.
Definition at line 408 of file PrimitivePatch.C.
Referenced by cyclicPolyPatch::initOrder(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), cyclicPolyPatch::order(), intersection::srcBoxStatic(), intersection::srcWeights(), and intersection::tgtWeights().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & faceNormals | ( | ) | const |
Return face normals for patch.
Definition at line 424 of file PrimitivePatch.C.
Referenced by ThermoSurfaceFilm< CloudType >::absorbInteraction(), AMIMethod::appendNbrFaces(), ThermoSurfaceFilm< CloudType >::bounceInteraction(), Foam::meshTools::calcBoxPointNormals(), interpolationCellPointWallModified< Type >::calcPointField(), Foam::checkNonManifoldEdge(), PatchTools::checkOrientation(), directions::directions(), ThermoSurfaceFilm< CloudType >::drySplashInteraction(), PatchTools::edgeNormals(), triSurfaceTools::edgeSide(), extrudePatchMesh::extrudePatchMesh(), repatchMesh::getNearest(), intersectedSurface::intersectedSurface(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), Foam::min(), regionModel1D::moveMesh(), surfaceLocation::normal(), listPlusEqOp< T >::operator()(), PatchTools::pointNormals(), Foam::primitivePatchGetZones(), repatchMesh::setFeatureEdges(), singleLayerRegion::singleLayerRegion(), ThermoSurfaceFilm< CloudType >::splashInteraction(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), wallLayerCells::wallLayerCells(), and ThermoSurfaceFilm< CloudType >::wetSplashInteraction().
const Foam::Field< typename Foam::PrimitivePatch< FaceList, PointField >::PointType > & pointNormals | ( | ) | const |
Return point normals for patch.
Definition at line 440 of file PrimitivePatch.C.
Referenced by Foam::meshTools::calcBoxPointNormals(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), slidingInterface::modifyMotionPoints(), surfaceLocation::normal(), 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.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge().
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.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), and PrimitivePatch< IndirectList< face >, const pointField & >::projectPoints().
const Foam::labelListList & edgeLoops | ( | ) | const |
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(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), and NamedEnum< compressibleField, 8 >::names().
Foam::PrimitivePatch< FaceList, PointField >::surfaceTopo surfaceType | ( | ) | const |
Calculate surface type formed by patch.
Types:
Definition at line 106 of file PrimitivePatchCheck.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge().
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 148 of file PrimitivePatchCheck.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), and PrimitivePatch< IndirectList< face >, const pointField & >::surfaceType().
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 202 of file PrimitivePatchCheck.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::checkTopology(), and PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge().
void clearOut | ( | ) |
Definition at line 95 of file PrimitivePatchClear.C.
Referenced by PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), and processorPolyPatch::topoChange().
void clearGeom | ( | ) |
Definition at line 33 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearGeom(), PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge(), polyPatch::movePoints(), nonConformalBoundary::movePoints(), and polyPatch::topoChange().
void clearTopology | ( | ) |
Definition at line 49 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearAddressing(), and PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge().
void clearPatchMeshAddr | ( | ) |
Definition at line 81 of file PrimitivePatchClear.C.
Referenced by polyPatch::clearAddressing(), and PrimitivePatch< IndirectList< face >, const pointField & >::isInternalEdge().
void operator= | ( | const PrimitivePatch< FaceList, PointField > & | pp | ) |
Assignment operator.
Definition at line 455 of file PrimitivePatch.C.
Referenced by polyPatch::operator=().
void operator= | ( | PrimitivePatch< FaceList, PointField > && | pp | ) |
Move assignment operator.
Definition at line 467 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 41 of file PrimitivePatchProjectPoints.C.
Foam::List<Foam::objectHit> projectFaceCentres | ( | const ToPatch & | targetPatch, |
const Field< PointType > & | projectionDirection, | ||
const intersection::algorithm | alg, | ||
const intersection::direction | dir | ||
) | const |
Definition at line 277 of file PrimitivePatchProjectPoints.C.