Mesh: Reimplement and unify topology maps #107861
|
@ -110,9 +110,9 @@ template<typename T> struct GroupedSpan {
|
|||
BLI_assert(offsets.total_size() == data.size());
|
||||
HooglyBoogly marked this conversation as resolved
Outdated
|
||||
}
|
||||
|
||||
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
Jacques Lucke
commented
Also add a Also add a `size` and `index_range` method.
|
||||
}
|
||||
|
||||
bool is_empty() const
|
||||
|
|
Loading…
Reference in New Issue
vert_index
->index