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.
References Foam::nan.
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.
References intersection::part::area, face::areaAndCentreStabilised(), intersection::part::centre, Tuple2< Type1, Type2 >::first(), and Tuple2< Type1, Type2 >::second().
|
inline |
Negate this part.
Definition at line 105 of file intersectionPatchToPatch.H.
References intersection::part::area, intersection::part::centre, and intersection::part::part().
|
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-=().
|
inline |
Subtract another part from this one.
Definition at line 125 of file intersectionPatchToPatch.H.
References intersection::part::operator+=().
Equality comparison.
Definition at line 131 of file intersectionPatchToPatch.H.
Inequality comparison.
Definition at line 137 of file intersectionPatchToPatch.H.
Output stream operator.
Definition at line 143 of file intersectionPatchToPatch.H.
Input stream operator.
Definition at line 149 of file intersectionPatchToPatch.H.
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().
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().