60 |
|
#include <vector> |
61 |
|
#include <string> |
62 |
|
|
63 |
– |
using namespace std; |
63 |
|
namespace OpenMD { |
64 |
|
class AlphaHull : public Hull { |
65 |
|
public: |
67 |
|
AlphaHull(RealType alpha); |
68 |
|
virtual ~AlphaHull(){}; |
69 |
|
|
70 |
< |
void computeHull( vector<StuntDouble*> bodydoubles ); |
70 |
> |
void computeHull( std::vector<StuntDouble*> bodydoubles ); |
71 |
|
|
72 |
|
/* Total area of Hull*/ |
73 |
|
RealType getArea(){ return area_; } |
79 |
|
void printHull(const std::string& geomFileName); |
80 |
|
|
81 |
|
protected: |
83 |
– |
RealType volume_; |
84 |
– |
RealType area_; |
82 |
|
int dim_; |
83 |
|
RealType alpha_; |
84 |
|
const std::string options_; |
85 |
|
|
86 |
|
private: |
87 |
< |
vector<Triangle> Triangles_; |
87 |
> |
// These variables are private so that each new hull returns |
88 |
> |
// information about itself. |
89 |
> |
RealType volume_; |
90 |
> |
RealType area_; |
91 |
> |
std::vector<Triangle> Triangles_; |
92 |
> |
|
93 |
|
}; |
94 |
|
} |
95 |
|
#endif |