From 15d970670d774d10620fe39c87f85748251601e6 Mon Sep 17 00:00:00 2001 From: mckay Date: Mon, 20 Oct 2025 19:58:37 +0800 Subject: [PATCH] fix: error of incrrect plane of cylinder, key bug is the wrong sequence of {identity_model_matrix_ptr, plane_to_z_model_matrix_ptr, plane_to_z_pos_1_model_matrix_ptr}; --- primitive_process/interface/primitive/simple/cylinder.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitive_process/interface/primitive/simple/cylinder.hpp b/primitive_process/interface/primitive/simple/cylinder.hpp index fa3ffde..f11e151 100644 --- a/primitive_process/interface/primitive/simple/cylinder.hpp +++ b/primitive_process/interface/primitive/simple/cylinder.hpp @@ -21,7 +21,7 @@ struct cylinder_t final : public primitive { stl_vector_mp get_subface_init_model_matrices() const override { - return {plane_to_z_model_matrix_ptr, identity_model_matrix_ptr, plane_to_z_pos_1_model_matrix_ptr}; + return {identity_model_matrix_ptr, plane_to_z_model_matrix_ptr, plane_to_z_pos_1_model_matrix_ptr}; } std::array, 3> subfaces{};