FacePatchIntersection< SrcPatchType, TgtPatchType > Class Template Reference

Patch intersection based on polygonal faces. This triangulates the supplied patches and passes them to TriPatchIntersection. It then re-combines the triangles that TriPatchIntersection generates. More...

Inheritance diagram for FacePatchIntersection< SrcPatchType, TgtPatchType >:
Collaboration diagram for FacePatchIntersection< SrcPatchType, TgtPatchType >:

Public Member Functions

virtual word type () const
 
 FacePatchIntersection (const SrcPatchType &srcPatch, const TgtPatchType &tgtPatch, const scalar snapTol)
 Construct from a source and a target patch. More...
 
 FacePatchIntersection (const SrcPatchType &srcPatch, const vectorField &srcPointNormals, const TgtPatchType &tgtPatch, const scalar snapTol)
 Construct from a source and a target patch, and specified source. More...
 
virtual ~FacePatchIntersection ()
 Destructor. More...
 
- Public Member Functions inherited from PatchIntersection< SrcPatchType, TgtPatchType >
 PatchIntersection (const SrcPatchType &srcPatch, const TgtPatchType &tgtPatch)
 Construct from a source and a target patch. More...
 
virtual ~PatchIntersection ()
 Destructor. More...
 
const SrcPatchType & srcPatch () const
 The source patch. More...
 
const TgtPatchType & tgtPatch () const
 The target patch. More...
 
- Public Member Functions inherited from patchIntersection
 ClassName ("patchIntersection")
 
 patchIntersection (const label srcNPoints, const label tgtNPoints, const label srcNEdges, const label tgtNEdges, const label srcNFaces, const label tgtNFaces)
 Construct given sizes. More...
 
virtual ~patchIntersection ()
 Destructor. More...
 
const pointFieldpoints () const
 The intersection points. More...
 
const labelListsrcPointPoints () const
 The source points' corresponding intersection points. More...
 
const labelListtgtPointPoints () const
 The target points' corresponding intersection points. More...
 
const DynamicList< label > & pointSrcPoints () const
 The intersection points' corresponding source points, or -1. More...
 
const DynamicList< label > & pointTgtPoints () const
 The intersection points' corresponding target points, or -1. More...
 
const List< DynamicList< label > > & srcEdgePoints () const
 The source edges' intersection points. Ordered along the edge. More...
 
const List< DynamicList< label > > & tgtEdgePoints () const
 The target edges' intersection points. Ordered along the edge. More...
 
const DynamicList< label > & pointSrcEdges () const
 The intersection points' source edges, or -1 if the point. More...
 
const DynamicList< label > & pointTgtEdges () const
 The intersection points' target edges, or -1 if the point. More...
 
const DynamicList< label > & pointSrcFaces () const
 The intersection points' source faces, or -1 if the point. More...
 
const DynamicList< label > & pointTgtFaces () const
 The intersection points' target faces, or -1 if the point. More...
 
const faceListfaces () const
 The intersection faces. More...
 
const List< DynamicList< label > > & srcFaceFaces () const
 The source faces' intersection faces. More...
 
const List< DynamicList< label > > & tgtFaceFaces () const
 The target faces' intersection faces. More...
 
const DynamicList< label > & faceSrcFaces () const
 The intersection faces' corresponding source faces, or -1. More...
 
const DynamicList< label > & faceTgtFaces () const
 The intersection faces' corresponding target faces, or -1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from patchIntersection
void report (const word &writeSuffix=word::null)
 Report properties of the intersection process. More...
 
- Protected Attributes inherited from PatchIntersection< SrcPatchType, TgtPatchType >
const SrcPatchType & srcPatch_
 Reference to the source patch. More...
 
const TgtPatchType & tgtPatch_
 Reference to the target patch. More...
 
- Protected Attributes inherited from patchIntersection
DynamicField< pointpoints_
 The intersection points. More...
 
labelList srcPointPoints_
 The source points' corresponding intersection points. More...
 
labelList tgtPointPoints_
 The target points' corresponding intersection points. More...
 
DynamicList< labelpointSrcPoints_
 The intersection points' corresponding source points, or -1. More...
 
DynamicList< labelpointTgtPoints_
 The intersection points' corresponding target points, or -1. More...
 
List< DynamicList< label > > srcEdgePoints_
 The source edges' intersection points. Ordered along the edge. More...
 
List< DynamicList< label > > tgtEdgePoints_
 The target edges' intersection points. Ordered along the edge. More...
 
DynamicList< labelpointSrcEdges_
 The intersection points' source edges, or -1 if the point. More...
 
DynamicList< labelpointTgtEdges_
 The intersection points' target edges, or -1 if the point. More...
 
DynamicList< labelpointSrcFaces_
 The intersection points' source faces, or -1 if the point. More...
 
DynamicList< labelpointTgtFaces_
 The intersection points' target faces, or -1 if the point. More...
 
DynamicList< facefaces_
 The intersection faces. More...
 
