Commit d1c71af7 authored by Philip Trettner's avatar Philip Trettner
Browse files

convenience conversion

parent bfe307a3
......@@ -60,6 +60,7 @@ struct primitive_handle
bool operator!=(handle_t const& rhs) const { return mesh != rhs.mesh || idx != rhs.idx; }
explicit operator int() const { return (int)idx; }
operator index_t() const { return idx; }
/// indexes this primitive by a functor
/// also works for attributes
......
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