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 3 additions and 3 deletions
Showing only changes of commit 0d645238d5 - Show all commits

View File

@ -107,17 +107,17 @@ template<typename T> struct GroupedSpan {
GroupedSpan() = default;
HooglyBoogly marked this conversation as resolved
Review

Use this-> when refering to public data members.

Use `this->` when refering to public data members.
GroupedSpan(OffsetIndices<int> offsets, Span<T> data) : offsets(offsets), data(data)
{
BLI_assert(offsets.total_size() == data.size());
BLI_assert(this->offsets.total_size() == this->data.size());
HooglyBoogly marked this conversation as resolved Outdated

vert_index -> index

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