Public Types | Public Member Functions | List of all members
PrimitivePatch< Face, FaceList, PointField, PointType > Class Template Reference

A list of faces which address into the list of points. More...

Inheritance diagram for PrimitivePatch< Face, FaceList, PointField, PointType >:
Inheritance graph
[legend]
Collaboration diagram for PrimitivePatch< Face, FaceList, PointField, PointType >:
Collaboration graph
[legend]

Public Types

enum  surfaceTopo { MANIFOLD, OPEN, ILLEGAL }
 Enumeration defining the surface type. Used in check routines. More...
 
typedef Face FaceType
 
typedef FaceList< Face > FaceListType
 
typedef PointField PointFieldType
 

Public Member Functions

 PrimitivePatch (const FaceList< Face > &faces, const Field< PointType > &points)
 Construct from components. More...
 
 PrimitivePatch (const Xfer< FaceList< Face > > &faces, const Xfer< List< PointType > > &points)
 Construct from components. More...
 
 PrimitivePatch (FaceList< Face > &faces, Field< PointType > &points, const bool reUse)
 Construct from components, reuse storage. More...
 
 PrimitivePatch (const PrimitivePatch< Face, FaceList, PointField, PointType > &)
 Construct as copy. More...
 
virtual ~PrimitivePatch ()
 Destructor. More...
 
void clearOut ()
 
void clearGeom ()
 
void clearTopology ()
 
void clearPatchMeshAddr ()
 
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 edgeListedges () 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 labelListboundaryPoints () const
 Return list of boundary points,. More...
 
const labelListListfaceFaces () const
 Return face-face addressing. More...
 
const labelListListedgeFaces () const
 Return edge-face addressing. More...
 
const labelListListfaceEdges () const
 Return face-edge addressing. More...
 
const labelListListpointEdges () const
 Return point-edge addressing. More...
 
const labelListListpointFaces () const
 Return point-face addressing. More...
 
const List< Face > & localFaces () const
 Return patch faces addressing into local point list. More...
 
const labelListmeshPoints () 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 labelListlocalPointOrder () 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 > & faceNormals () const
 Return face normals for patch. More...
 
const Field< PointType > & pointNormals () const
 Return point normals for patch. More...
 
template<class ToPatch >
List< objectHitprojectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const
 Project vertices of patch onto another patch. More...
 
template<class ToPatch >
List< objectHitprojectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::FULL_RAY, const intersection::direction=intersection::VECTOR) const
 Project vertices of patch onto another patch. More...
 
const labelListListedgeLoops () 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=NULL) const
 Check surface formed by patch for manifoldness (see above). More...
 
bool checkPointManifold (const bool report=false, labelHashSet *setPtr=NULL) const
 Checks primitivePatch for faces sharing point but not edge. More...
 
virtual void movePoints (const Field< PointType > &)
 Correct patch after moving points. More...
 
void operator= (const PrimitivePatch< Face, FaceList, PointField, PointType > &)
 Assignment. More...
 
template<class ToPatch >
Foam::List< Foam::objectHitprojectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const
 
template<class ToPatch >
Foam::List< Foam::objectHitprojectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const
 

Detailed Description

template<class Face, template< class > class FaceList, class PointField, class PointType = point>
class Foam::PrimitivePatch< Face, FaceList, PointField, PointType >

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.

Source files

Definition at line 87 of file PrimitivePatch.H.

Member Typedef Documentation

typedef Face FaceType

Definition at line 97 of file PrimitivePatch.H.

typedef FaceList<Face> FaceListType

Definition at line 98 of file PrimitivePatch.H.

typedef PointField PointFieldType

Definition at line 99 of file PrimitivePatch.H.

Member Enumeration Documentation

Enumeration defining the surface type. Used in check routines.

Enumerator
MANIFOLD 
OPEN 
ILLEGAL 

Definition at line 105 of file PrimitivePatch.H.

Constructor & Destructor Documentation

PrimitivePatch ( const FaceList< Face > &  faces,
const Field< PointType > &  points 
)

