Flow123d
tetrahedron.h
Go to the documentation of this file.
1 #ifndef tetrahedronH
2 #define tetrahedronH
3 
4 #include "point.h"
5 #include "triangle.h"
6 
7 class TTetrahedron {
8 private:
9  static int numberInstance;
10  int id;
11 
16 
21 
28 
29  double volume;
30 
31  int generateId();
32  void ComputeVolume();
33 
34 public:
35  TTetrahedron();
36  TTetrahedron(const TPoint&, const TPoint&, const TPoint&, const TPoint&);
37  ~TTetrahedron();
38 
39  const TTriangle &GetTriangle(int) const;
40  const TAbscissa &GetAbscissa(int) const;
41  const TPoint &GetPoint(int) const;
42 
43  double GetMin(int) const;
44  double GetMax(int) const;
45 
46  double GetVolume();
47 
48  void SetPoints(const TPoint& P1, const TPoint& P2, const TPoint& P3, const TPoint& P4);
49  bool IsInner(const TPoint&) const;
50 
51  static int getNumInstances() {
53  }
54 };
55 #endif