Mesh: Reimplement and unify topology maps #107861
|
@ -107,17 +107,17 @@ template<typename T> struct GroupedSpan {
|
|||
GroupedSpan() = default;
|
||||
HooglyBoogly marked this conversation as resolved
|
||||
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
Jacques Lucke
commented
`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
Jacques Lucke
commented
Also add a Also add a `size` and `index_range` method.
|
||||
}
|
||||
|
||||
bool is_empty() const
|
||||
{
|
||||
return data.size() == 0;
|
||||
return this->data.size() == 0;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Use
this->
when refering to public data members.