|
|
|
PrimitivePatch< Face, FaceList, PointField, PointType > Class Template ReferenceA list of faces which address into the list of points. More...
Inheritance diagram for PrimitivePatch< Face, FaceList, PointField, PointType >:
![]()
Collaboration diagram for PrimitivePatch< Face, FaceList, PointField, PointType >:
![]()
Detailed Descriptiontemplate<class Face, template< class > class FaceList, class PointField, class PointType = point>
A list of faces which address into the list of points.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| typedef Face FaceType |
Definition at line 93 of file PrimitivePatch.H.
| typedef FaceList<Face> FaceListType |
Definition at line 94 of file PrimitivePatch.H.
| typedef PointField PointFieldType |
Definition at line 95 of file PrimitivePatch.H.
| enum surfaceTopo |
Enumeration defining the surface type. Used in check routines.
Definition at line 101 of file PrimitivePatch.H.
| PrimitivePatch | ( | const FaceList< Face > & | faces, | |
| const Field< PointType > & | points | |||
| ) | [inline] |
| PrimitivePatch | ( | FaceList< Face > & | faces, | |
| Field< PointType > & | points, | |||
| const bool | reUse | |||
| ) | [inline] |
| PrimitivePatch | ( | const PrimitivePatch< Face, FaceList, PointField, PointType > & | pp | ) | [inline] |
| ~PrimitivePatch | ( | ) | [inline, virtual] |
Definition at line 144 of file PrimitivePatch.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::clearOut().

| void clearOut | ( | ) | [inline] |
Reimplemented in distributedTriSurfaceMesh, triSurfaceMesh, surfMesh, and triSurface.
Definition at line 130 of file PrimitivePatchClear.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::clearGeom(), PrimitivePatch< Face, FaceList, PointField, PointType >::clearPatchMeshAddr(), and PrimitivePatch< Face, FaceList, PointField, PointType >::clearTopology().
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::~PrimitivePatch().


| void clearGeom | ( | ) | [inline] |
Reimplemented in surfMesh.
Definition at line 37 of file PrimitivePatchClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Info.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::clearOut(), and PrimitivePatch< Face, FaceList, PointField, PointType >::movePoints().


| void clearTopology | ( | ) | [inline] |
Reimplemented in triSurface.
Definition at line 62 of file PrimitivePatchClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Info.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::clearOut().


| void clearPatchMeshAddr | ( | ) | [inline] |
Reimplemented in triSurface.
Definition at line 104 of file PrimitivePatchClear.C.
References Foam::deleteDemandDrivenData(), Foam::endl(), and Foam::Info.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::clearOut().


| const Field<PointType>& points | ( | ) | const [inline] |
Return reference to global points.
Reimplemented in sampledIsoSurfaceCell, sampledPatch, sampledPlane, sampledThresholdCellFaces, and surfMesh.
Definition at line 274 of file PrimitivePatch.H.
Referenced by PatchTools::checkOrientation(), triSurfaceTools::classify(), sampledCuttingPlane::points(), sampledIsoSurface::points(), distanceSurface::points(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), and surfaceLocation::write().

| label nPoints | ( | ) | const [inline] |
Return number of points supporting patch faces.
Reimplemented in surfMesh.
Definition at line 285 of file PrimitivePatch.H.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints(), PatchTools::subsetMap(), and PrimitivePatch< Face, FaceList, PointField, PointType >::whichEdge().

| label nEdges | ( | ) | const [inline] |
Return number of edges in patch.
Definition at line 291 of file PrimitivePatch.H.
Referenced by PatchTools::checkOrientation().