Construct from components.

Definition at line 39 of file PrimitivePatch.C.

Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::PrimitivePatch().

Here is the caller graph for this function:

PrimitivePatch ( const Xfer< FaceList< Face > > &  faces,
const Xfer< List< PointType > > &  points 
)

Construct from components.

Definition at line 75 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::PrimitivePatch().

Here is the call graph for this function:

PrimitivePatch ( FaceList< Face > &  faces,
Field< PointType > &  points,
const bool  reUse 
)

Construct from components, reuse storage.

Definition at line 111 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::PrimitivePatch().

Here is the call graph for this function:

PrimitivePatch ( const PrimitivePatch< Face, FaceList, PointField, PointType > &  pp)

Construct as copy.

Definition at line 148 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::~PrimitivePatch().

Here is the call graph for this function:

~PrimitivePatch ( )
virtual

Destructor.

Definition at line 185 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::movePoints().

Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::PrimitivePatch().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Function Documentation

void clearOut ( )

Definition at line 133 of file PrimitivePatchClear.C.

Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::clearPatchMeshAddr(), and processorPolyPatch::updateMesh().

Here is the caller graph for this function:

void clearGeom ( )

Definition at line 41 of file PrimitivePatchClear.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::clearTopology(), Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Info.

Referenced by polyPatch::clearGeom(), and polyPatch::updateMesh().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearTopology ( )
void clearPatchMeshAddr ( )

Definition at line 108 of file PrimitivePatchClear.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::clearOut(), Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Info.

Referenced by polyPatch::clearAddressing(), and PrimitivePatch< Face, FaceList, PointField, PointType >::clearTopology().

Here is the call graph for this function:

Here is the caller graph for this function:

const Field<PointType>& points ( ) const
inline

Return reference to global points.

Definition at line 284 of file PrimitivePatch.H.

Referenced by booleanSurface::booleanSurface(), PatchTools::calcBounds(), Foam::meshTools::calcBoxPointNormals(), triSurfaceTools::calcInterpolationWeights(), addPatchCellLayer::calcSidePatch(), cyclicAMIPolyPatch::calcTransforms(), cyclicPolyPatch::calcTransforms(), PatchTools::checkOrientation(), searchableSurfaces::checkQuality(), triSurfaceTools::classify(), distributedTriSurfaceMesh::distribute(), edgeIntersections::edgeIntersections(), extrudePatchMesh::extrudePatchMesh(), patchProbes::findElements(), mappedPatchBase::findSamples(), PatchTools::gatherAndMerge(), triSurfaceMesh::getNormal(), distributedTriSurfaceMesh::getNormal(), processorPolyPatch::initOrder(), cyclicPolyPatch::initOrder(), momentOfInertia::massPropertiesShell(), momentOfInertia::massPropertiesSolid(), coupledPolyPatch::matchTolerance(), NamedEnum< Enum, nEnum >::names(), combineEqOp< Type, TrackingData >::operator()(), nearestEqOp::operator()(), triSurface::operator=(), MeshedSurface< Face >::operator=(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), cyclicPolyPatch::order(), orientedSurface::orient(), orientedSurface::orientedSurface(), distributedTriSurfaceMesh::overlappingSurface(), pairPatchAgglomeration::patchLevel(), sampledPlane::points(), sampledThresholdCellFaces::points(), sampledCuttingPlane::points(), distanceSurface::points(), sampledPatch::points(), sampledIsoSurface::points(), sampledTriSurfaceMesh::points(), boundaryMesh::read(), boundaryMesh::setFeatureEdges(), patchInjectionBase::setPositionAndCell(), addPatchCellLayer::setRefinement(), triSurfacePointGeoMesh::size(), cellDistFuncs::smallestDist(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), triSurfaceSearch::tree(), triSurfaceTools::triangulate(), patchEdgeFaceInfo::updateEdge(), patchInjectionBase::updateMesh(), and surfaceLocation::write().

label nPoints ( ) const
inline
label nEdges ( ) const
inline
const Foam::edgeList & edges ( ) const

