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.

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.

Member Function Documentation

◆ operator-()

part operator- ( ) const
inline

Negate this part.

Definition at line 102 of file intersectionPatchToPatch.H.

References 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 108 of file intersectionPatchToPatch.H.

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

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 122 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 128 of file intersectionPatchToPatch.H.

◆ operator!=

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

Inequality comparison.

Definition at line 134 of file intersectionPatchToPatch.H.

◆ operator<<

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

Output stream operator.

Definition at line 140 of file intersectionPatchToPatch.H.

◆ operator>>

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

Input stream operator.

Definition at line 146 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+=(), and intersection::srcBoxStatic().

◆ centre

point centre

The centre of this part.

Definition at line 71 of file intersectionPatchToPatch.H.

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


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