Class representing a circular order of a set of points around their barycenter. More...
Public Types | |
| enum | CoordType { XY, XZ, YZ } |
Enumeration of different planes to project on when calculating order. More... | |
Public Member Functions | |
| ProjectedCentralCircularSortOrder (const double *barycenter, const CoordType type) | |
| Constructor. | |
| bool | operator() (const double *pt1, const double *pt2) |
| Comparison operator. | |
Private Attributes | |
| const int | _aIdx |
| index corresponding to first coordinate of plane on which points are projected | |
| const int | _bIdx |
| index corresponding to second coordinate of plane on which points are projected | |
| const double | _a |
| value of first projected coordinate of the barycenter | |
| const double | _b |
| value of second projected coordinate of the barycenter | |
Class representing a circular order of a set of points around their barycenter.
It is used with the STL sort() algorithm to sort the point of the two polygons
| INTERP_KERNEL.ProjectedCentralCircularSortOrder.ProjectedCentralCircularSortOrder | ( | const double * | barycenter, |
| const CoordType | type | ||
| ) |
Constructor.
| barycenter | double[3] containing the barycenter of the points to be compared |
| type | plane to project on when comparing. The comparison will not work if all the points are in a plane perpendicular to the plane being projected on |
| bool INTERP_KERNEL.ProjectedCentralCircularSortOrder.operator() | ( | const double * | pt1, |
| const double * | pt2 | ||
| ) |
Comparison operator.
Compares the relative position between two points in their ordering around the barycenter.
| pt1 | a double[3] representing a point |
| pt2 | a double[3] representing a point |
References INTERP_KERNEL.ProjectedCentralCircularSortOrder._a, INTERP_KERNEL.ProjectedCentralCircularSortOrder._aIdx, INTERP_KERNEL.ProjectedCentralCircularSortOrder._b, and INTERP_KERNEL.ProjectedCentralCircularSortOrder._bIdx.
const int INTERP_KERNEL.ProjectedCentralCircularSortOrder._aIdx [private] |
index corresponding to first coordinate of plane on which points are projected
const int INTERP_KERNEL.ProjectedCentralCircularSortOrder._bIdx [private] |
index corresponding to second coordinate of plane on which points are projected
const double INTERP_KERNEL.ProjectedCentralCircularSortOrder._a [private] |
value of first projected coordinate of the barycenter
const double INTERP_KERNEL.ProjectedCentralCircularSortOrder._b [private] |
value of second projected coordinate of the barycenter