From 8feddf872a885e5652ce156c38d0d2495bcea441 Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 29 Nov 2025 16:33:31 +0300 Subject: [PATCH] added conecpt to method --- include/omath/3d_primitives/mesh.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/omath/3d_primitives/mesh.hpp b/include/omath/3d_primitives/mesh.hpp index 2c82e6f..aa2f4d3 100644 --- a/include/omath/3d_primitives/mesh.hpp +++ b/include/omath/3d_primitives/mesh.hpp @@ -30,6 +30,7 @@ namespace omath::primitives public: using NumericType = float; using VertexType = VertType; + private: using Vbo = std::vector; using Vao = std::vector>; @@ -97,6 +98,7 @@ namespace omath::primitives [[nodiscard]] Vector3 vertex_to_world_space(const Vector3& vertex_position) const + requires HasPosition { auto abs_vec = get_to_world_matrix() * mat_column_from_vector(vertex_position);