Curves: initial surface collision for curves sculpt mode #104469
@ -71,6 +71,9 @@ IndexMask find_indices_from_virtual_array(IndexMask indices_to_check,
|
|||||||
int64_t parallel_grain_size,
|
int64_t parallel_grain_size,
|
||||||
Vector<int64_t> &r_indices);
|
Vector<int64_t> &r_indices);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Find the true indices in a boolean span.
|
||||||
|
*/
|
||||||
IndexMask find_indices_from_array(Span<bool> array, Vector<int64_t> &r_indices);
|
IndexMask find_indices_from_array(Span<bool> array, Vector<int64_t> &r_indices);
|
||||||
|
|
||||||
} // namespace blender::index_mask_ops
|
} // namespace blender::index_mask_ops
|
||||||
|
@ -241,7 +241,7 @@ IndexMask find_indices_from_virtual_array(const IndexMask indices_to_check,
|
|||||||
return detail::find_indices_based_on_predicate__merge(indices_to_check, sub_masks, r_indices);
|
return detail::find_indices_based_on_predicate__merge(indices_to_check, sub_masks, r_indices);
|
||||||
}
|
}
|
||||||
|
|
||||||
IndexMask find_indices_from_array(Span<bool> array, Vector<int64_t> &r_indices)
|
IndexMask find_indices_from_array(const Span<bool> array, Vector<int64_t> &r_indices)
|
||||||
JacquesLucke marked this conversation as resolved
|
|||||||
{
|
{
|
||||||
return find_indices_based_on_predicate(
|
return find_indices_based_on_predicate(
|
||||||
array.index_range(), 2048, r_indices, [array](const int64_t i) { return array[i]; });
|
array.index_range(), 2048, r_indices, [array](const int64_t i) { return array[i]; });
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||||
|
|
||||||
#include "BLI_math_matrix.hh"
|
#include "BLI_math_matrix.hh"
|
||||||
|
#include "BLI_task.hh"
|
||||||
|
|
||||||
#include "GEO_curve_constraint_solver.hh"
|
#include "GEO_curve_constraint_solver.hh"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
Can't seem to add a comment there, but this can replace
above.