Blender V5.3
uvedit_intern.hh File Reference
#include "BKE_customdata.hh"

Go to the source code of this file.

Classes

struct  blender::UvNearestHit

Namespaces

namespace  blender
 BMesh Iterators.

Functions

bool blender::uv_find_nearest_vert_multi (Scene *scene, Span< Object * > objects, const float co[2], float penalty_dist, UvNearestHit *hit)
bool blender::uv_find_nearest_edge_multi (Scene *scene, Span< Object * > objects, const float co[2], float penalty, UvNearestHit *hit)
bool blender::uv_find_nearest_face_multi_ex (Scene *scene, Span< Object * > objects, const float co[2], UvNearestHit *hit, bool only_in_face)
bool blender::uv_find_nearest_face_multi (Scene *scene, Span< Object * > objects, const float co[2], UvNearestHit *hit)
void blender::UV_OT_stitch (wmOperatorType *ot)
void blender::UV_OT_copy (wmOperatorType *ot)
void blender::UV_OT_paste (wmOperatorType *ot)
bool blender::uvedit_select_is_any_selected_multi (const Scene *scene, Span< Object * > objects)
bool blender::uv_stitch_selected_islands_for_original_bounds (const Scene *scene, Span< Object * > objects)
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_vert (Scene *scene, Object *obedit, const float co[2], float penalty_dist, UvNearestHit *hit)
bool blender::uv_find_nearest_edge (Scene *scene, Object *obedit, const float co[2], 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)
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.
bool blender::uvedit_vert_is_edge_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_edge_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)
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)
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)
Live Unwrap Utilities
void blender::uvedit_live_unwrap_update (SpaceImage *sima, Scene *scene, Object *obedit)
Average UV Islands Scale Operator
void blender::UV_OT_average_islands_scale (wmOperatorType *ot)
Cube UV Project Operator
void blender::UV_OT_cube_project (wmOperatorType *ot)
Cylinder UV Project Operator
void blender::UV_OT_cylinder_project (wmOperatorType *ot)
Project UV From View Operator
void blender::UV_OT_project_from_view (wmOperatorType *ot)
Minimize Stretch Operator
void blender::UV_OT_minimize_stretch (wmOperatorType *ot)
Pack UV Islands Operator
void blender::UV_OT_pack_islands (wmOperatorType *ot)
Reset UV Operator
void blender::UV_OT_reset (wmOperatorType *ot)
Sphere UV Project Operator
void blender::UV_OT_sphere_project (wmOperatorType *ot)
UV Unwrap Operator
void blender::UV_OT_unwrap (wmOperatorType *ot)
UV Rip Operator
void blender::UV_OT_rip (wmOperatorType *ot)
Smart UV Project Operator
void blender::UV_OT_smart_project (wmOperatorType *ot)
Mark Seam Operator
void blender::UV_OT_copy_mirrored_faces (wmOperatorType *ot)
Main Operator for vert/edge/face tag
void blender::UV_OT_shortest_path_pick (wmOperatorType *ot)
Select Path Between Existing Selection
void blender::UV_OT_shortest_path_select (wmOperatorType *ot)
(De)Select All Operator
bool blender::uvedit_select_is_any_selected (const Scene *scene, BMesh *bm)
void blender::UV_OT_select_all (wmOperatorType *ot)
Select Linked Helper
const float * blender::uvedit_first_selected_uv_from_vertex (Scene *scene, const BMesh *bm, BMVert *eve, const BMUVOffsets &offsets)
Mouse Select Operator
void blender::UV_OT_select (wmOperatorType *ot)
Edge Loop Select Operator
void blender::UV_OT_select_loop (wmOperatorType *ot)
Edge Ring Select Operator
void blender::UV_OT_select_edge_ring (wmOperatorType *ot)
Select Linked Operator
void blender::UV_OT_select_linked (wmOperatorType *ot)
Select Linked (Cursor Pick) Operator
void blender::UV_OT_select_linked_pick (wmOperatorType *ot)
Select Split Operator
void blender::UV_OT_select_split (wmOperatorType *ot)
Select Pinned UVs Operator
void blender::UV_OT_select_pinned (wmOperatorType *ot)
Box Select Operator
void blender::UV_OT_select_box (wmOperatorType *ot)
Lasso Select Operator
void blender::UV_OT_select_lasso (wmOperatorType *ot)
Circle Select Operator
void blender::UV_OT_select_circle (wmOperatorType *ot)
Select More/Less Operator
void blender::UV_OT_select_more (wmOperatorType *ot)
void blender::UV_OT_select_less (wmOperatorType *ot)
Select Overlap Operator
void blender::UV_OT_select_overlap (wmOperatorType *ot)
void blender::UV_OT_select_by_winding (wmOperatorType *ot)
Select Similar Operator
void blender::UV_OT_select_similar (wmOperatorType *ot)
Select Mode UV Vert/Edge/Face/Island Operator
void blender::UV_OT_select_tile (wmOperatorType *ot)
void blender::UV_OT_custom_region_set (wmOperatorType *ot)
void blender::UV_OT_select_mode (wmOperatorType *ot)