--- trunk/src/math/ConvexHull.hpp 2007/05/29 22:50:14 1137 +++ trunk/src/math/ConvexHull.hpp 2007/05/30 18:47:04 1141 @@ -45,7 +45,7 @@ * * Created by Charles F. Vardeman II on 11 Dec 2006. * @author Charles F. Vardeman II - * @version $Id: ConvexHull.hpp,v 1.2 2007-05-29 22:50:14 chuckv Exp $ + * @version $Id: ConvexHull.hpp,v 1.3 2007-05-30 18:47:04 chuckv Exp $ * */ @@ -59,42 +59,36 @@ extern "C" #include extern "C" { -#include -#include -#include -#include -#include -#include -#include -#include +#include "QuickHull/qhull.h" +#include "QuickHull/mem.h" +#include "QuickHull/qset.h" +#include "QuickHull/geom.h" +#include "QuickHull/merge.h" +#include "QuickHull/poly.h" +#include "QuickHull/io.h" +#include "QuickHull/stat.h" } -namespace oopse - { - - class ConvexHull - { - - public: - ConvexHull(); - ~ConvexHull(); - bool genHull(std::vector pos); - std::vector getHull(); - RealType getVolume(); - RealType getRadius(); - RealType getInscribedRadius(); - void geomviewHull(const std::string& geomFileName); - private: - - double volume_; - - } - ; - - +namespace oopse { + class ConvexHull { + public: + ConvexHull(); + virtual ~ConvexHull() {} + bool genHull(std::vector pos); + //std::vector getHull(); + RealType getVolume(); + //RealType getRadius(); + // RealType getInscribedRadius(); + void geomviewHull(const std::string& geomFileName); + protected: + double volume_; + double area_; + int dim_; + const std::string options_; + + }; } - #endif /*MATH_CONVEXHULL_HPP_*/