| const Foam::edgeList & edges | ( | ) | const [inline] |
Return list of edges, address into LOCAL point list.
Definition at line 190 of file PrimitivePatch.C.
Referenced by PatchTools::checkOrientation(), PrimitivePatch< Face, FaceList, PointField, PointType >::checkTopology(), PatchTools::edgeOwner(), triSurfaceTools::getVertexTriangles(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges(), triSurfaceTools::minEdge(), surfaceFeatures::nearestEdges(), PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::nEdges(), PatchTools::sortedEdgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::whichEdge(), and surfaceLocation::write().

| Foam::label nInternalEdges | ( | ) | const [inline] |
Number of internal edges.
Definition at line 211 of file PrimitivePatch.C.
Referenced by PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::isInternalEdge().

| bool isInternalEdge | ( | const label | edgeI | ) | const [inline] |
| const Foam::labelList & boundaryPoints | ( | ) | const [inline] |
Return list of boundary points,.
address into LOCAL point list
Definition at line 232 of file PrimitivePatch.C.
| const Foam::labelListList & faceFaces | ( | ) | const [inline] |
Return face-face addressing.
Definition at line 253 of file PrimitivePatch.C.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::projectFaceCentres().

| const Foam::labelListList & edgeFaces | ( | ) | const [inline] |
Return edge-face addressing.
Definition at line 274 of file PrimitivePatch.C.
Referenced by PatchTools::checkOrientation(), PrimitivePatch< Face, FaceList, PointField, PointType >::checkPointManifold(), PrimitivePatch< Face, FaceList, PointField, PointType >::checkTopology(), PatchTools::edgeOwner(), triSurfaceTools::getVertexTriangles(), PatchTools::markZone(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges(), surfaceLocation::normal(), triSurfaceTools::otherFace(), PatchTools::sortedEdgeFaces(), and PrimitivePatch< Face, FaceList, PointField, PointType >::surfaceType().

| const Foam::labelListList & faceEdges | ( | ) | const [inline] |
Return face-edge addressing.
Definition at line 295 of file PrimitivePatch.C.
Referenced by PatchTools::checkOrientation(), triSurfaceTools::classify(), and PatchTools::markZone().

| const Foam::labelListList & pointEdges | ( | ) | const [inline] |
Return point-edge addressing.
Definition at line 316 of file PrimitivePatch.C.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::checkPointManifold(), and PrimitivePatch< Face, FaceList, PointField, PointType >::whichEdge().

| const Foam::labelListList & pointFaces | ( | ) | const [inline] |
Return point-face addressing.
Definition at line 337 of file PrimitivePatch.C.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::checkPointManifold(), and triSurfaceTools::getVertexTriangles().

| const Foam::List< Face > & localFaces | ( | ) | const [inline] |
Return patch faces addressing into local point list.
Definition at line 358 of file PrimitivePatch.C.
Referenced by PatchTools::checkOrientation(), triSurfaceTools::classify(), PatchTools::edgeOwner(), PatchTools::sortedEdgeFaces(), and PatchTools::subsetMap().

| const Foam::labelList & meshPoints | ( | ) | const [inline] |
Return labelList of mesh points in patch. They are constructed.
walking through the faces in incremental order and not sorted anymore.
Definition at line 379 of file PrimitivePatch.C.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::checkPointManifold(), PrimitivePatch< Face, FaceList, PointField, PointType >::checkTopology(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges(), PrimitivePatch< face,::Foam::UList,::Foam::SubField< point >, point >::nPoints(), and PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints().

| const Foam::Map< Foam::label > & meshPointMap | ( | ) | const [inline] |
Mesh point map. Given the global point index find its.
location in the patch
Definition at line 400 of file PrimitivePatch.C.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::whichPoint().

| const Foam::Field< PointType > & localPoints | ( | ) | const [inline] |
Return pointField of points in patch.
Definition at line 421 of file PrimitivePatch.C.
Referenced by PatchTools::checkOrientation(), triSurfaceTools::minEdge(), surfaceFeatures::nearestEdges(), PatchTools::sortedEdgeFaces(), and surfaceLocation::write().

| const Foam::labelList & localPointOrder | ( | ) | const [inline] |
Return orders the local points for most efficient search.
Definition at line 442 of file PrimitivePatch.C.
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::projectPoints().

| Foam::label whichPoint | ( | const label | gp | ) | const [inline] |
Given a global point index, return the local point index.
If the point is not found, return -1
Definition at line 464 of file PrimitivePatch.C.
References HashTable< T, Key, Hash >::find(), and PrimitivePatch< Face, FaceList, PointField, PointType >::meshPointMap().

| Foam::label whichEdge | ( | const edge & | e | ) | const [inline] |
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 173 of file PrimitivePatchMeshEdges.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::pointEdges(), and edge::start().

| Foam::labelList meshEdges | ( | const edgeList & | allEdges, | |
| const labelListList & | cellEdges, | |||
| const labelList & | faceCells | |||
| ) | const [inline] |
Return labels of patch edges in the global edge list using.
cell addressing
Definition at line 37 of file PrimitivePatchMeshEdges.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), Foam::endl(), forAll, Foam::Info, and PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints().
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges().


| Foam::labelList meshEdges | ( | const edgeList & | allEdges, | |
| const labelListList & | pointEdges | |||
| ) | const [inline] |
Return labels of patch edges in the global edge list using.
basic edge addressing.
Definition at line 115 of file PrimitivePatchMeshEdges.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), Foam::endl(), forAll, Foam::Info, PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges(), and PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints().

| const Foam::Field< PointType > & faceNormals | ( | ) | const [inline] |
Return face normals for patch.
Definition at line 492 of file PrimitivePatch.C.
Referenced by PatchTools::checkOrientation(), and surfaceLocation::normal().

| const Foam::Field< PointType > & pointNormals | ( | ) | const [inline] |
Return point normals for patch.
Definition at line 513 of file PrimitivePatch.C.
Referenced by surfaceLocation::normal().

| Foam::List< Foam::objectHit > projectPoints | ( | const ToPatch & | targetPatch, | |
| const Field< PointType > & | projectionDirection, | |||
| const intersection::algorithm | alg = intersection::FULL_RAY, |
|||
| const intersection::direction | dir = intersection::VECTOR | |||
| ) | const [inline] |
Project vertices of patch onto another patch.
Definition at line 42 of file PrimitivePatchProjectPoints.C.
References Foam::abort(), Foam::average(), PointHit< Point >::distance(), PointHit< Point >::eligibleMiss(), Foam::endl(), Foam::FatalError, FatalErrorIn, forAll, PointHit< Point >::hit(), Foam::Info, PrimitivePatch< Face, FaceList, PointField, PointType >::localPointOrder(), Foam::mag(), Foam::magSqr(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), PointHit< Point >::missPoint(), Foam::nl, PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::points(), and List< T >::size().

| Foam::List< Foam::objectHit > projectFaceCentres | ( | const ToPatch & | targetPatch, | |
| const Field< PointType > & | projectionDirection, | |||
| const intersection::algorithm | alg = intersection::FULL_RAY, |
|||
| const intersection::direction | dir = intersection::VECTOR | |||
| ) | const [inline] |
Project vertices of patch onto another patch.
Definition at line 290 of file PrimitivePatchProjectPoints.C.
References Foam::abort(), Foam::bandCompression(), PointHit< Point >::distance(), PointHit< Point >::eligibleMiss(), Foam::endl(), PrimitivePatch< Face, FaceList, PointField, PointType >::faceFaces(), Foam::FatalError, FatalErrorIn, forAll, PointHit< Point >::hit(), Foam::Info, Foam::mag(), Foam::magSqr(), PointHit< Point >::missPoint(), Foam::nl, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), and List< T >::size().

