Blender V5.3
uvedit_select.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "BLI_array.hh"
#include "BLI_hash_c.hh"
#include "BLI_heap.hh"
#include "BLI_kdopbvh.hh"
#include "BLI_kdtree.hh"
#include "BLI_lasso_2d.hh"
#include "BLI_listbase.hh"
#include "BLI_map.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_memarena.hh"
#include "BLI_polyfill_2d.hh"
#include "BLI_polyfill_2d_beautify.hh"
#include "BLI_utildefines.hh"
#include "BLI_vector_list.hh"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_customdata.hh"
#include "BKE_editmesh.hh"
#include "BKE_layer.hh"
#include "BKE_material.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_mapping.hh"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "ED_image.hh"
#include "ED_mesh.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ED_uvedit.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_view2d.hh"
#include "uvedit_intern.hh"

Go to the source code of this file.

Classes

struct  blender::UVSelectLinkedHelper
struct  blender::UVCircleSelectState

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ed
namespace  blender::ed::uv

Macros

#define SET_SELECTION(value)
#define NEIGHBORING_FACE_IS_SEL   1
#define CURR_FACE_IS_UNSEL   2

Enumerations

enum class  blender::UVDelimitMode : int { blender::Seam = 1 << 0 , blender::Sharp = 1 << 1 , blender::Material = 1 << 2 }
enum  blender::eUVSelectSimilar {
  blender::UV_SSIM_AREA_UV = 1000 , blender::UV_SSIM_AREA_3D , blender::UV_SSIM_FACE , blender::UV_SSIM_LENGTH_UV ,
  blender::UV_SSIM_LENGTH_3D , blender::UV_SSIM_MATERIAL , blender::UV_SSIM_OBJECT , blender::UV_SSIM_PIN ,
  blender::UV_SSIM_SIDES , blender::UV_SSIM_WINDING
}

Functions

static void blender::uv_select_all_perform_multi_ex (const Scene *scene, Span< Object * > objects, int action, const Object *ob_exclude)
static void blender::uv_select_flush_from_tag_face (const Scene *scene, Object *obedit, const bool select)
static void blender::uv_select_flush_from_tag_loop (const Scene *scene, Object *obedit, const bool select)
static void blender::uv_select_flush_from_loop_edge_flag (const Scene *scene, BMesh *bm)
void blender::ED_uvedit_select_sync_multi (bContext *C)
(De)Select All Operator
static void blender::uv_select_all_perform_multi (const Scene *scene, Span< Object * > objects, int action)
bool blender::uvedit_select_is_any_selected (const Scene *scene, BMesh *bm)
bool blender::uvedit_select_is_any_selected_multi (const Scene *scene, const Span< Object * > objects)
static void blender::uv_select_all (const Scene *scene, BMesh *bm, bool select_all)
static void blender::uv_select_toggle_all (const Scene *scene, BMesh *bm)
static void blender::uv_select_invert (const Scene *scene, BMEditMesh *em, BMesh *bm)
void blender::ED_uvedit_deselect_all (const Scene *scene, Object *obedit, int action)
static void blender::uv_select_all_perform_multi_ex (const Scene *scene, const Span< Object * > objects, int action, const Object *ob_exclude)
static wmOperatorStatus blender::uv_select_all_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_all (wmOperatorType *ot)
Select/Tag Flushing Utils

Utility functions to flush the uv-selection from tags.

static void blender::uv_select_tag_update_for_object (Depsgraph *depsgraph, const ToolSettings *ts, Object *obedit)
static void blender::uv_select_sync_update (const Scene *scene, Object *obedit)
Active Selection Tracking

Currently we don't store loops in the selection history, store face/edge/vert combinations (needed for UV path selection).

