Files Classes Functions Hierarchy
#include <quickhull2D.h>
Public Member Functions | |
| quickhull2Drandomized (vector< PT > const &pts_) | |
| Compute the convex hull of the point pts. | |
Public Attributes | |
| vector< PT > const & | pts |
| Global points. | |
| vector< uint > | boundary |
| Points on the hull. | |
O(nlogn) expected complexity in time.
vector<pt2> pts; //fill pts, then calculate the hull. quickhull2Drandomized qh(pts);
Definition at line 71 of file quickhull2D.h.
| quickhull2Drandomized< PT, D >::quickhull2Drandomized | ( | vector< PT > const & | pts_ | ) | [inline] |
Compute the convex hull of the point pts.
Definition at line 210 of file quickhull2D.h.
References quickhull2D< PT, D >::boundary, pts, and vectorshuffle().
00213 : pts(pts_) 00214 { 00215 vector<uint> index; 00216 vector<PT> pts2(pts.begin(),pts.end()); 00217 vectorshuffle(pts2,index); 00218 quickhull2D<PT,D> qh(pts2); 00219 uintc n=qh.boundary.size(); 00220 boundary.resize(n); 00221 for (uint i=0; i<n; ++i) 00222 boundary[i] = index[qh.boundary[i]]; 00223 }
| vector< uint > quickhull2Drandomized< PT, D >::boundary |
Points on the hull.
Definition at line 79 of file quickhull2D.h.
Referenced by quickhull2Dtest::test05().
| vector<PT> const& quickhull2Drandomized< PT, D >::pts |
1.5.8