Return list of edges, address into LOCAL point list.

Definition at line 228 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::nInternalEdges().

Referenced by booleanSurface::booleanSurface(), createShellMesh::calcPointRegions(), addPatchCellLayer::calcSidePatch(), autoSnapDriver::calcSnapDistance(), searchableSurfaces::checkIntersection(), 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(), polyPatch::meshEdges(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), slidingInterface::modifyMotionPoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::movePoints(), surfaceFeatures::nearestEdges(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::nEdges(), polyBoundaryMesh::neighbourEdges(), listPlusEqOp< T >::operator()(), triSurfaceTools::oppositeEdge(), triSurfaceTools::oppositeVertex(), triSurfaceTools::otherEdges(), boundaryMesh::setFeatureEdges(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), PatchTools::sortedEdgeFaces(), PatchTools::sortedPointEdges(), surfaceFeatures::surfaceFeatures(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceSide(), syncTools::syncEdgeMap(), surfaceFeatures::trimFeatures(), patchFaceOrientation::updateEdge(), patchEdgeFaceInfo::updateEdge(), patchFaceOrientation::updateFace(), surfaceLocation::write(), and surfaceFeatures::writeObj().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::label nInternalEdges ( ) const
bool isInternalEdge ( const label  edgeI) const
inline

Is internal edge?

Definition at line 313 of file PrimitivePatch.H.

const Foam::labelList & boundaryPoints ( ) const

Return list of boundary points,.

address into LOCAL point list

Definition at line 268 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::faceFaces().

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), PrimitivePatch< Face, FaceList, PointField, PointType >::nInternalEdges(), and listPlusEqOp< T >::operator()().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::labelListList & faceFaces ( ) const
const Foam::labelListList & edgeFaces ( ) const
const Foam::labelListList & faceEdges ( ) const
const Foam::labelListList & pointEdges ( ) const
const Foam::labelListList & pointFaces ( ) const
const Foam::List< Face > & localFaces ( ) const

Return patch faces addressing into local point list.

Definition at line 388 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints().

Referenced by mappedPatchBase::calcAMI(), createShellMesh::calcPointRegions(), PatchTools::checkOrientation(), triSurfaceTools::classify(), triSurfaceTools::collapseEdges(), PatchTools::edgeOwner(), extrudePatchMesh::extrudePatchMesh(), combineFaces::getOutsideFace(), cellDistFuncs::getPointNeighbours(), triSurfaceTools::greenRefine(), processorPolyPatch::initOrder(), intersectedSurface::intersectedSurface(), PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), triSurfaceTools::mergePoints(), meshTriangulation::meshTriangulation(), NamedEnum< Enum, nEnum >::names(), listPlusEqOp< T >::operator()(), triSurfaceTools::oppositeVertex(), oldCyclicPolyPatch::order(), processorPolyPatch::order(), triSurfaceTools::otherEdges(), triSurfaceTools::otherVertices(), pairPatchAgglomeration::pairPatchAgglomeration(), PrimitivePatch< Face, FaceList, PointField, PointType >::pointFaces(), PatchTools::pointNormals(), boundaryMesh::readTriSurface(), autoSnapDriver::repatchToSurface(), cyclicAMIPolyPatch::resetAMI(), addPatchCellLayer::setRefinement(), PatchTools::sortedEdgeFaces(), PatchTools::subsetMap(), triSurfaceTools::surfaceNormal(), triSurfaceTools::surfaceSide(), triSurfaceTools::triangulateFaceCentre(), boundaryMesh::triangulateLocal(), sampledPatch::update(), patchFaceOrientation::updateEdge(), patchFaceOrientation::updateFace(), AC3DsurfaceFormat< Face >::write(), and meshRefinement::zonify().

Here is the call graph for this function:

Here is the caller graph for this function:

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 408 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::meshPointMap().

