Blender V5.3
uvedit_smart_stitch.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <fmt/format.h>
#include "MEM_guardedalloc.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "BLI_ghash.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_span.hh"
#include "BLT_translation.hh"
#include "BKE_context.hh"
#include "BKE_customdata.hh"
#include "BKE_editmesh.hh"
#include "BKE_layer.hh"
#include "BKE_mesh_mapping.hh"
#include "BKE_report.hh"
#include "BKE_screen.hh"
#include "DEG_depsgraph.hh"
#include "ED_mesh.hh"
#include "ED_screen.hh"
#include "ED_space_api.hh"
#include "ED_uvedit.hh"
#include "GPU_batch.hh"
#include "GPU_state.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_resources.hh"
#include "UI_view2d.hh"
#include "uvedit_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define STITCH_NO_PREVIEW   -1

Functions

static void blender::stitch_state_init_free (StitchStateInit *state_init)
static StitchPreviewer * blender::stitch_preview_init ()
static void blender::stitch_preview_delete (StitchPreviewer *stitch_preview)
static void blender::stitch_update_header (StitchStateContainer *ssc, bContext *C)
static void blender::stitch_uv_rotate (const float mat[2][2], const float medianPoint[2], float uv[2], float aspect)
static bool blender::stitch_check_uvs_stitchable (const int cd_loop_uv_offset, UvElement *element, UvElement *element_iter, StitchStateContainer *ssc)
static bool blender::stitch_check_edges_stitchable (const int cd_loop_uv_offset, UvEdge *edge, UvEdge *edge_iter, StitchStateContainer *ssc, StitchState *state)
static bool blender::stitch_check_uvs_state_stitchable (const int cd_loop_uv_offset, UvElement *element, UvElement *element_iter, StitchStateContainer *ssc)
static bool blender::stitch_check_edges_state_stitchable (const int cd_loop_uv_offset, UvEdge *edge, UvEdge *edge_iter, StitchStateContainer *ssc, StitchState *state)
static void blender::stitch_calculate_island_snapping (const int cd_loop_uv_offset, StitchState *state, PreviewPosition *preview_position, StitchPreviewer *preview, IslandStitchData *island_stitch_data, int final)
static void blender::stitch_island_calculate_edge_rotation (const int cd_loop_uv_offset, UvEdge *edge, StitchStateContainer *ssc, StitchState *state, UVVertAverage *uv_average, const uint *uvfinal_map, IslandStitchData *island_stitch_data)
static void blender::stitch_island_calculate_vert_rotation (const int cd_loop_uv_offset, UvElement *element, StitchStateContainer *ssc, StitchState *state, IslandStitchData *island_stitch_data)
static void blender::state_delete (StitchState *state)
static void blender::state_delete_all (StitchStateContainer *ssc)
static void blender::stitch_uv_edge_generate_linked_edges (GHash *edge_hash, StitchState *state)
static bool blender::stitch_island_pair_excluded (const StitchStateContainer *ssc, const StitchState *state, const IslandStitchData *island_stitch_data, const int island_a, const int island_b)
static void blender::determine_uv_stitchability (const int cd_loop_uv_offset, UvElement *element, StitchStateContainer *ssc, StitchState *state, IslandStitchData *island_stitch_data)
static void blender::determine_uv_edge_stitchability (const int cd_loop_uv_offset, UvEdge *edge, StitchStateContainer *ssc, StitchState *state, IslandStitchData *island_stitch_data)
static void blender::stitch_set_face_preview_buffer_position (BMFace *efa, StitchPreviewer *preview, PreviewPosition *preview_position)
static void blender::stitch_setup_face_preview_for_uv_group (UvElement *element, StitchStateContainer *ssc, StitchState *state, IslandStitchData *island_stitch_data, PreviewPosition *preview_position)
static void blender::stitch_validate_uv_stitchability (const int cd_loop_uv_offset, UvElement *element, StitchStateContainer *ssc, StitchState *state, IslandStitchData *island_stitch_data, PreviewPosition *preview_position)
static void blender::stitch_validate_edge_stitchability (const int cd_loop_uv_offset, UvEdge *edge, StitchStateContainer *ssc, StitchState *state, IslandStitchData *island_stitch_data, PreviewPosition *preview_position)
static void blender::stitch_propagate_uv_final_position (const Scene *scene, UvElement *element, int index, PreviewPosition *preview_position, UVVertAverage *final_position, StitchStateContainer *ssc, StitchState *state, const bool final)
static void blender::stitch_determine_seam_bounded_islands (StitchState *state, IslandStitchData *island_stitch_data)
static int blender::stitch_process_data (StitchStateContainer *ssc, StitchState *state, const Scene *scene, int final)
static int blender::stitch_process_data_all (StitchStateContainer *ssc, const Scene *scene, int final)
static uint blender::uv_edge_hash (const void *key)
static bool blender::uv_edge_compare (const void *a, const void *b)
static void blender::stitch_select_edge (UvEdge *edge, StitchState *state, int always_select)
static void blender::stitch_select_uv (UvElement *element, StitchState *state, int always_select)
static void blender::stitch_set_selection_mode (StitchState *state, const char from_stitch_mode)
static void blender::stitch_switch_selection_mode_all (StitchStateContainer *ssc)
static void blender::stitch_calculate_edge_normal (const int cd_loop_uv_offset, UvEdge *edge, float *normal, float aspect)
static void blender::stitch_draw_vbo (gpu::VertBuf *vbo, GPUPrimType prim_type, const float col[4])
static void blender::stitch_draw (const bContext *, ARegion *, void *arg)
static UvEdge * blender::uv_edge_get (BMLoop *l, StitchState *state)
static StitchState * blender::stitch_init (const Scene *scene, StitchStateContainer *ssc, Object *obedit, const StitchModes stored_mode, const Span< UvElementID > to_select)
static bool blender::goto_next_island (StitchStateContainer *ssc)
static StitchStateInit blender::stitch_extract_rna_selection (wmOperator *op, const Span< Object * > objects)
static StitchStateContainer * blender::stitch_settings_init_for_operator (const Span< Object * > objects, Scene *scene, wmOperator *op)
static StitchStateContainer * blender::stitch_settings_init_for_original_bounds ()
static int blender::stitch_init_all (const Scene *scene, Span< Object * > objects, ARegion *region, StitchStateContainer *ssc, const StitchModes stored_mode, wmOperator *op)
bool blender::uv_stitch_selected_islands_for_original_bounds (const Scene *scene, Span< Object * > objects)
static StitchStateContainer * blender::stitch_init_from_operator (bContext *C, wmOperator *op)
static wmOperatorStatus blender::stitch_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void blender::stitch_exit (bContext *C, wmOperator *op, int finished)
static void blender::stitch_cancel (bContext *C, wmOperator *op)
static wmOperatorStatus blender::stitch_exec (bContext *C, wmOperator *op)
static StitchState * blender::stitch_select (bContext *C, Scene *scene, const wmEvent *event, StitchStateContainer *ssc)
static wmOperatorStatus blender::stitch_modal (bContext *C, wmOperator *op, const wmEvent *event)
void blender::UV_OT_stitch (wmOperatorType *ot)

Macro Definition Documentation

◆ STITCH_NO_PREVIEW