--- 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<int N> -struct PolygonType {}; -template<> -struct PolygonType<2> { using type = LineSegment; }; -template<> -struct PolygonType<3> { using type = Triangle; }; -template<> -struct PolygonType<4> { using type = Quadrilateral; }; -template<int N> -using Polygon = typename PolygonType<N>::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<glm::vec3> points; -}; - inline constexpr bool isclose(const glm::vec3& a, const glm::vec3& b) { return qFuzzyCompare(a.x, b.x)