Referenced by autoSnapDriver::avgCellCentres(), Foam::meshTools::calcBoxPointNormals(), autoSnapDriver::calcNearestSurface(), addPatchCellLayer::calcSidePatch(), autoSnapDriver::calcSnapDistance(), inversePointDistanceDiffusivity::correct(), patchPatchDist::correct(), cellDistFuncs::correctBoundaryPointCells(), PointEdgeWave< Type, TrackingData >::countPatchType(), cyclicPolyPatch::coupledEdges(), autoSnapDriver::detectNearSurfaces(), extrudePatchMesh::extrudePatchMesh(), mappedPatchBase::findSamples(), combineFaces::getOutsideFace(), globalPoints::globalPoints(), volPointInterpolation::interpolateBoundaryField(), PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), localPointRegion::localPointRegion(), PatchTools::matchEdges(), PatchTools::matchPoints(), globalMeshData::mergePoints(), facePointPatch::meshPoints(), medialAxisMeshMover::move(), polyBoundaryMesh::neighbourEdges(), PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::nPoints(), listPlusEqOp< T >::operator()(), combineEqOp< Type, TrackingData >::operator()(), orientedSurface::orientedSurface(), PatchTools::pointNormals(), motionSmootherAlgo::setDisplacementPatchFields(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), autoSnapDriver::smoothDisplacement(), syncTools::syncEdgeMap(), globalMeshData::syncPointData(), syncTools::syncPointList(), syncTools::syncPointMap(), pointConstraints::syncUntransformedData(), boundaryMesh::triangulateLocal(), patchEdgeFaceInfo::updateEdge(), and medialAxisMeshMover::~medialAxisMeshMover().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::Map< Foam::label > & meshPointMap ( ) const
const Foam::Field< PointType > & localPoints ( ) const

Return pointField of points in patch.

Definition at line 448 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::localPointOrder().

Referenced by booleanSurface::booleanSurface(), mappedPatchBase::calcAMI(), autoSnapDriver::calcNearestSurface(), autoSnapDriver::calcSnapDistance(), cyclicPolyPatch::calcTransforms(), searchableSurfaces::checkIntersection(), PatchTools::checkOrientation(), triSurfaceTools::collapseEdges(), patchPatchDist::correct(), cyclicPolyPatch::coupledEdges(), autoSnapDriver::detectNearSurfaces(), autoSnapDriver::doSnap(), edgeSurface::edgeSurface(), triSurfaceTools::greenRefine(), processorPolyPatch::initOrder(), PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), facePointPatch::localPoints(), triSurfaceTools::maxEdge(), triSurfaceTools::mergePoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPointMap(), meshTriangulation::meshTriangulation(), triSurfaceTools::minEdge(), edgeIntersections::minEdgeLength(), slidingInterface::modifyMotionPoints(), NamedEnum< Enum, nEnum >::names(), surfaceFeatures::nearestEdges(), surfaceFeatures::nearestFeatEdge(), surfaceFeatures::nearestSamples(), surfaceFeatures::nearestSurfEdge(), polyBoundaryMesh::neighbourEdges(), listPlusEqOp< T >::operator()(), processorPolyPatch::order(), pairPatchAgglomeration::pairPatchAgglomeration(), boundaryMesh::readTriSurface(), autoSnapDriver::repatchToSurface(), perfectInterface::setRefinement(), addPatchCellLayer::setRefinement(), autoSnapDriver::smoothDisplacement(), PatchTools::sortedEdgeFaces(), surfaceIntersection::surfaceIntersection(), triSurfaceTools::surfaceSide(), triSurfaceTools::triangulateFaceCentre(), boundaryMesh::triangulateLocal(), surfaceFeatures::trimFeatures(), sampledPatch::update(), AC3DsurfaceFormat< Face >::write(), surfaceLocation::write(), triSurfaceTools::writeOBJ(), surfaceFeatures::writeObj(), and meshRefinement::zonify().

Here is the call graph for this function:

const Foam::labelList & localPointOrder ( ) const

Return orders the local points for most efficient search.

Definition at line 468 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::whichPoint().

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), and PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints().

Here is the call graph for this function:

