ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 #ifndef __POINTCLOUD_H 00014 #define __POINTCLOUD_H 00015 00016 // --- project includes --- 00017 #include "Foundation/vec3.h" 00018 #include "Geometry/Plane.h" 00019 00020 // --- STL includes --- 00021 #include <vector> 00022 00023 using std::vector; 00024 00033 class PointCloud 00034 { 00035 private: 00036 vector<Vec3> m_points; 00037 00038 public: 00039 PointCloud(); 00040 00041 Vec3 getCenter(); 00042 void addPoint(const Vec3&); 00043 Plane getFitPlane(); 00044 }; 00045 00046 #endif // __POINTCLOUD_H