ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/math/AlphaHull.hpp
(Generate patch)

Comparing branches/development/src/math/AlphaHull.hpp (file contents):
Revision 1850 by gezelter, Wed Feb 20 15:39:39 2013 UTC vs.
Revision 1866 by gezelter, Thu Apr 25 14:32:56 2013 UTC

# Line 60 | Line 60
60   #include <vector>
61   #include <string>
62  
63 <
63 > using namespace std;
64   namespace OpenMD {
65    class AlphaHull : public Hull {
66    public:
67 <
68 <    AlphaHull(double alpha);    
67 >    
68 >    AlphaHull(RealType alpha);    
69      virtual ~AlphaHull(){};
70 <
71 <    void computeHull( std::vector<StuntDouble*> bodydoubles );
72 <
70 >    
71 >    void computeHull( vector<StuntDouble*> bodydoubles );
72 >    
73      /* Total area of Hull*/
74 <    RealType getArea(){return area_;}
75 <
74 >    RealType getArea(){ return area_; }
75 >    
76      /* Total Volume enclosed by Hull */
77      RealType getVolume(){ return volume_; }
78 <
79 <    std::vector<Triangle> getMesh(){return Triangles_;}
78 >    
79 >    vector<Triangle> getMesh(){ return Triangles_; }
80      void printHull(const std::string& geomFileName);
81 <
81 >    
82    protected:
83      RealType volume_;
84      RealType area_;
85 +    Mat3x3d boundingBox_;
86      int dim_;
87 <    double alpha_;
87 >    RealType alpha_;
88      const std::string options_;
89      
90    private:
91 <    std::vector<Triangle> Triangles_;
91 >    vector<Triangle> Triangles_;
92    };
93   }
94 < #endif /*MATH_CONVEXHULL_HPP_*/
94 > #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines