From 2d874f50a52858d6f8ec8edb8e68f0ab83d6f5e6 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);