GenGeo  1.1
MeshVolume.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2007-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 #ifndef __MESH_VOLUME_H
14 #define __MESH_VOLUME_H
15 
16 // --- Project includes ---
17 #include "AVolume3D.h"
18 #include "TriPatchSet.h"
19 #include "util/vector3.h"
20 
21 // --- STL includes ---
22 
33 class MeshVolume : public AVolume3D
34 {
35  protected:
40 
41  double m_random(double,double)const;
42 
43  public:
44  MeshVolume();
45  MeshVolume(const TriPatchSet&);
46  virtual ~MeshVolume(){};
47 
48  virtual pair<Vector3,Vector3> getBoundingBox();
49  virtual Vector3 getAPoint(int) const;
50  virtual const map<double,const AGeometricObject*> getClosestObjects(const Vector3&,int) const;
51  virtual bool isIn(const Vector3&) const;
52  virtual bool isIn(const Sphere&);
53  virtual bool isFullyOutside(const Sphere&);
54 };
55 
56 #endif // __MESH_VOLUME_H