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 2 additions and 2 deletions
Showing only changes of commit 17bb24d658 - Show all commits

View File

@ -110,9 +110,9 @@ template<typename T> struct GroupedSpan {
BLI_assert(offsets.total_size() == data.size());
HooglyBoogly marked this conversation as resolved Outdated

vert_index -> index

`vert_index` -> `index`
}
Span<T> operator[](const int64_t vert_index) const
Span<T> operator[](const int64_t index) const
{
return data.slice(offsets[vert_index]);
return data.slice(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.
}
bool is_empty() const