Structure to store the geometry associated with part of a patch. More...
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... | |
Ostream & | operator<< (Ostream &os, const part &p) |
Output stream operator. More... | |
Istream & | operator>> (Istream &is, part &p) |
Input stream operator. More... | |
Structure to store the geometry associated with part of a patch.
face
Definition at line 65 of file intersectionPatchToPatch.H.
|
inline |
Default construct.
Definition at line 74 of file intersectionPatchToPatch.H.
Referenced by intersection::part::operator-().
Default construct.
Definition at line 81 of file intersectionPatchToPatch.H.
Construct from an area and a centre.
Definition at line 87 of file intersectionPatchToPatch.H.
|
inline |
Construct from a polygon.
Definition at line 95 of file intersectionPatchToPatch.H.
|
inline |
Negate this part.
Definition at line 102 of file intersectionPatchToPatch.H.
References intersection::part::part().
|
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-=().
|
inline |
Subtract another part from this one.
Definition at line 122 of file intersectionPatchToPatch.H.
References intersection::part::operator+=().
Equality comparison.
Definition at line 128 of file intersectionPatchToPatch.H.
Inequality comparison.
Definition at line 134 of file intersectionPatchToPatch.H.
Output stream operator.
Definition at line 140 of file intersectionPatchToPatch.H.
Input stream operator.
Definition at line 146 of file intersectionPatchToPatch.H.
vector area |
The area of this part.
Definition at line 68 of file intersectionPatchToPatch.H.
Referenced by intersection::part::operator+=(), and intersection::srcBoxStatic().
point centre |
The centre of this part.
Definition at line 71 of file intersectionPatchToPatch.H.
Referenced by intersection::part::operator+=(), and intersection::srcBoxStatic().