Blender V5.3
uvedit_rip.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_ghash.hh"
#include "BLI_linklist_stack.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_utildefines.hh"
#include "DNA_mesh_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_types.hh"
#include "BKE_report.hh"
#include "DEG_depsgraph.hh"
#include "ED_mesh.hh"
#include "ED_screen.hh"
#include "ED_transform.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 "uvedit_intern.hh"

Go to the source code of this file.

Classes

struct  blender::ULData
struct  blender::UVRipSingle
struct  blender::UVRipPairs

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define UV_SET_SIDE_AND_REMOVE_FROM_RAIL(loop, side_value)

Functions

UV Loop Rip Data Struct
 blender::BLI_STATIC_ASSERT (sizeof(ULData)<=sizeof(int), "")
BLI_INLINE ULData * blender::UL (BMLoop *l)
UV Utilities
static BMLoop * blender::bm_loop_find_other_radial_loop_with_visible_face (BMLoop *l_src, const int cd_loop_uv_offset)
static BMLoop * blender::bm_loop_find_other_fan_loop_with_visible_face (BMLoop *l_src, BMVert *v_src, const int cd_loop_uv_offset)
static BMLoop * blender::bm_vert_step_fan_loop_uv (BMLoop *l, BMEdge **e_step, const int cd_loop_uv_offset)
static void blender::bm_loop_uv_select_single_vert_validate (BMLoop *l_init, const int cd_loop_uv_offset)
static void blender::bm_loop_calc_uv_angle_from_dir (BMLoop *l, const float dir[2], const float aspect_y, const int cd_loop_uv_offset, float *r_corner_angle, float *r_edge_angle, int *r_edge_index)
UV Rip Single
static UVRipSingle * blender::uv_rip_single_from_loop (BMLoop *l_init_orig, const float co[2], const float aspect_y, const int cd_loop_uv_offset)
static void blender::uv_rip_single_free (UVRipSingle *rip)
UV Rip Loop Pairs
static void blender::uv_rip_pairs_add (UVRipPairs *rip, BMLoop *l)
static void blender::uv_rip_pairs_remove (UVRipPairs *rip, BMLoop *l)
static float blender::uv_rip_pairs_calc_uv_angle (BMLoop *l_init, uint side, const float aspect_y, const int cd_loop_uv_offset)
static int blender::uv_rip_pairs_loop_count_on_side (BMLoop *l_init, uint side, const int cd_loop_uv_offset)
static bool blender::uv_rip_pairs_loop_change_sides_test (BMLoop *l_switch, BMLoop *l_target, const float aspect_y, const int cd_loop_uv_offset)
static UVRipPairs * blender::uv_rip_pairs_from_loop (BMLoop *l_init, const float aspect_y, const int cd_loop_uv_offset)
static void blender::uv_rip_pairs_free (UVRipPairs *rip)
static bool blender::uv_rip_pairs_calc_center_and_direction (UVRipPairs *rip, const int cd_loop_uv_offset, float r_center[2], float r_dir_side[2][2])
UV Rip Main Function
static bool blender::uv_rip_object (Scene *scene, Object *obedit, const float co[2], const float aspect_y, ReportList *reports)
UV Rip Operator
static wmOperatorStatus blender::uv_rip_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::uv_rip_invoke (bContext *C, wmOperator *op, const wmEvent *event)
void blender::UV_OT_rip (wmOperatorType *ot)

Macro Definition Documentation

◆ UV_SET_SIDE_AND_REMOVE_FROM_RAIL

#define UV_SET_SIDE_AND_REMOVE_FROM_RAIL ( loop,
side_value )
Value:
{ \
BLI_assert(UL(loop)->side_was_swapped == false); \
BLI_assert(UL(loop)->side != side_value); \
if (!UL(loop)->in_stack) { \
BLI_SMALLSTACK_PUSH(stack, loop); \
UL(loop)->in_stack = true; \
} \
if (UL(loop)->in_rip_pairs) { \
uv_rip_pairs_remove(rip, loop); \
} \
UL(loop)->side = side_value; \
UL(loop)->side_was_swapped = true; \
}

Referenced by blender::uv_rip_pairs_from_loop().