void blender::ED_uvedit_active_vert_loop_set (BMesh *bm, BMLoop *l)
BMLoop * blender::ED_uvedit_active_vert_loop_get (const ToolSettings *ts, BMesh *bm)
void blender::ED_uvedit_active_edge_loop_set (BMesh *bm, BMLoop *l)
BMLoop * blender::ED_uvedit_active_edge_loop_get (const ToolSettings *ts, BMesh *bm)
Visibility and Selection Utilities
bool blender::ED_uvedit_sync_uvselect_ignore (const ToolSettings *ts)
bool blender::ED_uvedit_sync_uvselect_is_valid_or_ignore (const ToolSettings *ts, const BMesh *bm)
static void blender::uvedit_sync_uvselect_flush_from_v3d (const ToolSettings *ts, BMesh *bm)
void blender::ED_uvedit_sync_uvselect_ensure_if_needed (const ToolSettings *ts, BMesh *bm)
char blender::ED_uvedit_select_mode_get (const Scene *scene)
bool blender::ED_uvedit_select_island_check (const ToolSettings *ts)
void blender::ED_uvedit_select_sync_flush (const ToolSettings *ts, BMesh *bm, bool select)
static void blender::uvedit_vertex_select_tagged (BMesh *bm, const Scene *scene, bool select)
bool blender::uvedit_face_visible_test_ex (const ToolSettings *ts, const BMFace *efa)
bool blender::uvedit_face_visible_test (const Scene *scene, const BMFace *efa)
bool blender::uvedit_face_select_test_ex (const ToolSettings *ts, const BMesh *bm, const BMFace *efa)
bool blender::uvedit_face_select_test (const Scene *scene, const BMesh *bm, const BMFace *efa)
void blender::uvedit_face_select_set_with_sticky (const Scene *scene, BMesh *bm, BMFace *efa, bool select, const BMUVOffsets &offsets)
void blender::uvedit_face_select_shared_vert (const Scene *scene, BMesh *bm, BMFace *efa, const bool select, const BMUVOffsets &offsets)
void blender::uvedit_face_select_set (const Scene *scene, BMesh *bm, BMFace *efa, bool select)
 Select UV Face.
