Base class for patch intersections. Provides type name and debugging. See templated derivatives for actual functionality. More...
Public Member Functions | |
ClassName ("patchIntersection") | |
virtual word | type () const =0 |
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 pointField & | points () const |
The intersection points. More... | |
const labelList & | srcPointPoints () const |
The source points' corresponding intersection points. More... | |
const labelList & | tgtPointPoints () 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 faceList & | faces () 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... | |
Protected Member Functions | |
void | report (const word &writeSuffix=word::null) |
Report properties of the intersection process. More... | |
Protected Attributes | |
DynamicField< point > | points_ |
The intersection points. More... | |
labelList | srcPointPoints_ |
The source points' corresponding intersection points. More... | |
labelList | tgtPointPoints_ |
The target points' corresponding intersection points. More... | |
DynamicList< label > | pointSrcPoints_ |
The intersection points' corresponding source points, or -1. More... | |
DynamicList< label > | pointTgtPoints_ |
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< label > | pointSrcEdges_ |
The intersection points' source edges, or -1 if the point. More... | |
DynamicList< label > | pointTgtEdges_ |
The intersection points' target edges, or -1 if the point. More... | |
DynamicList< label > | pointSrcFaces_ |
The intersection points' source faces, or -1 if the point. More... | |
DynamicList< label > | pointTgtFaces_ |
The intersection points' target faces, or -1 if the point. More... | |
DynamicList< face > | faces_ |
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< label > | faceSrcFaces_ |
The intersection faces' corresponding source faces, or -1. More... | |
DynamicList< label > | faceTgtFaces_ |
The intersection faces' corresponding target faces, or -1. More... | |
Static Protected Attributes | |
static const bool | orientToSource_ = true |
Flag to set whether the faces of the intersection are oriented the. More... | |
Base class for patch intersections. Provides type name and debugging. See templated derivatives for actual functionality.
Definition at line 50 of file patchIntersection.H.
patchIntersection | ( | const label | srcNPoints, |
const label | tgtNPoints, | ||
const label | srcNEdges, | ||
const label | tgtNEdges, | ||
const label | srcNFaces, | ||
const label | tgtNFaces | ||
) |
Construct given sizes.
Definition at line 149 of file patchIntersection.C.
|
virtual |
Destructor.
Definition at line 185 of file patchIntersection.C.
|
protected |
Report properties of the intersection process.
Definition at line 42 of file patchIntersection.C.
References Foam::decrIndent(), PrimitivePatch< FaceList, PointField >::edgeFaces(), PrimitivePatch< FaceList, PointField >::edges(), Foam::endl(), patchIntersection::faces_, patchIntersection::faceSrcFaces_, patchIntersection::faceTgtFaces_, forAll, Foam::incrIndent(), Foam::indent(), Foam::Info, PrimitivePatch< FaceList, PointField >::localPoints(), Foam::max(), n, PrimitivePatch< FaceList, PointField >::nEdges(), patchIntersection::points_, DynamicList< T, SizeInc, SizeMult, SizeDiv >::resize(), List< T >::size(), patchIntersection::type(), and Foam::vtkWritePolyData::write().
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().
ClassName | ( | "patchIntersection" | ) |
|
pure virtual |
Implemented in TriPatchIntersection< SrcPatchType, TgtPatchType >, primitivePatchIntersection, polyPatchIntersection, and FacePatchIntersection< SrcPatchType, TgtPatchType >.
Referenced by patchIntersection::report().
|
inline |
The intersection points.
Definition at line 30 of file patchIntersectionI.H.
References patchIntersection::points_.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The source points' corresponding intersection points.
Definition at line 37 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The target points' corresponding intersection points.
Definition at line 44 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection points' corresponding source points, or -1.
if the point does not correspond to a source point
Definition at line 51 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection points' corresponding target points, or -1.
if the point does not correspond to a target point
Definition at line 58 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The source edges' intersection points. Ordered along the edge.
Definition at line 65 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The target edges' intersection points. Ordered along the edge.
Definition at line 72 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection points' source edges, or -1 if the point.
is not on a source edge
Definition at line 79 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection points' target edges, or -1 if the point.
is not on a target edge
Definition at line 86 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection points' source faces, or -1 if the point.
did not project into a source face
Definition at line 93 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection points' target faces, or -1 if the point.
did not project into a target face
Definition at line 100 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection faces.
Definition at line 106 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The source faces' intersection faces.
Definition at line 113 of file patchIntersectionI.H.
|
inline |
The target faces' intersection faces.
Definition at line 120 of file patchIntersectionI.H.
|
inline |
The intersection faces' corresponding source faces, or -1.
if the face does not correspond to source face
Definition at line 127 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
inline |
The intersection faces' corresponding target faces, or -1.
if the face does not correspond to target face
Definition at line 134 of file patchIntersectionI.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
staticprotected |
Flag to set whether the faces of the intersection are oriented the.
same way as the source patch (true) or the target patch (false).
Definition at line 58 of file patchIntersection.H.
|
protected |
The intersection points.
Definition at line 66 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), patchIntersection::points(), patchIntersection::report(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().
|
protected |
The source points' corresponding intersection points.
Definition at line 69 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The target points' corresponding intersection points.
Definition at line 72 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The intersection points' corresponding source points, or -1.
if the point does not correspond to a source point
Definition at line 76 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().
|
protected |
The intersection points' corresponding target points, or -1.
if the point does not correspond to a target point
Definition at line 80 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().
|
protected |
The source edges' intersection points. Ordered along the edge.
Definition at line 83 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The target edges' intersection points. Ordered along the edge.
Definition at line 86 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The intersection points' source edges, or -1 if the point.
is not on a source edge
Definition at line 90 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The intersection points' target edges, or -1 if the point.
is not on a target edge
Definition at line 94 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().
|
protected |
The intersection points' source faces, or -1 if the point.
did not project into a source face
Definition at line 104 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The intersection points' target faces, or -1 if the point.
did not project into a target face
Definition at line 108 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().
|
protected |
The intersection faces.
Definition at line 114 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), patchIntersection::report(), and TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection().
|
protected |
The source faces' intersection faces.
Definition at line 117 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The target faces' intersection faces.
Definition at line 120 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection().
|
protected |
The intersection faces' corresponding source faces, or -1.
if the face does not correspond to source face
Definition at line 124 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), and patchIntersection::report().
|
protected |
The intersection faces' corresponding target faces, or -1.
if the face does not correspond to target face
Definition at line 128 of file patchIntersection.H.
Referenced by FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), and patchIntersection::report().