Here is the caller graph for this function:

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 489 of file PrimitivePatch.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::faceCentres(), and HashTable< T, Key, Hash >::find().

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPointOrder(), and slidingInterface::modifyMotionPoints().

Here is the call graph for this function:

Here is the caller graph for this function:

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 175 of file PrimitivePatchMeshEdges.C.

References forAll, nPoints, and edge::start().

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges(), and slidingInterface::modifyMotionPoints().

Here is the call graph for this function:

Here is the caller graph for this function:

Foam::labelList meshEdges ( const edgeList allEdges,
const labelListList cellEdges,
const labelList faceCells 
) const
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 118 of file PrimitivePatchMeshEdges.C.

References Foam::endl(), forAll, Foam::Info, List< T >::size(), and PrimitivePatch< Face, FaceList, PointField, PointType >::whichEdge().

Here is the call graph for this function:

const Foam::Field< PointType > & faceCentres ( ) const
const Foam::Field< PointType > & faceNormals ( ) const
const Foam::Field< PointType > & pointNormals ( ) const
List<objectHit> projectPoints ( const ToPatch &  targetPatch,
const Field< PointType > &  projectionDirection,
const intersection::algorithm  = intersection::FULL_RAY,
const intersection::direction  = intersection::VECTOR 
) const

Project vertices of patch onto another patch.

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge().

Here is the caller graph for this function:

List<objectHit> projectFaceCentres ( const ToPatch &  targetPatch,
const Field< PointType > &  projectionDirection,
const intersection::algorithm  = intersection::FULL_RAY,
const intersection::direction  = intersection::VECTOR 
) const

Project vertices of patch onto another patch.

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), and PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints().

Here is the caller graph for this function:

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 176 of file PrimitivePatchEdgeLoops.C.

Referenced by combineFaces::getOutsideFace(), and PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge().

Here is the caller graph for this function:

Foam::PrimitivePatch< Face, FaceList, PointField, PointType >::surfaceTopo surfaceType ( ) const

Calculate surface type formed by patch.

Types:

  • all edges have two neighbours (manifold)
  • some edges have more than two neighbours (illegal)
  • other (open)

Definition at line 124 of file PrimitivePatchCheck.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::checkTopology(), Foam::endl(), forAll, Foam::Info, and List< T >::size().

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge().

Here is the call graph for this function:

Here is the caller graph for this function:

bool checkTopology ( const bool  report = false,
labelHashSet setPtr = NULL 
) 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 178 of file PrimitivePatchCheck.C.

References PrimitivePatch< Face, FaceList, PointField, PointType >::checkPointManifold(), edge::end(), Foam::endl(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), List< T >::size(), and edge::start().

Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge(), and PrimitivePatch< Face, FaceList, PointField, PointType >::surfaceType().

Here is the call graph for this function:

Here is the caller graph for this function:

bool checkPointManifold ( const bool  report = false,
labelHashSet setPtr = NULL 
) 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 248 of file PrimitivePatchCheck.C.

References Foam::endl(), Foam::findIndex(), forAll, Foam::Info, HashSet< Key, Hash >::insert(), Foam::constant::atomic::mp, Foam::nl, and List< T >::size().

Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::checkTopology(), and PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge().

Here is the call graph for this function:

Here is the caller graph for this function:

void movePoints ( const Field< PointType > &  )
virtual
void operator= ( const PrimitivePatch< Face, FaceList, PointField, PointType > &  pp)

Assignment.

Definition at line 579 of file PrimitivePatch.C.

Referenced by polyPatch::operator=().

Here is the caller graph for this function:

Foam::List<Foam::objectHit> projectPoints ( const ToPatch &  targetPatch,
const Field< PointType > &  projectionDirection,
const intersection::algorithm  alg,
const intersection::direction  dir 
) const
Foam::List<Foam::objectHit> projectFaceCentres ( const ToPatch &  targetPatch,
const Field< PointType > &  projectionDirection,
const intersection::algorithm  alg,
const intersection::direction  dir 
) const

The documentation for this class was generated from the following files: