57 float mat[4][4], mat_space[4][4], imat_space[4][4];
75 if (shape_keys_len != 0) {
76 float (*co_dst)[3] =
static_cast<float (*)[3]
>(
78 for (
int i = 0; i < shape_keys_len; i++, co_dst++) {
87 float mat[4][4], vec[3];
96 "transform matrix=%m4 space=%s verts=%s use_shapekey=%s",
108 float mat[3][3], vec[3];
119 "transform matrix=%m3 space=%s verts=%s use_shapekey=%s",
140 "transform matrix=%m4 space=%s verts=%s use_shapekey=%s",
178 bool changed =
false;
209 }
while ((l_iter = l_iter->
next) != l_first);
214 const bool use_faces,
215 const bool use_faces_step)
238 if (!use_faces_step) {
285 if (!use_faces_step) {
316 const bool use_faces,
317 const bool use_faces_step)
327 if (!use_faces_step) {
386 if (!use_faces_step) {
447 int i, j, clipx, clipy, clipz;
448 int xaxis, yaxis, zaxis;
480 if (clipx &&
fabsf(
v->
co[0]) <= clip_dist) {
483 if (clipy &&
fabsf(
v->
co[1]) <= clip_dist) {
486 if (clipz &&
fabsf(
v->
co[2]) <= clip_dist) {
526 if (cd_loop_uv_offset != -1) {
528 if (use_ccw ==
false) {
611 if (cd_loop_uv_offset != -1) {
626 int *r_cd_color_offset,
627 std::optional<eCustomDataType> *r_cd_color_type)
632 if (color_index ==
index) {
633 *r_cd_color_offset =
layer.offset;
640 *r_cd_color_offset = -1;
653 int cd_loop_color_offset;
654 std::optional<eCustomDataType> cd_loop_color_type;
657 if (cd_loop_color_offset == -1) {
664 void *t_col = alloca(size);
667 if (use_ccw ==
false) {
681 memcpy(t_col, lcol, size);
682 memcpy(lcol, p_col, size);
683 memcpy(p_col, t_col, size);
688 memcpy(f_lcol, p_col, size);
700 memcpy(t_col, lcol, size);
703 memcpy(p_lcol, lcol, size);
709 memcpy(lcol, t_col, size);
721 const int cd_loop_color_offset,
730 char *cols =
static_cast<char *
>(alloca(size * f->
len));
735 memcpy(
static_cast<void *
>(col), lcol, size);
744 col = cols + (f->
len - i - 1) * size;
745 memcpy(lcol,
static_cast<void *
>(col), size);
756 int cd_loop_color_offset;
757 std::optional<eCustomDataType> cd_loop_color_type;
760 if (cd_loop_color_offset == -1) {
Generic geometry attributes built on CustomData.
CustomData interface, see also DNA_customdata_types.h.
#define mul_m4_series(...)
Read Blender memory allocation and freeing.
#define BM_FACE_FIRST_LOOP(p)
#define BM_ELEM_CD_GET_FLOAT_P(ele, offset)
#define BM_ELEM_CD_GET_VOID_P(ele, offset)
#define BM_elem_flag_test(ele, hflag)
#define BM_ITER_ELEM(ele, iter, data, itype)
#define BM_ITER_ELEM_INDEX(ele, iter, data, itype, indexvar)
#define BMO_edge_flag_test(bm, e, oflag)
#define BMO_edge_flag_enable(bm, e, oflag)
#define BMO_vert_flag_enable(bm, e, oflag)
#define BMO_vert_flag_set(bm, e, oflag, val)
#define BMO_edge_flag_set(bm, e, oflag, val)
#define BMO_face_flag_enable(bm, e, oflag)
#define BMO_ITER(ele, iter, slot_args, slot_name, restrict_flag)
#define BMO_face_flag_set(bm, e, oflag, val)
#define BMO_face_flag_test(bm, e, oflag)
#define CD_MASK_COLOR_ALL
int CustomData_get_offset(const CustomData *data, eCustomDataType type)
int BMO_slot_int_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
BLI_INLINE bool BM_edge_is_wire(const BMEdge *e) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void bmo_rotate_uvs_exec(BMesh *bm, BMOperator *op)
int BMO_slot_buffer_len(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
int CustomData_number_of_layers(const CustomData *data, eCustomDataType type)
void bmo_rotate_exec(BMesh *bm, BMOperator *op)
MINLINE void copy_v3_v3(float r[3], const float a[3])
void * MEM_new_array_uninitialized(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
static void bm_face_reverse_colors(BMFace *f, const int cd_loop_color_offset, const eCustomDataType cd_loop_color_type)
ATTR_WARN_UNUSED_RESULT const BMLoop * l
void bmo_transform_exec(BMesh *bm, BMOperator *op)
MINLINE void add_v3_v3v3(float r[3], const float a[3], const float b[3])
static void bmo_region_extend_expand(BMesh *bm, BMOperator *op, const bool use_faces, const bool use_faces_step)
float BMO_slot_float_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
MINLINE void copy_v2_v2(float r[2], const float a[2])
void BMO_slot_buffer_flag_enable(BMesh *bm, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, char htype, short oflag)
BMO_FLAG_BUFFER.
bool invert_m4_m4(float inverse[4][4], const float mat[4][4])
void bmo_region_extend_exec(BMesh *bm, BMOperator *op)
ATTR_WARN_UNUSED_RESULT const BMVert * v
BMVert * BM_vert_create(BMesh *bm, const float co[3], const BMVert *v_example, const eBMCreateFlag create_flag)
Main function for creating a new vertex.
void bmo_reverse_faces_exec(BMesh *bm, BMOperator *op)
static void bmo_region_extend_contract(BMesh *bm, BMOperator *op, const bool use_faces, const bool use_faces_step)
void bmo_reverse_uvs_exec(BMesh *bm, BMOperator *op)
BLI_INLINE BMVert * BM_edge_other_vert(BMEdge *e, const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
MINLINE void mul_v3_fl(float r[3], float f)
void bmo_flip_quad_tessellation_exec(BMesh *bm, BMOperator *op)
void mul_m4_v3(const float M[4][4], float r[3])
void bmo_scale_exec(BMesh *bm, BMOperator *op)
void BMO_slot_vec_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, float r_vec[3])
void BMO_slot_buffer_from_enabled_flag(BMesh *bm, BMOperator *op, BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, char htype, short oflag)
static void bm_face_reverse_uvs(BMFace *f, const int cd_loop_uv_offset)
void bmo_rotate_colors_exec(BMesh *bm, BMOperator *op)
void unit_m4(float m[4][4])
void interp_v3_v3v3(float r[3], const float a[3], const float b[3], float t)
bool BMO_op_callf(BMesh *bm, int flag, const char *fmt,...)
void transform_pivot_set_m4(float mat[4][4], const float pivot[3])
eCustomDataMask CD_TYPE_AS_MASK(eCustomDataType type)
void bmo_create_vert_exec(BMesh *bm, BMOperator *op)
void BMO_slot_mat4_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name, float r_mat[4][4])
MINLINE void zero_v3(float r[3])
bool is_zero_m4(const float mat[4][4])
static void bmo_get_loop_color_ref(BMesh *bm, int index, int *r_cd_color_offset, std::optional< eCustomDataType > *r_cd_color_type)
bool BMO_slot_bool_get(BMOpSlot slot_args[BMO_OP_MAX_SLOTS], const char *slot_name)
void unit_m3(float m[3][3])
void bmo_smooth_vert_exec(BMesh *bm, BMOperator *op)
void BM_face_normal_flip_ex(BMesh *bm, BMFace *f, const int cd_loop_mdisp_offset, const bool use_loop_mdisp_flip)
Face Flip Normal.
void BMO_error_raise(BMesh *bm, BMOperator *owner, eBMOpErrorLevel level, const char *msg) ATTR_NONNULL(1
static void bmo_face_flag_set_flush(BMesh *bm, BMFace *f, const short oflag, const bool value)
ATTR_WARN_UNUSED_RESULT const BMFlagLayer const short oflag
void bmo_translate_exec(BMesh *bm, BMOperator *op)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
void bmo_reverse_colors_exec(BMesh *bm, BMOperator *op)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
struct BMOpSlot slots_in[BMO_OP_MAX_SLOTS]
struct BMOpSlot slots_out[BMO_OP_MAX_SLOTS]