diff -r e34d6a30b96d -r 75efc3ba5a56 src/geometry.h --- a/src/geometry.h Mon Apr 10 14:46:36 2023 +0300 +++ b/src/geometry.h Tue Apr 11 11:11:28 2023 +0300 @@ -57,18 +57,6 @@ glm::vec2 p1, p2; }; -// get polygon type from amount of points -template -struct PolygonType {}; -template<> -struct PolygonType<2> { using type = LineSegment; }; -template<> -struct PolygonType<3> { using type = Triangle; }; -template<> -struct PolygonType<4> { using type = Quadrilateral; }; -template -using Polygon = typename PolygonType::type; - /** * @brief Computes a line from two points * @param point_1 @@ -131,11 +119,6 @@ }; unscaled_matrix unscale_matrix(const glm::mat4& matrix); -struct NPolygon -{ - std::vector points; -}; - inline constexpr bool isclose(const glm::vec3& a, const glm::vec3& b) { return qFuzzyCompare(a.x, b.x)