VisPro  1.0
Project of Visualisierung 2
BoundingBox.h
1 #pragma once
2 #include "glm.hpp"
3 #include <vector>
4 class BoundingBox{
5 public:
6  BoundingBox();
7  ~BoundingBox();
8  float minX;
9  float maxX;
10  float minY;
11  float maxY;
12  float minZ;
13  float maxZ;
14  std::vector<glm::vec3> allPoints;
15  bool initialized;
16 
17  // Merge a bounding box into this one
18  void mergeBeforeModelMatrix(BoundingBox* other);
19  void mergeAfterModelMatrix(BoundingBox* other);
20 
21  void apply(glm::mat4 &model);
22 
23  std::vector<glm::vec3> getAllBoundingPoints();
24 
25 };
Definition: BoundingBox.h:4