Commit 61d98902 authored by Philip Trettner's avatar Philip Trettner
Browse files

added comps, updated readme

parent 232e4774
......@@ -24,9 +24,9 @@ Best used with glm and glow.
* vertex split?
* half-edge collapse
* normal, tangent, bitangent computation
* attribute iterator
* primitive sort functions, better remap function, cache optimization
* structure of arrays instead of AOS
* lowlevel API that allows direct half-edge manipulation and does not fix boundaries (but also mirrors high level one)
* primitive collection sort and sort_by functions
* paired_with function for smart range
* operator +-*/ for attributes (similar to valarray)
* dual mesh construction
......@@ -26,6 +26,10 @@ struct primitive_index
bool is_invalid() const { return value < 0; }
static index_t invalid() { return {}; }
bool operator<(index_t const& rhs) const { return value < rhs.value; }
bool operator<=(index_t const& rhs) const { return value <= rhs.value; }
bool operator>(index_t const& rhs) const { return value > rhs.value; }
bool operator>=(index_t const& rhs) const { return value >= rhs.value; }
bool operator==(index_t const& rhs) const { return value == rhs.value; }
bool operator!=(index_t const& rhs) const { return value != rhs.value; }
bool operator==(handle_t const& rhs) const { return value == rhs.idx.value; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment