61 const bool use_select,
62 const bool respecthide,
63 const bool use_topology,
69 const bool use_select,
70 const bool respecthide,
71 const bool use_topology);
110 const bool face_selected,
111 const bool uv_selected,
112 const bool use_winding,
113 const bool do_islands);
122 const bool selected);
127 const bool use_select,
128 const bool use_winding);
149 const bool split_edges,
150 const bool split_faces,
160 const struct Mesh *me,
167 float *dist_px_manhattan_p,
168 const bool use_select_bias,
176 float *dist_px_manhattan,
177 float *r_dist_center,
178 const bool use_select_bias,
180 struct BMEdge **r_eed_zbuf,
187 float *dist_px_manhattan,
188 float *r_dist_center,
189 const bool use_zbuf_single_px,
190 const bool use_select_bias,
192 struct BMFace **r_efa_zbuf,
200 const uint bases_len,
208 const uint bases_len,
209 bool use_boundary_vertices,
210 bool use_boundary_edges,
211 int *r_base_index_vert,
212 int *r_base_index_edge,
213 int *r_base_index_face,
219 struct bContext *
C,
const int mval[2],
bool extend,
bool deselect,
bool toggle);
223 const short selectmode_old,
224 const short selectmode_new);
229 const short selectmode_new,
231 const bool use_extend,
232 const bool use_expand);
236 const short selectmode_disable,
237 const short selectmode_fallback);
251 const uint bases_len,
252 const short selectmode_disable,
253 const short selectmode_fallback);
255 const short selectmode_disable,
256 const short selectmode_fallback);
268 const float (*coords)[3]);
286 const float (*coords)[3]);
341 const bool skip_em_vert_array_init);
345 #define WEIGHT_REPLACE 1
347 #define WEIGHT_SUBTRACT 3
356 const bool use_vert_sel);
360 const bool *vgroup_validmap,
361 const int vgroup_tot);
364 const int dvert_tot);
367 const bool *vgroup_validmap,
368 const int vgroup_tot,
370 const bool keep_single);
373 float *dvert_weights,
377 const float *dvert_weights,
379 const bool remove_zero);
381 const bool mirror_weights,
382 const bool flip_vgroups,
383 const bool all_vgroups,
384 const bool use_topology,
389 struct Object *ob,
struct bDeformGroup *dg,
int vertnum,
float weight,
int assignmode);
412 const bool active_set,
422 const bool active_set,
431 const bool active_set,
463 struct Mesh *me_eval);
467 struct Mesh *me_eval,
478 struct Mesh *me_eval,
480 const bool use_topology);
486 const bool use_topology);
507 const uint objects_len,
511 const uint objects_len,
514 #define ED_MESH_PICK_DEFAULT_VERT_DIST 25
515 #define ED_MESH_PICK_DEFAULT_FACE_DIST 1
517 #define USE_LOOPSLIDE_HACK
struct Depsgraph Depsgraph
void EDBM_selectmode_to_scene(struct bContext *C)
void EDBM_redo_state_free(struct BMBackup *, struct BMEditMesh *em, int recalctess)
bool ED_mesh_pick_face_vert(struct bContext *C, struct Object *ob, const int mval[2], uint dist_px, uint *r_index)
bool EDBM_select_interior_faces(struct BMEditMesh *em)
void ED_mesh_undosys_type(struct UndoType *ut)
bool ED_mesh_sculpt_color_remove_named(struct Mesh *me, const char *name)
void EDBM_verts_mirror_apply(struct BMEditMesh *em, const int sel_from, const int sel_to)
bool EDBM_mesh_deselect_all_multi_ex(struct Base **bases, const uint bases_len)
void EDBM_mesh_load(struct Main *bmain, struct Object *ob)
void EDBM_preselect_elem_update_preview(struct EditMesh_PreSelElem *psel, struct ViewContext *vc, struct BMesh *bm, struct BMElem *ele, const int mval[2])
void EDBM_preselect_elem_destroy(struct EditMesh_PreSelElem *psel)
void EDBM_mesh_clear(struct BMEditMesh *em)
bool ED_mesh_color_remove_active(struct Mesh *me)
void EDBM_verts_mirror_cache_clear(struct BMEditMesh *em, struct BMVert *v)
void ED_mesh_mirror_topo_table_end(struct Object *ob)
void EDBM_mesh_make(struct Object *ob, const int select_mode, const bool add_key_index)
bool paintvert_deselect_all_visible(struct Object *ob, int action, bool flush_flags)
void paintface_hide(struct bContext *C, struct Object *ob, const bool unselected)
void ED_operatortypes_mesh(void)
void ED_vgroup_vert_add(struct Object *ob, struct bDeformGroup *dg, int vertnum, float weight, int assignmode)
struct BMVert * EDBM_vert_find_nearest(struct ViewContext *vc, float *dist_px_manhattan_p)
bool EDBM_selectmode_set_multi(struct bContext *C, const short selectmode)
struct MirrTopoStore_t MirrTopoStore_t
void paintface_select_linked(struct bContext *C, struct Object *ob, const int mval[2], const bool select)
void EDBM_selectmode_flush_ex(struct BMEditMesh *em, const short selectmode)
void EDBM_preselect_elem_draw(struct EditMesh_PreSelElem *psel, const float matrix[4][4])
void EDBM_select_more(struct BMEditMesh *em, const bool use_face_step)
void ED_keymap_mesh(struct wmKeyConfig *keyconf)
void ED_mesh_verts_remove(struct Mesh *mesh, struct ReportList *reports, int count)
void EDBM_preselect_edgering_destroy(struct EditMesh_PreSelEdgeRing *psel)
void EDBM_automerge_and_split(struct Object *ob, const bool split_edges, const bool split_faces, const bool update, const char hflag, const float dist)
bool EDBM_unified_findnearest_from_raycast(struct ViewContext *vc, struct Base **bases, const uint bases_len, bool use_boundary_vertices, bool use_boundary_edges, int *r_base_index_vert, int *r_base_index_edge, int *r_base_index_face, struct BMVert **r_eve, struct BMEdge **r_eed, struct BMFace **r_efa)
struct BMFace * EDBM_uv_active_face_get(struct BMEditMesh *em, const bool sloppy, const bool selected)
void EDBM_selectmode_convert(struct BMEditMesh *em, const short selectmode_old, const short selectmode_new)
struct UvElement * BM_uv_element_get(struct UvElementMap *map, struct BMFace *efa, struct BMLoop *l)
struct MDeformVert * ED_mesh_active_dvert_get_ob(struct Object *ob, int *r_index)
void EDBM_mesh_elem_index_ensure_multi(struct Object **objects, const uint objects_len, const char htype)
eEditMesh_PreSelPreviewAction
@ PRESELECT_ACTION_CREATE
@ PRESELECT_ACTION_DELETE
@ PRESELECT_ACTION_TRANSFORM
struct UvElementMap * BM_uv_element_map_create(struct BMesh *bm, const struct Scene *scene, const bool face_selected, const bool uv_selected, const bool use_winding, const bool do_islands)
int ED_mesh_color_add(struct Mesh *me, const char *name, const bool active_set, const bool do_init)
void EDBM_preselect_edgering_clear(struct EditMesh_PreSelEdgeRing *psel)
int mesh_get_x_mirror_vert(struct Object *ob, struct Mesh *me_eval, int index, const bool use_topology)
void EDBM_preselect_action_set(struct EditMesh_PreSelElem *psel, eEditMesh_PreSelPreviewAction action)
void ED_mesh_geometry_clear(struct Mesh *mesh)
bool paintface_deselect_all_visible(struct bContext *C, struct Object *ob, int action, bool flush_flags)
void ED_mesh_verts_add(struct Mesh *mesh, struct ReportList *reports, int count)
struct BMFace * EDBM_verts_mirror_get_face(struct BMEditMesh *em, struct BMFace *f)
void EDBM_project_snap_verts(struct bContext *C, struct Depsgraph *depsgraph, struct ARegion *region, struct Object *obedit, struct BMEditMesh *em)
bool EDBM_selectmode_toggle_multi(struct bContext *C, const short selectmode_new, const int action, const bool use_extend, const bool use_expand)
bool ED_mesh_sculpt_color_remove_active(struct Mesh *me)
void EDBM_select_mirrored(struct BMEditMesh *em, const struct Mesh *me, const int axis, const bool extend, int *r_totmirr, int *r_totfail)
void ED_mesh_polys_remove(struct Mesh *mesh, struct ReportList *reports, int count)
void ED_mesh_mirror_topo_table_begin(struct Object *ob, struct Mesh *me_eval)
void ED_mesh_edges_add(struct Mesh *mesh, struct ReportList *reports, int count)
void ED_mesh_uv_loop_reset_ex(struct Mesh *me, const int layernum)
bool EDBM_selectmode_disable_multi_ex(struct Scene *scene, struct Base **bases, const uint bases_len, const short selectmode_disable, const short selectmode_fallback)
void ED_mesh_uv_loop_reset(struct bContext *C, struct Mesh *me)
void EDBM_mesh_load_ex(struct Main *bmain, struct Object *ob, bool free_data)
bool paintface_mouse_select(struct bContext *C, struct Object *ob, const int mval[2], bool extend, bool deselect, bool toggle)
bool ED_mesh_mirrtopo_recalc_check(struct BMEditMesh *em, struct Mesh *me, MirrTopoStore_t *mesh_topo_store)
struct BMEdge * EDBM_edge_find_nearest(struct ViewContext *vc, float *dist_px_manhattan_p)
eEditMesh_PreSelPreviewAction EDBM_preselect_action_get(struct EditMesh_PreSelElem *psel)
void em_setup_viewcontext(struct bContext *C, struct ViewContext *vc)
void ED_mesh_mirrtopo_init(struct BMEditMesh *em, struct Mesh *me, MirrTopoStore_t *mesh_topo_store, const bool skip_em_vert_array_init)
bool EDBM_selectmode_disable(struct Scene *scene, struct BMEditMesh *em, const short selectmode_disable, const short selectmode_fallback)
bool EDBM_selectmode_disable_multi(struct bContext *C, const short selectmode_disable, const short selectmode_fallback)
bool EDBM_mesh_hide(struct BMEditMesh *em, bool swap)
int * mesh_get_x_mirror_faces(struct Object *ob, struct BMEditMesh *em, struct Mesh *me_eval)
bool ED_vgroup_sync_from_pose(struct Object *ob)
bool ED_mesh_color_remove_index(struct Mesh *me, const int n)
struct BMBackup EDBM_redo_state_store(struct BMEditMesh *em)
struct BMVert * editbmesh_get_x_mirror_vert(struct Object *ob, struct BMEditMesh *em, struct BMVert *eve, const float co[3], int index, const bool use_topology)
struct MDeformVert * ED_mesh_active_dvert_get_em(struct Object *ob, struct BMVert **r_eve)
bool ED_mesh_uv_texture_remove_named(struct Mesh *me, const char *name)
struct UvMapVert * BM_uv_vert_map_at_index(struct UvVertMap *vmap, unsigned int v)
struct Mesh * ED_mesh_context(struct bContext *C)
void EDBM_automerge(struct Object *ob, bool update, const char hflag, const float dist)
struct BMFace * EDBM_face_find_nearest(struct ViewContext *vc, float *dist_px_manhattan_p)
void EDBM_mesh_free(struct BMEditMesh *em)
void ED_mesh_uv_texture_ensure(struct Mesh *me, const char *name)
void ED_mesh_loops_remove(struct Mesh *mesh, struct ReportList *reports, int count)
void ED_mesh_loops_add(struct Mesh *mesh, struct ReportList *reports, int count)
void paintface_flush_flags(struct bContext *C, struct Object *ob, short flag)
void paintvert_flush_flags(struct Object *ob)
bool ED_mesh_uv_texture_remove_index(struct Mesh *me, const int n)
int ED_mesh_shapes_join_objects_exec(struct bContext *C, struct wmOperator *op)
void EDBM_flag_enable_all(struct BMEditMesh *em, const char hflag)
void ED_mesh_polys_add(struct Mesh *mesh, struct ReportList *reports, int count)
void EDBM_preselect_elem_clear(struct EditMesh_PreSelElem *psel)
void ED_mesh_mirrtopo_free(MirrTopoStore_t *mesh_topo_store)
void EDBM_select_flush(struct BMEditMesh *em)
bool ED_mesh_color_remove_named(struct Mesh *me, const char *name)
void EDBM_select_less(struct BMEditMesh *em, const bool use_face_step)
bool EDBM_unified_findnearest(struct ViewContext *vc, struct Base **bases, const uint bases_len, int *r_base_index, struct BMVert **r_eve, struct BMEdge **r_eed, struct BMFace **r_efa)
bool ED_mesh_uv_texture_remove_active(struct Mesh *me)
float ED_vgroup_vert_weight(struct Object *ob, struct bDeformGroup *dg, int vertnum)
struct EditMesh_PreSelEdgeRing * EDBM_preselect_edgering_create(void)
struct BMVert * EDBM_verts_mirror_get(struct BMEditMesh *em, struct BMVert *v)
void ED_mesh_edges_remove(struct Mesh *mesh, struct ReportList *reports, int count)
void ED_vgroup_parray_mirror_assign(struct Object *ob, struct MDeformVert **dvert_array, const int dvert_tot)
bool EDBM_deselect_by_material(struct BMEditMesh *em, const short index, const bool select)
void EDBM_preselect_elem_update_from_single(struct EditMesh_PreSelElem *psel, struct BMesh *bm, struct BMElem *ele, const float(*coords)[3])
void EDBM_verts_mirror_cache_end(struct BMEditMesh *em)
bool ED_mesh_color_ensure(struct Mesh *me, const char *name)
void ED_mesh_report_mirror(struct wmOperator *op, int totmirr, int totfail)
void ED_vgroup_data_clamp_range(struct ID *id, const int total)
struct UvVertMap * BM_uv_vert_map_create(struct BMesh *bm, const bool use_select, const bool use_winding)
struct MDeformVert * ED_mesh_active_dvert_get_only(struct Object *ob)
bool ED_vgroup_array_copy(struct Object *ob, struct Object *ob_from)
void ED_vgroup_select_by_name(struct Object *ob, const char *name)
int ED_mesh_join_objects_exec(struct bContext *C, struct wmOperator *op)
void EDBM_selectmode_set(struct BMEditMesh *em)
bool ED_mesh_pick_face(struct bContext *C, struct Object *ob, const int mval[2], uint dist_px, uint *r_index)
void EDBM_update_generic(struct Mesh *me, const bool do_tessellation, const bool is_destructive)
void ED_mesh_update(struct Mesh *mesh, struct bContext *C, bool calc_edges, bool calc_edges_loose)
void ED_vgroup_parray_to_weight_array(const struct MDeformVert **dvert_array, const int dvert_tot, float *dvert_weights, const int def_nr)
void ED_vgroup_parray_mirror_sync(struct Object *ob, struct MDeformVert **dvert_array, const int dvert_tot, const bool *vgroup_validmap, const int vgroup_tot)
void EDBM_verts_mirror_cache_begin_ex(struct BMEditMesh *em, const int axis, const bool use_self, const bool use_select, const bool respecthide, const bool use_topology, float maxdist, int *r_index)
void EDBM_select_toggle_all(struct BMEditMesh *em)
int ED_mesh_mirror_get_vert(struct Object *ob, int index)
void EDBM_deselect_flush(struct BMEditMesh *em)
void EDBM_verts_mirror_cache_begin(struct BMEditMesh *em, const int axis, const bool use_self, const bool use_select, const bool respecthide, const bool use_topology)
void EDBM_preselect_preview_clear(struct EditMesh_PreSelElem *psel)
void EDBM_select_swap(struct BMEditMesh *em)
void ED_vgroup_vert_remove(struct Object *ob, struct bDeformGroup *dg, int vertnum)
bool EDBM_mesh_reveal(struct BMEditMesh *em, bool select)
struct BMFace * EDBM_face_find_nearest_ex(struct ViewContext *vc, float *dist_px_manhattan, float *r_dist_center, const bool use_zbuf_single_px, const bool use_select_bias, bool use_cycle, struct BMFace **r_efa_zbuf, struct Base **bases, uint bases_len, uint *r_base_index)
void ED_mesh_mirror_spatial_table_begin(struct Object *ob, struct BMEditMesh *em, struct Mesh *me_eval)
void ED_vgroup_parray_from_weight_array(struct MDeformVert **dvert_array, const int dvert_tot, const float *dvert_weights, const int def_nr, const bool remove_zero)
struct BMEdge * EDBM_edge_find_nearest_ex(struct ViewContext *vc, float *dist_px_manhattan, float *r_dist_center, const bool use_select_bias, bool use_cycle, struct BMEdge **r_eed_zbuf, struct Base **bases, uint bases_len, uint *r_base_index)
void EDBM_preselect_edgering_draw(struct EditMesh_PreSelEdgeRing *psel, const float matrix[4][4])
bool ED_mesh_sculpt_color_ensure(struct Mesh *me, const char *name)
int ED_mesh_sculpt_color_add(struct Mesh *me, const char *name, const bool active_set, const bool do_init)
void ED_mesh_report_mirror_ex(struct wmOperator *op, int totmirr, int totfail, char selectmode)
struct BMEdge * EDBM_verts_mirror_get_edge(struct BMEditMesh *em, struct BMEdge *e)
bool BMBVH_EdgeVisible(struct BMBVHTree *tree, struct BMEdge *e, struct Depsgraph *depsgraph, struct ARegion *region, struct View3D *v3d, struct Object *obedit)
bool paintface_minmax(struct Object *ob, float r_min[3], float r_max[3])
bool ED_mesh_pick_vert(struct bContext *C, struct Object *ob, const int mval[2], uint dist_px, bool use_zbuf, uint *r_index)
bool ED_vgroup_parray_alloc(struct ID *id, struct MDeformVert ***dvert_arr, int *dvert_tot, const bool use_vert_sel)
void EDBM_flag_disable_all(struct BMEditMesh *em, const char hflag)
int ED_mesh_uv_texture_add(struct Mesh *me, const char *name, const bool active_set, const bool do_init)
bool EDBM_mesh_deselect_all_multi(struct bContext *C)
bool EDBM_uv_check(struct BMEditMesh *em)
struct EditMesh_PreSelElem * EDBM_preselect_elem_create(void)
void ED_mesh_mirror_spatial_table_end(struct Object *ob)
int ED_mesh_mirror_spatial_table_lookup(struct Object *ob, struct BMEditMesh *em, struct Mesh *me_eval, const float co[3])
void ED_vgroup_mirror(struct Object *ob, const bool mirror_weights, const bool flip_vgroups, const bool all_vgroups, const bool use_topology, int *r_totmirr, int *r_totfail)
struct BMVert * EDBM_vert_find_nearest_ex(struct ViewContext *vc, float *dist_px_manhattan_p, const bool use_select_bias, bool use_cycle, struct Base **bases, uint bases_len, uint *r_base_index)
void EDBM_redo_state_restore(struct BMBackup, struct BMEditMesh *em, int recalctess)
void ED_operatormacros_mesh(void)
void BM_uv_element_map_free(struct UvElementMap *element_map)
bool EDBM_vert_color_check(struct BMEditMesh *em)
void paintvert_tag_select_update(struct bContext *C, struct Object *ob)
void paintvert_select_ungrouped(struct Object *ob, bool extend, bool flush_flags)
void EDBM_preselect_edgering_update_from_edge(struct EditMesh_PreSelEdgeRing *psel, struct BMesh *bm, struct BMEdge *eed_start, int previewlines, const float(*coords)[3])
bool ED_mesh_sculpt_color_remove_index(struct Mesh *me, const int n)
bool EDBM_select_pick(struct bContext *C, const int mval[2], bool extend, bool deselect, bool toggle)
void ED_vgroup_vert_active_mirror(struct Object *ob, int def_nr)
void EDBM_selectmode_flush(struct BMEditMesh *em)
void EDBM_mesh_normals_update(struct BMEditMesh *em)
void BM_uv_vert_map_free(struct UvVertMap *vmap)
void ED_vgroup_parray_remove_zero(struct MDeformVert **dvert_array, const int dvert_tot, const bool *vgroup_validmap, const int vgroup_tot, const float epsilon, const bool keep_single)
void EDBM_mesh_stats_multi(struct Object **objects, const uint objects_len, int totelem[3], int totelem_sel[3])
void paintface_reveal(struct bContext *C, struct Object *ob, const bool select)
ATTR_WARN_UNUSED_RESULT BMesh * bm
ATTR_WARN_UNUSED_RESULT const BMLoop * l
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
ATTR_WARN_UNUSED_RESULT const BMVert * v
const Depsgraph * depsgraph
static void update(bNodeTree *ntree)
__forceinline const avxb select(const avxb &m, const avxb &t, const avxb &f)