Geometry Nodes: Rewrite mesh delete geometry node #108435

Merged
Hans Goudey merged 24 commits from HooglyBoogly/blender:delete-mesh-rewrite into main 2023-06-01 14:55:27 +02:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit b886fcac4c - Show all commits

View File

@ -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

The offset_indices:: is not necessary here.

The `offset_indices::` is not necessary here.
threading::parallel_for(offsets.index_range(), 1024, [&](const IndexRange range) {