-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBBox.h
More file actions
42 lines (25 loc) · 701 Bytes
/
BBox.h
File metadata and controls
42 lines (25 loc) · 701 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef __BBOX_H__
#define __BBOX_H__
#include <vector>
#include <limits>
#include "ofMain.h"
#include "Particle.h"
class BBox
{
private:
//private data members to store min and max values
ofVec3f min ;
ofVec3f max ;
public:
BBox() ;
~BBox() ;
/*---------------------------track bounds of OFMESH-------------------------*/
//ofMesh is a vector of ofVec3f vertices so this should work for a generic
//version which accepts a vector<ofVec3f> to track.
void trackBounds( const std::vector<ofVec3f> &meshVertices ) ;
//////////////////////////////////////////////////////////////////////////////
void draw(const ofColor &color) ;
ofVec3f& getMin() ;
ofVec3f& getMax() ;
};
#endif