Flow123d  jenkins-Flow123d-linux-release-multijob-282
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
void ComputeVolume()
void SetPoints(const TPoint &P1, const TPoint &P2, const TPoint &P3, const TPoint &P4)
TAbscissa * A1
Definition: tetrahedron.h:22
double GetMin(int) const
const TPoint & GetPoint(int) const
Definition: tetrahedron.cpp:92
double GetMax(int) const
TTriangle T2
Definition: tetrahedron.h:18
TTriangle T4
Definition: tetrahedron.h:20
static int numberInstance
Definition: tetrahedron.h:9
TAbscissa * A4
Definition: tetrahedron.h:25
const TTriangle & GetTriangle(int) const
Definition: tetrahedron.cpp:60
static int getNumInstances()
Definition: tetrahedron.h:51
TAbscissa * A2
Definition: tetrahedron.h:23
Definition: point.h:10
double volume
Definition: tetrahedron.h:29
const TAbscissa & GetAbscissa(int) const
Definition: tetrahedron.cpp:74
TAbscissa * A6
Definition: tetrahedron.h:27
TTriangle T3
Definition: tetrahedron.h:19
TTriangle T1
Definition: tetrahedron.h:17
double GetVolume()
TAbscissa * A3
Definition: tetrahedron.h:24
int generateId()
Definition: tetrahedron.cpp:10
TAbscissa * A5
Definition: tetrahedron.h:26
bool IsInner(const TPoint &) const