Blender V4.3
uvedit_path.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "BLI_linklist.h"
#include "DNA_windowmanager_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_ghash.h"
#include "BLI_math_vector.h"
#include "BLI_utildefines.h"
#include "DNA_image_types.h"
#include "DNA_mesh_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_space_types.h"
#include "BKE_context.hh"
#include "BKE_customdata.hh"
#include "BKE_editmesh.hh"
#include "BKE_layer.hh"
#include "BKE_mesh.hh"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_query.hh"
#include "ED_object.hh"
#include "ED_screen.hh"
#include "ED_uvedit.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_view2d.hh"
#include "intern/bmesh_marking.hh"
#include "uvedit_intern.hh"
#include "bmesh_tools.hh"

Go to the source code of this file.

Classes

struct  PathSelectParams
 
struct  UserData_UV
 

Functions

Path Select Struct & Properties
static void path_select_properties (wmOperatorType *ot)
 
static void path_select_params_from_op (wmOperator *op, PathSelectParams *op_params)
 
UV Vert Path
static bool verttag_filter_cb (BMLoop *l, void *user_data_v)
 
static bool verttag_test_cb (BMLoop *l, void *user_data_v)
 
static void verttag_set_cb (BMLoop *l, bool val, void *user_data_v)
 
static int mouse_mesh_uv_shortest_path_vert (Scene *scene, Object *obedit, const PathSelectParams *op_params, BMLoop *l_src, BMLoop *l_dst, const float aspect_y, const BMUVOffsets offsets)
 
UV Edge Path
static bool edgetag_filter_cb (BMLoop *l, void *user_data_v)
 
static bool edgetag_test_cb (BMLoop *l, void *user_data_v)
 
static void edgetag_set_cb (BMLoop *l, bool val, void *user_data_v)
 
static int mouse_mesh_uv_shortest_path_edge (Scene *scene, Object *obedit, const PathSelectParams *op_params, BMLoop *l_src, BMLoop *l_dst, const float aspect_y, const BMUVOffsets offsets)
 
UV Face Path
static bool facetag_filter_cb (BMFace *f, void *user_data_v)
 
static bool facetag_test_cb (BMFace *f, void *user_data_v)
 
static void facetag_set_cb (BMFace *f, bool val, void *user_data_v)
 
static int mouse_mesh_uv_shortest_path_face (Scene *scene, Object *obedit, const PathSelectParams *op_params, BMFace *f_src, BMFace *f_dst, const float aspect_y, const BMUVOffsets offsets)
 
Main Operator for vert/edge/face tag
static int uv_shortest_path_pick_exec (bContext *C, wmOperator *op)
 
static bool uv_shortest_path_pick_ex (Scene *scene, Depsgraph *depsgraph, Object *obedit, const PathSelectParams *op_params, BMElem *ele_src, BMElem *ele_dst, const float aspect_y, const BMUVOffsets offsets)
 
static int uv_shortest_path_pick_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void UV_OT_shortest_path_pick (wmOperatorType *ot)
 
Select Path Between Existing Selection
static int uv_shortest_path_select_exec (bContext *C, wmOperator *op)
 
void UV_OT_shortest_path_select (wmOperatorType *ot)
 

Detailed Description

Note
The logic in this file closely follows editmesh_path.cc.

Definition in file uvedit_path.cc.

Function Documentation

◆ edgetag_filter_cb()

static bool edgetag_filter_cb ( BMLoop * l,
void * user_data_v )
static

◆ edgetag_set_cb()

static void edgetag_set_cb ( BMLoop * l,
bool val,
void * user_data_v )
static

◆ edgetag_test_cb()

◆ facetag_filter_cb()

static bool facetag_filter_cb ( BMFace * f,
void * user_data_v )
static

Definition at line 367 of file uvedit_path.cc.

References UserData_UV::scene, and uvedit_face_visible_test().

Referenced by mouse_mesh_uv_shortest_path_face().

◆ facetag_set_cb()

static void facetag_set_cb ( BMFace * f,
bool val,
void * user_data_v )
static

◆ facetag_test_cb()

static bool facetag_test_cb ( BMFace * f,
void * user_data_v )
static

◆ mouse_mesh_uv_shortest_path_edge()

◆ mouse_mesh_uv_shortest_path_face()

◆ mouse_mesh_uv_shortest_path_vert()

◆ path_select_params_from_op()

◆ path_select_properties()

static void path_select_properties ( wmOperatorType * ot)
static

◆ UV_OT_shortest_path_pick()

◆ UV_OT_shortest_path_select()

◆ uv_shortest_path_pick_ex()

◆ uv_shortest_path_pick_exec()

◆ uv_shortest_path_pick_invoke()

◆ uv_shortest_path_select_exec()

◆ verttag_filter_cb()

static bool verttag_filter_cb ( BMLoop * l,
void * user_data_v )
static

◆ verttag_set_cb()

◆ verttag_test_cb()