添加顶点延长。

This commit is contained in:
xsl
2025-09-28 18:20:50 +08:00
parent 86889c334e
commit 3e33975e2a
2 changed files with 46 additions and 20 deletions
@@ -205,6 +205,7 @@ public:
public:
void update_point_vertex_buffer(float* pos, int pointCount);
void extendPoint(float* pos, int start_id, int end_id, float rate = 1);
void update_face_vertex_buffer(float* pos, int pointCount);
void update_point_vertex_buffer_line(float* pos, int pointCount_line, float r, float g, float b, std::vector<LineVertex>& vertices);
void update_point_vertex_buffer_line_save(std::vector<LineVertex>& vertices);
@@ -212,7 +213,7 @@ public:
bool LoadOBJ(const std::string& filename,std::vector<TextureLoadingVertexStructure>& vertices,std::vector<uint32_t>& indices);
bool LoadOBJ_test(const std::string& filename, std::vector<float>& positions);
private:
std::vector<float> positions_test;
std::vector<TextureLoadingVertexStructure> obj_vertices;
std::vector<uint32_t> obj_indices;
std::map<int, int> obj_vertices_map;