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

Comparing trunk/src/math/ConvexHull.hpp (file contents):
Revision 1879 by gezelter, Sun Jun 16 15:15:42 2013 UTC vs.
Revision 2056 by gezelter, Fri Feb 20 15:12:07 2015 UTC

# Line 71 | Line 71 | namespace OpenMD {
71      void computeHull( std::vector<StuntDouble*> bodydoubles );
72  
73      /* Total area of Hull*/
74 <    RealType getArea(){return area_;}
74 >    RealType getArea(){ return area_;}
75  
76      /* Total Volume enclosed by Hull */
77      RealType getVolume(){ return volume_; }
78  
79    /* Bounding Box for Hull sites */
80    Mat3x3d getBoundingBox(){ return boundingBox_; }
81
79      std::vector<Triangle> getMesh(){return Triangles_;}
80      void printHull(const std::string& geomFileName);
81  
82    protected:
86    RealType volume_;
87    RealType area_;
88    Mat3x3d boundingBox_;
89    int dim_;
83      const std::string options_;
84 +    int dim_;
85      
86    private:
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   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines