-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
3,029 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
#include <cassert> | ||
|
||
#define ASSERT(x, ...) assert(x) | ||
#define PVL_ASSERT(x, ...) assert(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,61 @@ | ||
#pragma once | ||
|
||
namespace Pvl {} | ||
#include "Box.hpp" | ||
#include <vector> | ||
|
||
namespace Pvl { | ||
|
||
template <typename Type> | ||
class CloudProperty { | ||
private: | ||
std::vector<Type> values_; | ||
|
||
public: | ||
}; | ||
|
||
|
||
template <typename Vec> | ||
class PointInsideBoxPredicate { | ||
BoundingBox<Vec> box_; | ||
|
||
public: | ||
bool operator()(const Vec& p) const { | ||
return box_.contains(p); | ||
} | ||
}; | ||
|
||
template <typename Iterator, typename Predicate> | ||
class SubsetIterator { | ||
Iterator iter_; | ||
Predicate predicate_; | ||
|
||
public: | ||
SubsetIterator(const Predicate& predicate) | ||
: predicate_(predicate) {} | ||
|
||
SubsetIterator& operator++() { | ||
do { | ||
++iter_; | ||
} while (!predicate_()); | ||
return *this; | ||
} | ||
|
||
bool operator!=(const SubsetIterator& other) const { | ||
return iter_ != other.iter_; | ||
} | ||
}; | ||
|
||
template <typename Predicate> | ||
class CloudSubset { | ||
public: | ||
/*SubsetIterator<Predicate> begin() {} | ||
SubsetIterator<Predicate> end() {}*/ | ||
}; | ||
|
||
template <typename... Properties> | ||
class Cloud : public Properties... {}; | ||
|
||
// using MyCloud = Cloud<Velocity, Normals, Colors, Custom>; | ||
|
||
} // namespace Pvl |
Oops, something went wrong.