List< DynamicList< label > > srcFaceFaces_
 The source faces' intersection faces. More...
 
List< DynamicList< label > > tgtFaceFaces_
 The target faces' intersection faces. More...
 
DynamicList< labelfaceSrcFaces_
 The intersection faces' corresponding source faces, or -1. More...
 
DynamicList< labelfaceTgtFaces_
 The intersection faces' corresponding target faces, or -1. More...
 
- Static Protected Attributes inherited from patchIntersection
static const bool orientToSource_ = true
 Flag to set whether the faces of the intersection are oriented the. More...
 

Detailed Description

template<class SrcPatchType, class TgtPatchType>
class Foam::FacePatchIntersection< SrcPatchType, TgtPatchType >

Patch intersection based on polygonal faces. This triangulates the supplied patches and passes them to TriPatchIntersection. It then re-combines the triangles that TriPatchIntersection generates.

Source files

Definition at line 52 of file FacePatchIntersection.H.

Constructor & Destructor Documentation

◆ FacePatchIntersection() [1/2]

FacePatchIntersection ( const SrcPatchType &  srcPatch,
const TgtPatchType &  tgtPatch,
const scalar  snapTol 
)

Construct from a source and a target patch.

Definition at line 102 of file FacePatchIntersection.C.

◆ FacePatchIntersection() [2/2]

FacePatchIntersection ( const SrcPatchType &  srcPatch,
const vectorField srcPointNormals,
const TgtPatchType &  tgtPatch,
const scalar  snapTol 
)

Construct from a source and a target patch, and specified source.

point normals

Definition at line 114 of file FacePatchIntersection.C.

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), cpuTime::cpuTimeIncrement(), Foam::decrIndent(), PrimitivePatch< FaceList, PointField >::edgeFaces(), Foam::endl(), f(), TriPatchIntersection< SrcPatchType, TgtPatchType >::faceEdges(), PrimitivePatch< FaceList, PointField >::faceEdges(), patchIntersection::faces(), patchIntersection::faces_, patchIntersection::faceSrcFaces(), patchIntersection::faceSrcFaces_, star::faceStarFaces(), patchIntersection::faceTgtFaces(), patchIntersection::faceTgtFaces_, Foam::findIndex(), forAll, forAllStarEdges, forAllStarFaces, Foam::identityMap(), Foam::incrIndent(), Foam::indent(), Foam::Info, Foam::inplaceRemove(), Foam::inplaceRenumber(), TriPatchIntersection< SrcPatchType, TgtPatchType >::intersectEdgeFaces(), Foam::max(), PrimitivePatch< FaceList, PointField >::meshPoints(), n, PrimitivePatch< FaceList, PointField >::nEdges(), TriPatchIntersection< SrcPatchType, TgtPatchType >::nonIntersectEdgeFaces(), nPoints, PrimitivePatch< FaceList, PointField >::nPoints(), patchIntersection::points(), patchIntersection::points_, patchIntersection::pointSrcEdges(), patchIntersection::pointSrcEdges_, patchIntersection::pointSrcFaces(), patchIntersection::pointSrcFaces_, patchIntersection::pointSrcPoints(), patchIntersection::pointSrcPoints_, patchIntersection::pointTgtEdges(), patchIntersection::pointTgtEdges_, patchIntersection::pointTgtFaces(), patchIntersection::pointTgtFaces_, patchIntersection::pointTgtPoints(), patchIntersection::pointTgtPoints_, star::populate(), Foam::renumber(), Foam::reorder(), patchIntersection::report(), DynamicList< T, SizeInc, SizeMult, SizeDiv >::resize(), Foam::reverseList(), List< T >::size(), patchIntersection::srcEdgePoints(), patchIntersection::srcEdgePoints_, patchIntersection::srcFaceFaces_, PatchIntersection< SrcPatchType, TgtPatchType >::srcPatch(), PatchIntersection< SrcPatchType, TgtPatchType >::srcPatch_, patchIntersection::srcPointPoints(), patchIntersection::srcPointPoints_, star::starEdgeEdges(), patchIntersection::tgtEdgePoints(), patchIntersection::tgtEdgePoints_, patchIntersection::tgtFaceFaces_, PatchIntersection< SrcPatchType, TgtPatchType >::tgtPatch(), PatchIntersection< SrcPatchType, TgtPatchType >::tgtPatch_, patchIntersection::tgtPointPoints(), patchIntersection::tgtPointPoints_, polygonTriangulate::triEdges(), polygonTriangulate::triPoints(), FacePatchIntersection< SrcPatchType, TgtPatchType >::type(), and Foam::vtkWritePolyData::write().

Here is the call graph for this function:

◆ ~FacePatchIntersection()

Destructor.

Definition at line 554 of file FacePatchIntersection.C.

Member Function Documentation

◆ type()

virtual word type ( ) const
inlinevirtual

Implements patchIntersection.

Definition at line 60 of file FacePatchIntersection.H.

References word::capitalise().

Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().

Here is the call graph for this function:
Here is the caller graph for this function:

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