void blender::uvedit_face_select_enable (const Scene *scene, BMesh *bm, BMFace *efa)
void blender::uvedit_face_select_disable (const Scene *scene, BMesh *bm, BMFace *efa)
bool blender::uvedit_edge_select_test_ex (const ToolSettings *ts, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
bool blender::uvedit_edge_select_test (const Scene *scene, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
void blender::uvedit_edge_select_set_with_sticky (const Scene *scene, BMesh *bm, BMLoop *l, bool select, const BMUVOffsets &offsets)
static bool UNUSED_FUNCTION blender::bm_loop_select_vert_check_internal (const Scene *scene, BMesh *bm, BMLoop *l)
static bool blender::bm_loop_select_edge_check_internal (const Scene *scene, BMesh *bm, BMLoop *l)
void blender::uvedit_edge_select_shared_vert (const Scene *scene, BMesh *bm, BMLoop *l, const bool select, const int sticky_flag, const BMUVOffsets &offsets)
void blender::uvedit_edge_select_set_noflush (const Scene *scene, BMesh *bm, BMLoop *l, const bool select, const int sticky_flag, const BMUVOffsets &offsets)
void blender::uvedit_edge_select_set (const Scene *scene, BMesh *bm, BMLoop *l, bool select)
 Select UV Edge.
void blender::uvedit_edge_select_enable (const Scene *scene, BMesh *bm, BMLoop *l)
void blender::uvedit_edge_select_disable (const Scene *scene, BMesh *bm, BMLoop *l)
bool blender::uvedit_uv_select_test_ex (const ToolSettings *ts, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
bool blender::uvedit_uv_select_test (const Scene *scene, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
void blender::uvedit_uv_select_set_with_sticky (const Scene *scene, BMesh *bm, BMLoop *l, bool select, const BMUVOffsets &offsets)
void blender::uvedit_uv_select_shared_vert (const Scene *scene, BMesh *bm, BMLoop *l, const bool select, const int sticky_flag, const BMUVOffsets &offsets)
void blender::uvedit_uv_select_set (const Scene *scene, BMesh *bm, BMLoop *l, bool select)
 Select UV Vertex.
void blender::uvedit_uv_select_enable (const Scene *scene, BMesh *bm, BMLoop *l)
void blender::uvedit_uv_select_disable (const Scene *scene, BMesh *bm, BMLoop *l)
static BMLoop * blender::uvedit_loop_find_other_radial_loop_with_visible_face (const Scene *scene, BMLoop *l_src, const BMUVOffsets &offsets)
static BMLoop * blender::uvedit_loop_find_other_boundary_loop_with_visible_face (const Scene *scene, BMLoop *l_edge, BMVert *v_pivot, const BMUVOffsets &offsets)
Low Level Selection API
bool blender::uvedit_loop_vert_select_get (const ToolSettings *ts, const BMesh *bm, const BMLoop *l)
bool blender::uvedit_loop_edge_select_get (const ToolSettings *ts, const BMesh *bm, const BMLoop *l)
void blender::uvedit_loop_vert_select_set (const ToolSettings *ts, const BMesh *bm, BMLoop *l, const bool select)
void blender::uvedit_loop_edge_select_set (const ToolSettings *ts, const BMesh *bm, BMLoop *l, const bool select)
Find Nearest Elements
UvNearestHit blender::uv_nearest_hit_init_dist_px (const View2D *v2d, float dist_px)
UvNearestHit blender::uv_nearest_hit_init_max (const View2D *v2d)
UvNearestHit blender::uv_nearest_hit_init_max_default ()
void blender::uv_nearest_hit_elem_set_from_face (const float co[2], UvNearestHit *hit, short uv_selectmode)
bool blender::uv_find_nearest_edge (Scene *scene, Object *obedit, const float co[2], float penalty, UvNearestHit *hit)
bool blender::uv_find_nearest_edge_multi (Scene *scene, const Span< Object * > objects, const float co[2], const float penalty, UvNearestHit *hit)
bool blender::uv_find_nearest_face_ex (Scene *scene, Object *obedit, const float co[2], UvNearestHit *hit, bool only_in_face)
bool blender::uv_find_nearest_face (Scene *scene, Object *obedit, const float co[2], UvNearestHit *hit)
bool blender::uv_find_nearest_face_multi_ex (Scene *scene, const Span< Object * > objects, const float co[2], UvNearestHit *hit, const bool only_in_face)
bool blender::uv_find_nearest_face_multi (Scene *scene, const Span< Object * > objects, const float co[2], UvNearestHit *hit)
static bool blender::uv_nearest_between (const BMLoop *l, const float co[2], const int cd_loop_uv_offset)
bool blender::uv_find_nearest_vert (Scene *scene, Object *obedit, const float co[2], float penalty_dist, UvNearestHit *hit)
bool blender::uv_find_nearest_vert_multi (Scene *scene, const Span< Object * > objects, float const co[2], const float penalty_dist, UvNearestHit *hit)
static bool blender::uvedit_nearest_uv (const Scene *scene, Object *obedit, const float co[2], const float scale[2], const bool ignore_selected, float *dist_sq, float r_uv[2])
bool blender::ED_uvedit_nearest_uv_multi (const View2D *v2d, const Scene *scene, const Span< Object * > objects, const float mval_fl[2], const bool ignore_selected, float *dist_sq, float r_uv[2])
Find Nearest to Element

These functions are quite specialized, useful when sync select is enabled and we want to pick an active UV vertex/edge from the active element which may have multiple UVs split out.

BMLoop * blender::uv_find_nearest_loop_from_vert (Scene *scene, Object *obedit, BMVert *v, const float co[2])
BMLoop * blender::uv_find_nearest_loop_from_edge (Scene *scene, Object *obedit, BMEdge *e, const float co[2])
Helper functions for UV selection.
static bool blender::uvedit_select_pin_ok_or_report (const Scene *scene, ReportList *reports)
void blender::uvedit_select_prepare_custom_data (const Scene *scene, BMesh *bm)
void blender::uvedit_select_prepare_sync_select (const Scene *scene, BMesh *bm)
void blender::uvedit_select_prepare (const Scene *scene, BMesh *bm)
bool blender::uvedit_vert_is_edge_select_any_other (const ToolSettings *ts, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
bool blender::uvedit_edge_is_face_select_any_other (const ToolSettings *ts, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
bool blender::uvedit_vert_is_face_select_any_other (const ToolSettings *ts, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
bool blender::uvedit_vert_is_all_other_faces_selected (const ToolSettings *ts, const BMesh *bm, const BMLoop *l, const BMUVOffsets &offsets)
static void blender::bm_clear_uv_vert_selection (const Scene *scene, BMesh *bm)
UV Selection Non-Sync API
Note
this is for non-sync selection, where different rules apply and there is no expectation a selected UV implies it's base mesh selection flag also be set.
bool blender::uvedit_vert_select_get_no_sync (const ToolSettings *ts, const BMesh *bm, const BMLoop *l)
bool blender::uvedit_edge_select_get_no_sync (const ToolSettings *ts, const BMesh *bm, const BMLoop *l)
bool blender::uvedit_face_select_get_no_sync (const ToolSettings *ts, const BMesh *bm, const BMFace *f)
void blender::uvedit_vert_select_set_no_sync (const ToolSettings *ts, const BMesh *bm, BMLoop *l, bool select)
void blender::uvedit_edge_select_set_no_sync (const ToolSettings *ts, const BMesh *bm, BMLoop *l, bool select)
void blender::uvedit_face_select_set_no_sync (const ToolSettings *ts, const BMesh *bm, BMFace *f, bool select)
UV Select-Mode Flushing
void blender::ED_uvedit_selectmode_flush (const Scene *scene, BMesh *bm)
 UV Select Mode Flush.
UV Flush selection (up/down)
void blender::uvedit_select_flush_from_verts (const Scene *scene, BMesh *bm, bool select)
Face Loop Select
static int blender::uv_select_faceloop (Scene *scene, Object *obedit, UvNearestHit *hit, const bool extend)
Edge Ring Select
static int blender::uv_select_edgering (Scene *scene, Object *obedit, UvNearestHit *hit, const bool extend)
Select Linked
static bool blender::uv_select_linked_delimit_check (const BMFace *f_src, const BMLoop *l_vert_step, const BMFace *f_dst, const UVDelimitMode delimit_mode)
static void blender::uv_select_linked_multi (const Scene *scene, const Span< Object * > objects, UvNearestHit *hit, const bool extend, bool deselect, const bool toggle, const bool select_faces, const UVDelimitMode delimit_mode, const char hflag)
Select Linked Helper
static void blender::uv_circle_select_state_free (void *data)
const float * blender::uvedit_first_selected_uv_from_vertex (Scene *scene, const BMesh *bm, BMVert *eve, const BMUVOffsets &offsets)
Select More/Less Operator
static wmOperatorStatus blender::uv_select_more_less (bContext *C, const bool select)
static wmOperatorStatus blender::uv_select_more_exec (bContext *C, wmOperator *)
void blender::UV_OT_select_more (wmOperatorType *ot)
static wmOperatorStatus blender::uv_select_less_exec (bContext *C, wmOperator *)
void blender::UV_OT_select_less (wmOperatorType *ot)
Mouse Select Operator
static bool blender::uv_mouse_select_multi (bContext *C, const Span< Object * > objects, const float co[2], const SelectPick_Params &params)
static bool blender::uv_mouse_select (bContext *C, const float co[2], const SelectPick_Params &params)
static wmOperatorStatus blender::uv_select_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::UV_OT_select (wmOperatorType *ot)
Edge Loop Select Operator
static wmOperatorStatus blender::uv_select_loop_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_loop_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::UV_OT_select_loop (wmOperatorType *ot)
Edge Ring Select Operator
static wmOperatorStatus blender::uv_select_edge_ring_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_edge_ring_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::UV_OT_select_edge_ring (wmOperatorType *ot)
Select Linked Operator
static wmOperatorStatus blender::uv_select_linked_internal (bContext *C, wmOperator *op, const wmEvent *event, bool pick)
static wmOperatorStatus blender::uv_select_linked_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_linked (wmOperatorType *ot)
Select Linked (Cursor Pick) Operator
static wmOperatorStatus blender::uv_select_linked_pick_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::uv_select_linked_pick_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_linked_pick (wmOperatorType *ot)
Select Split Operator
static wmOperatorStatus blender::uv_select_split_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_split (wmOperatorType *ot)
Box Select Operator
static wmOperatorStatus blender::uv_box_select_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static wmOperatorStatus blender::uv_box_select_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_box (wmOperatorType *ot)
Circle Select Operator
static bool blender::uv_circle_select_is_point_inside (const float uv[2], const float offset[2], const float ellipse[2])
static bool blender::uv_circle_select_is_edge_inside (const float uv_a[2], const float uv_b[2], const float offset[2], const float ellipse[2])
static wmOperatorStatus blender::uv_circle_select_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_circle (wmOperatorType *ot)
Lasso Select Operator
static bool blender::do_lasso_select_mesh_uv_is_point_inside (const ARegion *region, const rcti *clip_rect, const Span< int2 > mcoords, const float co_test[2])
static bool blender::do_lasso_select_mesh_uv_is_edge_inside (const ARegion *region, const rcti *clip_rect, const Span< int2 > mcoords, const float co_test_a[2], const float co_test_b[2])
static bool blender::do_lasso_select_mesh_uv (bContext *C, const Span< int2 > mcoords, const eSelectOp sel_op)
static wmOperatorStatus blender::uv_lasso_select_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_lasso (wmOperatorType *ot)
Select Pinned UVs Operator
static wmOperatorStatus blender::uv_select_pinned_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_pinned (wmOperatorType *ot)
Selected Elements as Arrays (Vertex, Edge & Faces)

These functions return single elements per connected vertex/edge. So an edge that has two connected edge loops only assigns one loop in the array.

BMFace ** blender::ED_uvedit_selected_faces (const Scene *scene, BMesh *bm, int len_max, int *r_faces_len)
BMLoop ** blender::ED_uvedit_selected_edges (const Scene *scene, BMesh *bm, int len_max, int *r_edges_len)
BMLoop ** blender::ED_uvedit_selected_verts (const Scene *scene, BMesh *bm, int len_max, int *r_verts_len)
Select Mode UV Vert/Edge/Face/Island Operator
void blender::ED_uvedit_selectmode_clean (const Scene *scene, Object *obedit)
 UV Select Mode set.
void blender::ED_uvedit_selectmode_clean_multi (bContext *C)
void blender::ED_uvedit_sticky_selectmode_update (bContext *C)
static wmOperatorStatus blender::uv_select_mode_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_mode_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::UV_OT_select_mode (wmOperatorType *ot)
static wmOperatorStatus blender::uv_select_tile_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_tile_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::UV_OT_select_tile (wmOperatorType *ot)
static wmOperatorStatus blender::uv_custom_region_set_exec (bContext *C, wmOperator *op)
void blender::UV_OT_custom_region_set (wmOperatorType *ot)

Variables

static const EnumPropertyItem blender::uv_delimit_mode_items []

Edge Loop Select

enum  blender::eUVEdgeLoopBoundaryMode { blender::UV_EDGE_LOOP_BOUNDARY_LOOP = 1 , blender::UV_EDGE_LOOP_BOUNDARY_ALL = 2 }
static BMLoop * blender::bm_select_edgeloop_double_side_next (const Scene *scene, BMLoop *l_step, BMVert *v_from, const BMUVOffsets &offsets)
static BMLoop * blender::bm_select_edgeloop_single_side_next (const Scene *scene, BMLoop *l_step, BMVert *v_from, const BMUVOffsets &offsets)
static void blender::bm_loop_tags_clear (BMesh *bm)
static void blender::uv_select_edgeloop_double_side_tag (const Scene *scene, BMesh *bm, BMLoop *l_init_pair[2], const BMUVOffsets &offsets)
static void blender::uv_select_edgeloop_single_side_tag (const Scene *scene, BMesh *bm, BMLoop *l_init, const BMUVOffsets &offsets, enum eUVEdgeLoopBoundaryMode boundary_mode, int r_count_by_select[2])
static int blender::uv_select_edgeloop (Scene *scene, Object *obedit, UvNearestHit *hit, const bool extend)

Shared Edge Loop/Ring Select Operator Functions

enum  blender::eUVLoopGenericType { blender::UV_LOOP_SELECT = 1 , blender::UV_RING_SELECT = 2 }
static wmOperatorStatus blender::uv_mouse_select_loop_generic_multi (bContext *C, const Span< Object * > objects, const float co[2], const bool extend, enum eUVLoopGenericType loop_type)
static wmOperatorStatus blender::uv_mouse_select_loop_generic (bContext *C, const float co[2], const bool extend, enum eUVLoopGenericType loop_type)

Select Overlap Operator

enum class  blender::UVWinding { blender::Positive = 0 , blender::Negative = 1 }
static bool blender::overlap_tri_tri_uv_test (const float t1[3][2], const float t2[3][2], const float endpoint_bias)
static wmOperatorStatus blender::uv_select_overlap (bContext *C, const bool extend, const bool select_island)
static wmOperatorStatus blender::uv_select_overlap_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_overlap (wmOperatorType *ot)
static wmOperatorStatus blender::uv_select_by_winding_exec (bContext *C, wmOperator *op)
void blender::UV_OT_select_by_winding (wmOperatorType *ot)

Select Similar Operator

static EnumPropertyItem blender::uv_select_similar_type_items []
static EnumPropertyItem blender::prop_similar_compare_types []
static float blender::get_uv_vert_needle (const eUVSelectSimilar type, BMVert *vert, const float ob_m3[3][3], BMLoop *loop, const BMUVOffsets &offsets)
static float blender::get_uv_edge_needle (const eUVSelectSimilar type, BMEdge *edge, const float ob_m3[3][3], BMLoop *loop_a, BMLoop *loop_b, const BMUVOffsets &offsets)
static float blender::get_uv_face_needle (const eUVSelectSimilar type, BMFace *face, const int ob_index, const float ob_m3[3][3], const BMUVOffsets &offsets, const Span< int > material_remap)
static float blender::get_uv_island_needle (const eUVSelectSimilar type, const FaceIsland *island, const float ob_m3[3][3], const BMUVOffsets &offsets)
static wmOperatorStatus blender::uv_select_similar_vert_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_similar_edge_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_similar_face_exec (bContext *C, wmOperator *op)
static bool blender::uv_island_selected (const Scene *scene, const BMesh *bm, FaceIsland *island)
static wmOperatorStatus blender::uv_select_similar_island_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_select_similar_exec (bContext *C, wmOperator *op)
static const EnumPropertyItem * blender::uv_select_similar_type_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
void blender::UV_OT_select_similar (wmOperatorType *ot)

Macro Definition Documentation

◆ CURR_FACE_IS_UNSEL

#define CURR_FACE_IS_UNSEL   2

◆ NEIGHBORING_FACE_IS_SEL

#define NEIGHBORING_FACE_IS_SEL   1

◆ SET_SELECTION

#define SET_SELECTION ( value)
Value:
if (select_faces) { \
if (hflag == BM_ELEM_SELECT) { \
BM_face_select_set(bm, efa, value); \
} \
else { \
BM_elem_flag_set(efa, hflag, value); \
} \
} \
else { \
uvedit_face_select_set(scene, bm, efa, value); \
} \
(void)0

Referenced by blender::uv_select_linked_multi().