-
Notifications
You must be signed in to change notification settings - Fork 0
/
SingleHouse.h
30 lines (27 loc) · 900 Bytes
/
SingleHouse.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include <vector>
#include "Triangle.h"
struct SingleHouse
{
int count;//顶点个数
std::vector<float> vertexs;//顶点数据
std::vector<unsigned int> indexs;//索引数据
std::vector<float> boundings;//包围盒子 xmin xmax ymin ymax zmin zmax
QVector<Triangle> triangles;//三角剖分的结果
SingleHouse(int count, std::vector<float> vertexs) {
this->count = count;
this->vertexs = vertexs;
//this->indexs = std::vector<unsigned int>();
}
SingleHouse(int count, std::vector<float> vertexs,float xmin,float xmax,float ymin, float ymax,float zmin,float zmax,QVector<Triangle> triangles) {
this->count = count;
this->vertexs = vertexs;
this->boundings.push_back(xmin);
this->boundings.push_back(xmax);
this->boundings.push_back(ymin);
this->boundings.push_back(ymax);
this->boundings.push_back(zmin);
this->boundings.push_back(zmax);
this->triangles = triangles;
}
};