From 68505a77aecb7bbcb4c406ebf51754c5c1cd97a5 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 26 Jan 2026 18:59:34 +0300 Subject: [PATCH] fix --- include/omath/3d_primitives/box.hpp | 2 +- include/omath/3d_primitives/plane.hpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/omath/3d_primitives/box.hpp b/include/omath/3d_primitives/box.hpp index d93d401..1454e85 100644 --- a/include/omath/3d_primitives/box.hpp +++ b/include/omath/3d_primitives/box.hpp @@ -13,7 +13,7 @@ namespace omath::primitives { using BoxMesh = Mesh, - std::array, 8>, std::array, 12>>; + std::array, 8>, std::array, 12>>; template [[nodiscard]] diff --git a/include/omath/3d_primitives/plane.hpp b/include/omath/3d_primitives/plane.hpp index 0355504..f6c53a8 100644 --- a/include/omath/3d_primitives/plane.hpp +++ b/include/omath/3d_primitives/plane.hpp @@ -14,7 +14,8 @@ namespace omath::primitives { using PlaneMesh = Mesh, - std::array, 4>, std::array, 6>>; + std::array, 4>, std::array, 2>>; + template [[nodiscard]] PlaneMesh create_plane(const Vector3& vertex_a, const Vector3& vertex_b, const Vector3& direction, const float size) noexcept @@ -24,8 +25,9 @@ namespace omath::primitives std::array, 4> grid = {vertex_a, vertex_b, second_vertex_a, second_vertex_b}; - std::array, 6> poly; - poly[0] = {}; + std::array, 2> poly; + poly[0] = {1, 1, 2}; + poly[1] = {0, 1, 3}; return PlaneMesh(std::move(grid), std::move(poly)); }