| const Foam::labelListList & edgeLoops | ( | ) | const [inline] |
Return list of closed loops of boundary vertices.
Edge loops are given as ordered lists of vertices in local addressing
Definition at line 172 of file PrimitivePatchEdgeLoops.C.
| Foam::PrimitivePatch< Face, FaceList, PointField, PointType >::surfaceTopo surfaceType | ( | ) | const [inline] |
Calculate surface type formed by patch.
Definition at line 118 of file PrimitivePatchCheck.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), Foam::endl(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::ILLEGAL, Foam::Info, PrimitivePatch< Face, FaceList, PointField, PointType >::MANIFOLD, PrimitivePatch< Face, FaceList, PointField, PointType >::OPEN, and List< T >::size().
Referenced by PrimitivePatch< Face, FaceList, PointField, PointType >::checkTopology().


| bool checkTopology | ( | const bool | report = false, |
|
| labelHashSet * | setPtr = NULL | |||
| ) | const [inline] |
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 173 of file PrimitivePatchCheck.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), edge::end(), Foam::endl(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::ILLEGAL, Foam::Info, PrimitivePatch< Face, FaceList, PointField, PointType >::MANIFOLD, PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::OPEN, List< T >::size(), edge::start(), and PrimitivePatch< Face, FaceList, PointField, PointType >::surfaceType().

| bool checkPointManifold | ( | const bool | report = false, |
|
| labelHashSet * | setPtr = NULL | |||
| ) | const [inline] |
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 244 of file PrimitivePatchCheck.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), Foam::endl(), Foam::findIndex(), forAll, Foam::Info, PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), Foam::nl, PrimitivePatch< Face, FaceList, PointField, PointType >::pointEdges(), and PrimitivePatch< Face, FaceList, PointField, PointType >::pointFaces().

| void movePoints | ( | const Field< PointType > & | ) | [inline, virtual] |
Correct patch after moving points.
Definition at line 164 of file PrimitivePatch.C.
References PrimitivePatch< Face, FaceList, PointField, PointType >::clearGeom(), Foam::endl(), and Foam::Pout.

| void operator= | ( | const PrimitivePatch< Face, FaceList, PointField, PointType > & | pp | ) | [inline] |