diff -r 1de2b8d64e9f -r 98906a94732f src/linetypes/triangle.cpp --- a/src/linetypes/triangle.cpp Tue Jan 28 23:34:49 2020 +0200 +++ b/src/linetypes/triangle.cpp Thu Jan 30 19:20:11 2020 +0200 @@ -1,6 +1,6 @@ #include "triangle.h" -linetypes::Triangle::Triangle( +ldraw::Triangle::Triangle( const glm::vec3& point_1, const glm::vec3& point_2, const glm::vec3& point_3, @@ -10,13 +10,13 @@ { } -linetypes::Triangle::Triangle(const QVector& vertices, const Color color) : +ldraw::Triangle::Triangle(const QVector& vertices, const Color color) : ColoredObject{color}, points{vertices[0], vertices[1], vertices[2]} { } -QVariant linetypes::Triangle::getProperty(const Property id) const +QVariant ldraw::Triangle::getProperty(const Property id) const { switch (id) { @@ -31,7 +31,7 @@ } } -auto linetypes::Triangle::setProperty(Property id, const QVariant& value) +auto ldraw::Triangle::setProperty(Property id, const QVariant& value) -> SetPropertyResult { switch (id) @@ -50,7 +50,7 @@ } } -QString linetypes::Triangle::textRepresentation() const +QString ldraw::Triangle::textRepresentation() const { return utility::format("%1 %2 %3", utility::vertexToStringParens(points[0]), @@ -58,7 +58,7 @@ utility::vertexToStringParens(points[2])); } -void linetypes::Triangle::getPolygons( +void ldraw::Triangle::getPolygons( std::vector& polygons, GetPolygonsContext* context) const { @@ -71,7 +71,7 @@ this->id)); } -void linetypes::Triangle::invert() +void ldraw::Triangle::invert() { // 0 1 2 // -> 1 0 2