23#define ELE_VERT_ADJUST (1 << 0)
24#define ELE_FACE_ADJUST (1 << 1)
37 const float eps = 0.00001f;
42 float (*faces_center)[3];
43 int i, iter_step, shared_vert_num;
63 }
while ((l_iter = l_iter->
next) != l_first);
69 vaccum_map.
reserve(shared_vert_num);
71 for (iter_step = 0; iter_step < iterations; iter_step++) {
101 }
while ((l_iter = l_iter->
next) != l_first);
104 for (
const auto &item : vaccum_map.
items()) {
124 if (changed ==
false) {
131 MEM_delete(faces_center);
Read Blender memory allocation and freeing.
#define BM_FACE_FIRST_LOOP(p)
#define BM_ITER_ELEM(ele, iter, data, itype)
#define BMO_ITER_INDEX(ele, iter, slot_args, slot_name, restrict_flag, i_)
#define BMO_vert_flag_enable(bm, e, oflag)
#define BMO_face_flag_enable(bm, e, oflag)
#define BMO_vert_flag_test(bm, e, oflag)
#define BMO_face_flag_disable(bm, e, oflag)
#define BMO_face_flag_test(bm, e, oflag)
Value & lookup_or_add_default(const Key &key)
ItemIterator items() const &
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
MINLINE float len_squared_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
int BMO_slot_int_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
int BMO_slot_buffer_len(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
void bmo_planar_faces_exec(BMesh *bm, BMOperator *op)
float BMO_slot_float_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
ATTR_WARN_UNUSED_RESULT const BMVert * v
void closest_to_plane_normalized_v3(float r_close[3], const float plane[4], const float pt[3])
void plane_from_point_normal_v3(float r_plane[4], const float plane_co[3], const float plane_no[3])
void BM_face_normal_update(BMFace *f)
void interp_v3_v3v3(float r[3], const float a[3], const float b[3], float t)
MINLINE float square_f(float a)
void BM_face_calc_center_median_weighted(const BMFace *f, float r_cent[3])
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
struct BMOpSlot slots_in[BMO_OP_MAX_SLOTS]