|
Blender
V2.93
|
#include "MEM_guardedalloc.h"#include "DNA_meshdata_types.h"#include "BLI_alloca.h"#include "BLI_math.h"#include "BKE_customdata.h"#include "bmesh.h"#include "intern/bmesh_operators_private.h"Go to the source code of this file.
Macros | |
| #define | ELE_NEW 1 |
| #define | SEL_FLAG 1 |
| #define | SEL_ORIG 2 |
utility bmesh operators, e.g. transform, translate, rotate, scale, etc.
Definition in file bmo_utils.c.
| #define ELE_NEW 1 |
Definition at line 37 of file bmo_utils.c.
| #define SEL_FLAG 1 |
Definition at line 157 of file bmo_utils.c.
| #define SEL_ORIG 2 |
Definition at line 158 of file bmo_utils.c.
|
static |
Definition at line 636 of file bmo_utils.c.
References BLI_array_alloca, BM_ELEM_CD_GET_VOID_P, BM_ITER_ELEM_INDEX, BM_LOOPS_OF_FACE, l, and BMFace::len.
Referenced by bmo_reverse_colors_exec().
|
static |
Definition at line 534 of file bmo_utils.c.
References BLI_array_alloca, BM_ELEM_CD_GET_VOID_P, BM_ITER_ELEM_INDEX, BM_LOOPS_OF_FACE, copy_v2_v2(), float(), l, BMFace::len, and MLoopUV::uv.
Referenced by bmo_reverse_uvs_exec().
| void bmo_create_vert_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 39 of file bmo_utils.c.
References bm, BM_CREATE_NOP, BM_VERT, BM_vert_create(), BMO_slot_buffer_from_enabled_flag(), BMO_slot_vec_get(), BMO_vert_flag_enable, ELE_NEW, NULL, BMOperator::slots_in, and BMOperator::slots_out.
|
static |
Definition at line 160 of file bmo_utils.c.
References bm, BM_FACE_FIRST_LOOP, BMO_edge_flag_set, BMO_face_flag_set, BMO_vert_flag_set, BMLoop::e, BMLoop::next, oflag, and BMLoop::v.
Referenced by bmo_region_extend_expand().
|
static |
Definition at line 273 of file bmo_utils.c.
References bm, BM_edge_is_wire(), BM_EDGES_OF_VERT, BM_FACE, BM_FACES_OF_EDGE, BM_FACES_OF_VERT, BM_ITER_ELEM, BM_LOOPS_OF_FACE, BM_VERT, BMO_edge_flag_enable, BMO_edge_flag_test, BMO_face_flag_enable, BMO_face_flag_test, BMO_ITER, BMO_vert_flag_enable, BMLoop::e, e, l, SEL_FLAG, SEL_ORIG, BMOperator::slots_in, BMLoop::v, and v.
Referenced by bmo_region_extend_exec().
| void bmo_region_extend_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 372 of file bmo_utils.c.
References bm, BM_ALL_NOLOOP, bmo_region_extend_contract(), bmo_region_extend_expand(), BMO_slot_bool_get(), BMO_slot_buffer_flag_enable(), BMO_slot_buffer_from_enabled_flag(), SEL_FLAG, SEL_ORIG, BMOperator::slots_in, and BMOperator::slots_out.
|
static |
Definition at line 173 of file bmo_utils.c.
References bm, BM_edge_is_wire(), BM_edge_other_vert(), BM_EDGES_OF_VERT, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_FACE, BM_FACES_OF_EDGE, BM_FACES_OF_VERT, BM_ITER_ELEM, BM_LOOPS_OF_FACE, BM_VERT, BMO_edge_flag_enable, BMO_edge_flag_test, BMO_face_flag_enable, bmo_face_flag_set_flush(), BMO_face_flag_test, BMO_ITER, BMO_vert_flag_enable, BMLoop::e, e, l, SEL_FLAG, SEL_ORIG, BMOperator::slots_in, BMLoop::v, and v.
Referenced by bmo_region_extend_exec().
| void bmo_reverse_colors_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 656 of file bmo_utils.c.
References bm, BM_FACE, bm_face_reverse_colors(), BMO_ITER, CD_MLOOPCOL, CustomData_get_offset(), BMesh::ldata, and BMOperator::slots_in.
| void bmo_reverse_faces_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 145 of file bmo_utils.c.
References bm, BM_FACE, BM_face_normal_flip_ex(), BMO_ITER, BMO_slot_bool_get(), CD_MDISPS, CustomData_get_offset(), BMesh::ldata, and BMOperator::slots_in.
| void bmo_reverse_uvs_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 554 of file bmo_utils.c.
References bm, BM_FACE, bm_face_reverse_uvs(), BMO_ITER, CD_MLOOPUV, CustomData_get_offset(), BMesh::ldata, and BMOperator::slots_in.
| void bmo_rotate_colors_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 571 of file bmo_utils.c.
References bm, BM_ELEM_CD_GET_VOID_P, BM_FACE, BM_ITER_ELEM, BM_LOOPS_OF_FACE, BMO_ITER, BMO_slot_bool_get(), CD_MLOOPCOL, CustomData_get_offset(), BMesh::ldata, and BMOperator::slots_in.
| void bmo_rotate_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 124 of file bmo_utils.c.
References bm, BMO_op_callf(), BMO_slot_mat4_get(), BMO_slot_vec_get(), center, BMOperator::flag, BMOperator::slots_in, and transform_pivot_set_m4().
| void bmo_rotate_uvs_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 468 of file bmo_utils.c.
References bm, BM_ELEM_CD_GET_VOID_P, BM_FACE, BM_ITER_ELEM, BM_LOOPS_OF_FACE, BMO_ITER, BMO_slot_bool_get(), CD_MLOOPUV, copy_v2_v2(), CustomData_get_offset(), BMesh::ldata, BMOperator::slots_in, and MLoopUV::uv.
| void bmo_scale_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 101 of file bmo_utils.c.
References bm, BMO_op_callf(), BMO_slot_vec_get(), BMOperator::flag, BMOperator::slots_in, and unit_m3().
| void bmo_smooth_vert_exec | ( | BMesh * | UNUSEDbm, |
| BMOperator * | op | ||
| ) |
Definition at line 390 of file bmo_utils.c.
References add_v3_v3v3(), BM_edge_other_vert(), BM_EDGES_OF_VERT, BM_ITER_ELEM, BM_VERT, BMO_ITER, BMO_slot_bool_get(), BMO_slot_buffer_count(), BMO_slot_float_get(), BMVert::co, copy_v3_v3(), KDL::cos(), e, fabsf, float(), interp_v3_v3v3(), MEM_freeN, MEM_mallocN, mul_v3_fl(), BMOperator::slots_in, v, and zero_v3().
| void bmo_transform_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 49 of file bmo_utils.c.
References bm, BM_ELEM_CD_GET_VOID_P, BM_VERT, BMO_ITER, BMO_slot_bool_get(), BMO_slot_mat4_get(), CD_SHAPEKEY, BMVert::co, CustomData_get_offset(), CustomData_number_of_layers(), float(), invert_m4_m4(), is_zero_m4(), mul_m4_series, mul_m4_v3(), BMOperator::slots_in, v, and BMesh::vdata.
| void bmo_translate_exec | ( | BMesh * | bm, |
| BMOperator * | op | ||
| ) |
Definition at line 80 of file bmo_utils.c.
References bm, BMO_op_callf(), BMO_slot_vec_get(), copy_v3_v3(), BMOperator::flag, BMOperator::slots_in, and unit_m4().