Geometry Nodes: Rewrite mesh delete geometry node #108435
|
@ -36,6 +36,15 @@ void gather_group_sizes(const OffsetIndices<int> offsets,
|
|||
});
|
||||
}
|
||||
|
||||
OffsetIndices<int> gather_selected_offsets(const OffsetIndices<int> src_offsets,
|
||||
const IndexMask &selection,
|
||||
MutableSpan<int> dst_offsets)
|
||||
{
|
||||
BLI_assert(selection.size() == (dst_offsets.size() - 1));
|
||||
offset_indices::gather_group_sizes(src_offsets, selection, dst_offsets);
|
||||
offset_indices::accumulate_counts_to_offsets(dst_offsets);
|
||||
}
|
||||
|
||||
void build_reverse_map(OffsetIndices<int> offsets, MutableSpan<int> r_map)
|
||||
{
|
||||
HooglyBoogly marked this conversation as resolved
Outdated
|
||||
threading::parallel_for(offsets.index_range(), 1024, [&](const IndexRange range) {
|
||||
|
|
Loading…
Reference in New Issue
The
offset_indices::
is not necessary here.