--- a/src/linetypes/quadrilateral.cpp Sun Jan 19 14:25:57 2020 +0200 +++ b/src/linetypes/quadrilateral.cpp Wed Jan 22 00:23:29 2020 +0200 @@ -78,5 +78,12 @@ this->points[2], this->points[3], this->colorIndex, - this->id)); + this->id)); } + +void linetypes::Quadrilateral::invert() +{ + // 0 1 2 3 + // -> 2 1 0 3 + std::swap(this->points[0], this->points[2]); +}