for unique comparing, need to sort the lists:
| 110 | |
| 111 | // for unique comparing, need to sort the lists: |
| 112 | bool OcTreeVolumeSortPredicate(const OcTreeVolume& lhs, const OcTreeVolume& rhs) |
| 113 | { |
| 114 | return ( lhs.second < rhs.second |
| 115 | || (lhs.second == rhs.second && |
| 116 | lhs.first.x() < rhs.first.x() |
| 117 | && lhs.first.y() < rhs.first.y() |
| 118 | && lhs.first.z() < rhs.first.z())); |
| 119 | } |
| 120 | |
| 121 | |
| 122 | double timediff(const timeval& start, const timeval& stop){ |