Blender
V3.3
|
#include "intern/bmesh_operator_api_inline.h"
Go to the source code of this file.
Functions | |
void | BM_mesh_esubdivide (BMesh *bm, char edge_hflag, float smooth, short smooth_falloff, bool use_smooth_even, float fractal, float along_normal, int numcuts, int seltype, int cornertype, short use_single_edge, short use_grid_fill, short use_only_quads, int seed) |
void | BM_mesh_calc_uvs_grid (BMesh *bm, uint x_segments, uint y_segments, short oflag, int cd_loop_uv_offset) |
void | BM_mesh_calc_uvs_sphere (BMesh *bm, short oflag, int cd_loop_uv_offset) |
void | BM_mesh_calc_uvs_circle (BMesh *bm, float mat[4][4], float radius, short oflag, int cd_loop_uv_offset) |
void | BM_mesh_calc_uvs_cone (BMesh *bm, float mat[4][4], float radius_top, float radius_bottom, int segments, bool cap_ends, short oflag, int cd_loop_uv_offset) |
void | BM_mesh_calc_uvs_cube (BMesh *bm, short oflag) |
Variables | |
const BMOpDefine * | bmo_opdefines [] |
const int | bmo_opdefines_total |
anonymous enum |
Enumerator | |
---|---|
SUBD_CORNER_INNERVERT | |
SUBD_CORNER_PATH | |
SUBD_CORNER_FAN | |
SUBD_CORNER_STRAIGHT_CUT |
Definition at line 14 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
SUBD_FALLOFF_SMOOTH | |
SUBD_FALLOFF_SPHERE | |
SUBD_FALLOFF_ROOT | |
SUBD_FALLOFF_SHARP | |
SUBD_FALLOFF_LIN | |
SUBD_FALLOFF_INVSQUARE |
Definition at line 22 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
SUBDIV_SELECT_NONE | |
SUBDIV_SELECT_ORIG | |
SUBDIV_SELECT_INNER | |
SUBDIV_SELECT_LOOPCUT |
Definition at line 31 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
SUBD_RING_INTERP_LINEAR | |
SUBD_RING_INTERP_PATH | |
SUBD_RING_INTERP_SURF |
Definition at line 39 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
SIMFACE_MATERIAL | |
SIMFACE_AREA | |
SIMFACE_SIDES | |
SIMFACE_PERIMETER | |
SIMFACE_NORMAL | |
SIMFACE_COPLANAR | |
SIMFACE_SMOOTH | |
SIMFACE_FACEMAP | |
SIMFACE_FREESTYLE |
Definition at line 51 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
SIMEDGE_LENGTH | |
SIMEDGE_DIR | |
SIMEDGE_FACE | |
SIMEDGE_FACE_ANGLE | |
SIMEDGE_CREASE | |
SIMEDGE_BEVEL | |
SIMEDGE_SEAM | |
SIMEDGE_SHARP | |
SIMEDGE_FREESTYLE |
Definition at line 64 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
SIMVERT_NORMAL | |
SIMVERT_FACE | |
SIMVERT_VGROUP | |
SIMVERT_EDGE | |
SIMVERT_CREASE |
Definition at line 77 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
BMOP_POKE_MEDIAN_WEIGHTED | |
BMOP_POKE_MEDIAN | |
BMOP_POKE_BOUNDS |
Definition at line 86 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
BEVEL_AMT_OFFSET | |
BEVEL_AMT_WIDTH | |
BEVEL_AMT_DEPTH | |
BEVEL_AMT_PERCENT | |
BEVEL_AMT_ABSOLUTE |
Definition at line 93 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
BEVEL_PROFILE_SUPERELLIPSE | |
BEVEL_PROFILE_CUSTOM |
Definition at line 102 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
BEVEL_FACE_STRENGTH_NONE | |
BEVEL_FACE_STRENGTH_NEW | |
BEVEL_FACE_STRENGTH_AFFECTED | |
BEVEL_FACE_STRENGTH_ALL |
Definition at line 108 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
BEVEL_MITER_SHARP | |
BEVEL_MITER_PATCH | |
BEVEL_MITER_ARC |
Definition at line 116 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
BEVEL_VMESH_ADJ | |
BEVEL_VMESH_CUTOFF |
Definition at line 123 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
BEVEL_AFFECT_VERTICES | |
BEVEL_AFFECT_EDGES |
Definition at line 129 of file bmesh_operators.h.
anonymous enum |
Enumerator | |
---|---|
FACE_STRENGTH_WEAK | |
FACE_STRENGTH_MEDIUM | |
FACE_STRENGTH_STRONG |
Definition at line 135 of file bmesh_operators.h.
void BM_mesh_calc_uvs_circle | ( | BMesh * | bm, |
float | mat[4][4], | ||
float | radius, | ||
short | oflag, | ||
int | cd_loop_uv_offset | ||
) |
Fills first available UV-map with 2D projected UVs for all faces with oflag
set.
bm | The BMesh to operate on. |
mat | The transform matrix applied to the created circle. |
radius | The size of the circle. |
oflag | The flag to check faces with. |
Definition at line 1316 of file bmo_primitive.c.
References BLI_assert, bm, BM_ELEM_CD_GET_VOID_P, BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_MESH, BM_LOOPS_OF_FACE, BMO_face_flag_test, BMVert::co, copy_v3_v3(), invert_m4_m4(), l, mul_m4_v3(), oflag, MLoopUV::uv, and BMLoop::v.
Referenced by bmo_create_circle_exec().
void BM_mesh_calc_uvs_cone | ( | BMesh * | bm, |
float | mat[4][4], | ||
float | radius_top, | ||
float | radius_bottom, | ||
int | segments, | ||
bool | cap_ends, | ||
short | oflag, | ||
int | cd_loop_uv_offset | ||
) |
Fills first available UV-map with cylinder/cone-like UVs for all faces with oflag
set.
bm | The BMesh to operate on. |
mat | The transform matrix applied to the created cone/cylinder. |
radius_top | The size of the top end of the cone/cylinder. |
radius_bottom | The size of the bottom end of the cone/cylinder. |
segments | The number of subdivisions in the sides of the cone/cylinder. |
cap_ends | Whether the ends of the cone/cylinder are filled or not. |
oflag | The flag to check faces with. |
Definition at line 1501 of file bmo_primitive.c.
References BLI_assert, bm, BM_ELEM_CD_GET_VOID_P, BM_face_normal_update(), BM_FACES_OF_MESH, BM_ITER_ELEM, BM_ITER_ELEM_INDEX, BM_ITER_MESH, BM_LOOPS_OF_FACE, BMO_face_flag_test, BMVert::co, dot_v3v3(), float(), invert_m4_m4(), l, BMFace::len, mul_mat3_m4_v3(), mul_v3_m4v3(), BMFace::no, normalize_v3(), oflag, MLoopUV::uv, BMLoop::v, x, and y.
Referenced by bmo_create_cone_exec().
Fills first available UV-map with cube-like UVs for all faces with oflag
set.
bm | The BMesh to operate on. |
oflag | The flag to check faces with. |
Definition at line 1666 of file bmo_primitive.c.
References BLI_assert, bm, BM_ELEM_CD_GET_VOID_P, BM_FACES_OF_MESH, BM_ITER_ELEM_INDEX, BM_ITER_MESH, BM_LOOPS_OF_FACE, BMO_face_flag_test, CD_MLOOPUV, CustomData_get_offset(), l, BMesh::ldata, oflag, MLoopUV::uv, width, x, and y.
Referenced by bmo_create_cube_exec().
void BM_mesh_calc_uvs_grid | ( | BMesh * | bm, |
uint | x_segments, | ||
uint | y_segments, | ||
short | oflag, | ||
int | cd_loop_uv_offset | ||
) |
Fills first available UV-map with grid-like UV's for all faces with oflag
set.
bm | The BMesh to operate on |
x_segments | The x-resolution of the grid |
y_segments | The y-resolution of the grid |
oflag | The flag to check faces with. |
Definition at line 776 of file bmo_primitive.c.
References BLI_assert, bm, BM_ELEM_CD_GET_VOID_P, BM_FACES_OF_MESH, BM_ITER_ELEM_INDEX, BM_ITER_MESH, BM_LOOPS_OF_FACE, BMO_face_flag_test, float(), l, oflag, MLoopUV::uv, x, and y.
Referenced by bmo_create_grid_exec().
Fills first available UV-map with spherical projected UVs for all faces with oflag
set.
bm | The BMesh to operate on |
oflag | The flag to check faces with. |
Definition at line 1111 of file bmo_primitive.c.
References BLI_assert, bm, BM_ELEM_CD_GET_VOID_P, BM_FACES_OF_MESH, BM_ITER_ELEM_INDEX, BM_ITER_MESH, BM_LOOPS_OF_FACE, bm_mesh_calc_uvs_sphere_face(), BMO_face_flag_test, l, oflag, and MLoopUV::uv.
Referenced by bmo_create_uvsphere_exec().
void BM_mesh_esubdivide | ( | BMesh * | bm, |
char | edge_hflag, | ||
float | smooth, | ||
short | smooth_falloff, | ||
bool | use_smooth_even, | ||
float | fractal, | ||
float | along_normal, | ||
int | numcuts, | ||
int | seltype, | ||
int | cornertype, | ||
short | use_single_edge, | ||
short | use_grid_fill, | ||
short | use_only_quads, | ||
int | seed | ||
) |
Definition at line 1318 of file bmo_subdivide.c.
References bm, BM_ALL_NOLOOP, BM_EDGE, BM_ELEM_SELECT, BM_FACE, BM_mesh_elem_hflag_disable_all(), BM_mesh_select_flush(), BM_VERT, BMO_FLAG_DEFAULTS, BMO_op_exec(), BMO_op_finish(), BMO_op_initf(), BMO_slot_buffer_hflag_enable(), seed, BMOperator::slots_out, smooth(), SUBDIV_SELECT_INNER, SUBDIV_SELECT_LOOPCUT, SUBDIV_SELECT_NONE, and SUBDIV_SELECT_ORIG.
Referenced by edbm_subdivide_exec(), and ringsel_finish().
|
extern |
Definition at line 2088 of file bmesh_opdefines.c.
Referenced by BMO_op_finish(), BMO_op_init(), BMO_opcode_from_opname(), and bpy_bmesh_op_doc_get().
|
extern |
Definition at line 2172 of file bmesh_opdefines.c.
Referenced by BMO_opcode_from_opname().