Curves: Add simplify_curve_attribute function #118560

Merged
Falk David merged 17 commits from filedescriptor/blender:curves-resample-adaptive into main 2024-03-26 15:28:22 +01:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit ad5ea59f47 - Show all commits

View File

@ -58,7 +58,7 @@ static void ramer_douglas_peucker(const IndexRange range,
/* Mark all points to be kept. */
points_to_delete.slice(range).fill(false);
filedescriptor marked this conversation as resolved
Review

Maybe give this a slightly larger inline buffer to avoid allocations for every curve

Maybe give this a slightly larger inline buffer to avoid allocations for every curve
Stack<IndexRange> stack;
Stack<IndexRange, 32> stack;
stack.push(range);
while (!stack.is_empty()) {
const IndexRange sub_range = stack.pop();