修改了LineTree中一些问题

dev-VirtualTexture
yang.yongquan 2022-12-17 11:25:54 +08:00
parent 2745e8c47b
commit 39602e091d
1 changed files with 2 additions and 2 deletions

View File

@ -45,8 +45,8 @@ namespace Renderer {
public: public:
void init(); void init();
void setLineWidth(double width); void setLineWidth(double width);
LineTree(int lineMin = 3, int width = 0.3) LineTree(int lineMin = 3, double width = 0.3, int type = 0)
: requiredLineMin(lineMin), lineWidth(width), numLine(0), numPoint(0) {} : requiredLineMin(lineMin), lineWidth(width), lineType(type), numLine(0), numPoint(0) {}
void buildLineTree(std::vector<PointVector>& lineSet, double width, int type = 0); void buildLineTree(std::vector<PointVector>& lineSet, double width, int type = 0);
std::vector<BvhTreeData> getPointLineAndBvhTree(std::vector<float>& pointSet, std::vector<GLuint>& lineSet); std::vector<BvhTreeData> getPointLineAndBvhTree(std::vector<float>& pointSet, std::vector<GLuint>& lineSet);
}; };