intersection::part Struct Reference

Structure to store the geometry associated with part of a patch. More...

Inheritance diagram for intersection::part:
Collaboration diagram for intersection::part:

Public Member Functions

 part ()
 Default construct. More...
 
 part (const zero &)
 Default construct. More...
 
 part (const vector &a, const point &c)
 Construct from an area and a centre. More...
 
template<class PointField >
 part (const PointField &ps)
 Construct from a polygon. More...
 
part operator- () const
 Negate this part. More...
 
void operator+= (const part &p)
 Add another part to this one. More...
 
void operator-= (const part &p)
 Subtract another part from this one. More...
 

Public Attributes

vector area
 The area of this part. More...
 
point centre
 The centre of this part. More...
 

Friends

bool operator== (const part &a, const part &b)
 Equality comparison. More...
 
bool operator!= (const part &a, const part &b)
 Inequality comparison. More...
 
Ostreamoperator<< (Ostream &os, const part &p)
 Output stream operator. More...
 
Istreamoperator>> (Istream &is, part &p)
 Input stream operator. More...
 

Detailed Description

Structure to store the geometry associated with part of a patch.

face

Definition at line 65 of file intersectionPatchToPatch.H.

Constructor & Destructor Documentation

◆ part() [1/4]

part ( )
inline

Default construct.

Definition at line 74 of file intersectionPatchToPatch.H.

References Foam::nan.

Referenced by intersection::part::operator-().

Here is the caller graph for this function:

◆ part() [2/4]

part ( const zero )
inline

Default construct.

Definition at line 81 of file intersectionPatchToPatch.H.

◆ part() [3/4]

part ( const vector a,
const point c 
)
inline

Construct from an area and a centre.

Definition at line 87 of file intersectionPatchToPatch.H.

◆ part() [4/4]

part ( const PointField ps)
inline

Construct from a polygon.

Definition at line 95 of file intersectionPatchToPatch.H.

References intersection::part::area, face::areaAndCentreStabilised(), intersection::part::centre, Tuple2< Type1, Type2 >::first(), and Tuple2< Type1, Type2 >::second().

Here is the call graph for this function:

Member Function Documentation

◆ operator-()

part operator- ( ) const
inline

Negate this part.

Definition at line 105 of file intersectionPatchToPatch.H.

References intersection::part::area, intersection::part::centre, and intersection::part::part().

Here is the call graph for this function:

◆ operator+=()

void operator+= ( const part p)
inline

Add another part to this one.

Definition at line 111 of file intersectionPatchToPatch.H.

References intersection::part::area, intersection::part::centre, Foam::mag(), and p.

Referenced by intersection::part::operator-=().

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

◆ operator-=()

void operator-= ( const part p)
inline

Subtract another part from this one.

Definition at line 125 of file intersectionPatchToPatch.H.

References intersection::part::operator+=().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator==

bool operator== ( const part a,
const part b 
)
friend

Equality comparison.

Definition at line 131 of file intersectionPatchToPatch.H.

◆ operator!=

bool operator!= ( const part a,
const part b 
)
friend

Inequality comparison.

Definition at line 137 of file intersectionPatchToPatch.H.

◆ operator<<

Ostream& operator<< ( Ostream os,
const part p 
)
friend

Output stream operator.

Definition at line 143 of file intersectionPatchToPatch.H.

◆ operator>>

Istream& operator>> ( Istream is,
part p 
)
friend

Input stream operator.

Definition at line 149 of file intersectionPatchToPatch.H.

Member Data Documentation

◆ area

vector area

The area of this part.

Definition at line 68 of file intersectionPatchToPatch.H.

Referenced by intersection::part::operator+=(), intersection::part::operator-(), and intersection::part::part().

◆ centre

point centre

The centre of this part.

Definition at line 71 of file intersectionPatchToPatch.H.

Referenced by intersection::part::operator+=(), intersection::part::operator-(), and intersection::part::part().


The documentation for this struct was generated from the following file: