Mesh: Reimplement and unify topology maps #107861

Merged
Hans Goudey merged 14 commits from HooglyBoogly/blender:cleanup-unify-mesh-maps into main 2023-05-24 13:17:03 +02:00
1 changed files with 10 additions and 0 deletions
Showing only changes of commit 7a89c4dff5 - Show all commits

View File

@ -115,6 +115,16 @@ template<typename T> struct GroupedSpan {
return this->data.slice(this->offsets[index]);
HooglyBoogly marked this conversation as resolved Outdated

Also add a size and index_range method.

Also add a `size` and `index_range` method.
}
int64_t size() const
{
return this->offsets.size();
}
IndexRange index_range() const
{
return this->offsets.index_range();
}
bool is_empty() const
{
return this->data.size() == 0;