|
Blender V4.3
|
#include <cmath>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "DNA_windowmanager_types.h"#include "BLI_ghash.h"#include "BLI_math_matrix.h"#include "BLI_math_rotation.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BLI_utildefines.h"#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 "DEG_depsgraph.hh"#include "UI_interface.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.
Classes | |
| struct | StitchPreviewer |
| struct | IslandStitchData |
| struct | UVVertAverage |
| struct | UvEdge |
| struct | StitchState |
| struct | StitchStateContainer |
| struct | PreviewPosition |
| struct | UvElementID |
| struct | StitchStateInit |
Macros | |
| #define | STITCH_NO_PREVIEW -1 |
Enumerations | |
| enum | { STITCH_SELECTED = 1 , STITCH_STITCHABLE = 2 , STITCH_PROCESSED = 4 , STITCH_BOUNDARY = 8 , STITCH_STITCHABLE_CANDIDATE = 16 } |
| enum | StitchModes { STITCH_VERT , STITCH_EDGE } |
| #define STITCH_NO_PREVIEW -1 |
Definition at line 215 of file uvedit_smart_stitch.cc.
Referenced by stitch_process_data(), stitch_propagate_uv_final_position(), and stitch_set_face_preview_buffer_position().
| anonymous enum |
| Enumerator | |
|---|---|
| STITCH_SELECTED | |
| STITCH_STITCHABLE | |
| STITCH_PROCESSED | |
| STITCH_BOUNDARY | |
| STITCH_STITCHABLE_CANDIDATE | |
Definition at line 207 of file uvedit_smart_stitch.cc.
| enum StitchModes |
| Enumerator | |
|---|---|
| STITCH_VERT | |
| STITCH_EDGE | |
Definition at line 217 of file uvedit_smart_stitch.cc.
|
static |
Definition at line 756 of file uvedit_smart_stitch.cc.
References UvEdge::element, UvEdge::first, UvElement::island, UvEdge::next, state, stitch_check_edges_stitchable(), STITCH_STITCHABLE_CANDIDATE, and IslandStitchData::stitchableCandidate.
Referenced by stitch_process_data().
|
static |
Definition at line 738 of file uvedit_smart_stitch.cc.
References BM_uv_element_get_head(), UvElement::island, UvElement::next, UvElement::separate, state, stitch_check_uvs_stitchable(), STITCH_STITCHABLE_CANDIDATE, and IslandStitchData::stitchableCandidate.
Referenced by stitch_process_data().
|
static |
Definition at line 2153 of file uvedit_smart_stitch.cc.
References StitchStateContainer::active_object_index, StitchState::element_map, StitchState::island_is_stitchable, StitchStateContainer::objects_len, StitchStateContainer::states, StitchStateContainer::static_island, and UvElementMap::total_islands.
Referenced by stitch_init_all(), and stitch_modal().
|
static |
Definition at line 609 of file uvedit_smart_stitch.cc.
References BLI_ghash_free(), BM_uv_element_map_free(), MEM_freeN(), state, and stitch_preview_delete().
Referenced by state_delete_all(), and stitch_init().
|
static |
Definition at line 645 of file uvedit_smart_stitch.cc.
References MEM_freeN(), StitchStateContainer::objects, StitchStateContainer::objects_len, state_delete(), and StitchStateContainer::states.
Referenced by stitch_exit(), and stitch_init_all().
|
static |
Definition at line 1643 of file uvedit_smart_stitch.cc.
References BM_ELEM_CD_GET_FLOAT_P, BMLoop::next, normalize_v2(), and sub_v2_v2v2().
Referenced by stitch_init().
|
static |
Definition at line 406 of file uvedit_smart_stitch.cc.
References add_v2_v2(), angle_to_mat2(), BM_ELEM_CD_GET_FLOAT_P, BM_elem_index_get, PreviewPosition::data_position, element, float, l, M_PI, M_PI_2, IslandStitchData::medianPoint, IslandStitchData::num_rot_elements, IslandStitchData::num_rot_elements_neg, IslandStitchData::numOfElements, StitchPreviewer::preview_polys, IslandStitchData::rotation, IslandStitchData::rotation_neg, state, STITCH_PROCESSED, STITCH_SELECTED, stitch_uv_rotate(), and IslandStitchData::translation.
Referenced by stitch_process_data().
|
static |
Definition at line 2457 of file uvedit_smart_stitch.cc.
References stitch_exit().
Referenced by stitch_exec(), stitch_modal(), and UV_OT_stitch().
|
static |
Definition at line 390 of file uvedit_smart_stitch.cc.
References UvEdge::element, UvElement::island, StitchStateContainer::midpoints, StitchStateContainer::snap_islands, state, and stitch_check_edges_stitchable().
Referenced by stitch_process_data(), and stitch_validate_edge_stitchability().
|
static |
Definition at line 345 of file uvedit_smart_stitch.cc.
References BM_ELEM_CD_GET_FLOAT_P, fabsf, StitchStateContainer::limit_dist, state, StitchStateContainer::use_limit, UvEdge::uv1, and UvEdge::uv2.
Referenced by determine_uv_edge_stitchability(), and stitch_check_edges_state_stitchable().
|
static |
Definition at line 376 of file uvedit_smart_stitch.cc.
References UvElement::island, StitchStateContainer::midpoints, StitchStateContainer::snap_islands, and stitch_check_uvs_stitchable().
Referenced by stitch_island_calculate_vert_rotation(), stitch_process_data(), and stitch_validate_uv_stitchability().
|
static |
Definition at line 316 of file uvedit_smart_stitch.cc.
References BM_ELEM_CD_GET_FLOAT_P, fabsf, l, UvElement::l, StitchStateContainer::limit_dist, and StitchStateContainer::use_limit.
Referenced by determine_uv_stitchability(), and stitch_check_uvs_state_stitchable().
Definition at line 1677 of file uvedit_smart_stitch.cc.
References BLI_assert, col, GPU_blend(), GPU_BLEND_ALPHA, GPU_BLEND_NONE, GPU_COMP_F32, GPU_FETCH_FLOAT, GPU_point_size(), GPU_PRIM_LINES, GPU_PRIM_POINTS, GPU_PRIM_TRIS, GPU_vertbuf_attr_set(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), StitchStateContainer::mode, StitchPreviewer::num_polys, StitchPreviewer::num_static_tris, StitchPreviewer::num_stitchable, StitchPreviewer::num_unstitchable, StitchStateContainer::objects_len, StitchPreviewer::preview_polys, StitchPreviewer::preview_stitchable, StitchPreviewer::preview_unstitchable, state, StitchStateContainer::states, StitchPreviewer::static_tris, stitch_draw_vbo(), STITCH_VERT, TH_STITCH_PREVIEW_ACTIVE, TH_STITCH_PREVIEW_EDGE, TH_STITCH_PREVIEW_FACE, TH_STITCH_PREVIEW_STITCHABLE, TH_STITCH_PREVIEW_UNSTITCHABLE, TH_VERTEX_SIZE, UI_GetThemeColor4fv(), UI_GetThemeValuef(), and StitchPreviewer::uvs_per_polygon.
Referenced by stitch_init_all().
|
static |
Definition at line 1666 of file uvedit_smart_stitch.cc.
References batch, col, GPU_batch_create_ex(), GPU_batch_discard(), GPU_batch_draw(), GPU_BATCH_OWNS_VBO, GPU_batch_program_set_builtin(), GPU_batch_uniform_4fv, and GPU_SHADER_3D_UNIFORM_COLOR.
Referenced by stitch_draw().
|
static |
Definition at line 2462 of file uvedit_smart_stitch.cc.
References CTX_data_scene(), wmOperator::customdata, OPERATOR_CANCELLED, OPERATOR_FINISHED, stitch_cancel(), stitch_exit(), stitch_init_all(), and stitch_process_data_all().
Referenced by UV_OT_stitch().
|
static |
Definition at line 2372 of file uvedit_smart_stitch.cc.
References StitchStateContainer::active_object_index, BKE_editmesh_from_object(), BMEditMesh::bm, BM_elem_index_get, StitchStateContainer::clear_seams, CTX_data_scene(), CTX_wm_area(), CTX_wm_region(), CTX_wm_space_image(), wmOperator::customdata, Object::data, DEG_id_tag_update(), StitchStateContainer::draw_handle, ED_region_draw_cb_exit(), ED_workspace_status_text(), element, StitchStateContainer::limit_dist, MEM_freeN(), MEM_mallocN, StitchStateContainer::midpoints, StitchStateContainer::mode, NC_GEOM, ND_DATA, StitchStateContainer::objects_len, wmOperator::ptr, RNA_boolean_set(), RNA_collection_add(), RNA_collection_clear(), RNA_def_property_array(), RNA_enum_set(), RNA_float_set(), RNA_int_set(), RNA_int_set_array(), RNA_struct_find_property(), StitchStateContainer::snap_islands, state, state_delete_all(), StitchStateContainer::states, StitchStateContainer::static_island, STITCH_VERT, BMesh::totvertsel, StitchStateContainer::use_limit, ToolSettings::uv_flag, UV_SYNC_SELECTION, uvedit_live_unwrap_update(), and WM_event_add_notifier().
Referenced by stitch_cancel(), stitch_exec(), and stitch_modal().
|
static |
Definition at line 1828 of file uvedit_smart_stitch.cc.
References add_v2_v2(), BKE_editmesh_from_object(), BLI_assert, BLI_ghash_free(), BLI_ghash_insert(), BLI_ghash_len(), BLI_ghash_lookup(), BLI_ghash_new(), BLI_ghashIterator_getKey(), BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_HIDDEN, BM_ELEM_SELECT, BM_FACE, BM_face_at_index(), BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_iter_at_index(), BM_ITER_ELEM, BM_ITER_ELEM_INDEX, BM_ITER_MESH, BM_LOOPS_OF_FACE, BM_mesh_elem_table_ensure(), BM_uv_element_get(), BM_uv_element_map_create(), BM_uv_map_get_offsets(), CTX_data_scene(), ED_uvedit_get_aspect_y(), element, UvEdge::element, UvElementID::elementIndex, UvElementID::faceIndex, UvEdge::first, UvEdge::flag, GHASH_ITER, l, BMFace::len, MEM_callocN, MEM_freeN(), MEM_mallocN, StitchStateContainer::mode, BMLoop::next, UvEdge::next, normalize_v2(), wmOperator::ptr, RNA_enum_get(), SCE_SELECT_VERTEX, BMEditMesh::selectmode, state, state_delete(), STITCH_BOUNDARY, stitch_calculate_edge_normal(), stitch_process_data(), stitch_select_edge(), stitch_select_uv(), stitch_set_selection_mode(), stitch_uv_edge_generate_linked_edges(), STITCH_VERT, StitchStateInit::to_select, BMesh::totvert, BMUVOffsets::uv, UvEdge::uv1, UvEdge::uv2, uv_edge_compare(), uv_edge_get(), uv_edge_hash(), ToolSettings::uv_flag, StitchStateInit::uv_selected_count, UV_SYNC_SELECTION, uvedit_edge_select_test(), and uvedit_uv_select_test().
Referenced by stitch_init_all().
|
static |
Definition at line 2180 of file uvedit_smart_stitch.cc.
References StitchStateContainer::active_object_index, BKE_report(), BKE_reportf(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data_with_uvs(), BLI_assert, StitchStateContainer::clear_seams, CTX_data_scene(), CTX_data_view_layer(), CTX_wm_region(), CTX_wm_view3d(), wmOperator::customdata, StitchStateContainer::draw_handle, ED_region_draw_cb_activate(), UvElementID::elementIndex, UvElementID::faceIndex, goto_next_island(), StitchStateContainer::limit_dist, MEM_callocN, MEM_mallocN, MEM_SAFE_FREE, StitchStateContainer::midpoints, StitchStateContainer::mode, StitchStateContainer::objects, StitchStateContainer::objects_len, wmOperator::ptr, REGION_DRAW_POST_VIEW, wmOperator::reports, RNA_BEGIN, RNA_boolean_get(), RNA_collection_clear(), RNA_END, RNA_enum_get(), RNA_float_get(), RNA_int_get(), RNA_int_get_array(), RNA_MAX_ARRAY_LENGTH, RNA_struct_property_is_set(), RPT_ERROR, SCE_SELECT_VERTEX, ToolSettings::selectmode, StitchStateContainer::snap_islands, state, state_delete_all(), StitchStateContainer::states, StitchStateContainer::static_island, stitch_draw(), STITCH_EDGE, stitch_init(), stitch_process_data(), stitch_update_header(), STITCH_VERT, StitchStateInit::to_select, StitchStateContainer::use_limit, ToolSettings::uv_flag, UV_SELECT_VERTEX, StitchStateInit::uv_selected_count, ToolSettings::uv_selectmode, and UV_SYNC_SELECTION.
Referenced by stitch_exec(), and stitch_invoke().
|
static |
Definition at line 2343 of file uvedit_smart_stitch.cc.
References BKE_editmesh_from_object(), BMEditMesh::bm, CTX_data_scene(), wmOperator::customdata, Object::data, NC_GEOM, ND_DATA, StitchStateContainer::objects_len, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, state, StitchStateContainer::states, stitch_init_all(), BMesh::totvertsel, ToolSettings::uv_flag, UV_SYNC_SELECTION, WM_event_add_modal_handler(), and WM_event_add_notifier().
Referenced by UV_OT_stitch().
|
static |
Definition at line 497 of file uvedit_smart_stitch.cc.
References acosf, BM_ELEM_CD_GET_FLOAT_P, cross_v2v2(), dot_v2v2(), UvElement::island, UvElement::l, max_ff(), min_ff(), StitchStateContainer::mode, normalize_v2(), IslandStitchData::num_rot_elements, IslandStitchData::num_rot_elements_neg, IslandStitchData::rotation, IslandStitchData::rotation_neg, state, STITCH_VERT, and UVVertAverage::uv.
Referenced by stitch_process_data().
|
static |
Definition at line 555 of file uvedit_smart_stitch.cc.
References acosf, BM_uv_element_get_head(), cross_v2v2(), dot_v2v2(), UvElement::island, max_ff(), StitchStateContainer::midpoints, min_ff(), negate_v2_v2(), UvElement::next, IslandStitchData::num_rot_elements, IslandStitchData::num_rot_elements_neg, IslandStitchData::rotation, IslandStitchData::rotation_neg, UvElement::separate, state, StitchStateContainer::static_island, and stitch_check_uvs_state_stitchable().
Referenced by stitch_process_data().
|
static |
Definition at line 2532 of file uvedit_smart_stitch.cc.
References StitchStateContainer::active_object_index, CTX_data_scene(), CTX_wm_region(), wmOperator::customdata, ED_region_tag_redraw(), EVT_ESCKEY, EVT_IKEY, EVT_LKEY, EVT_MKEY, EVT_PADENTER, EVT_PADMINUS, EVT_PADPLUSKEY, EVT_RETKEY, EVT_SKEY, EVT_TABKEY, goto_next_island(), KM_ALT, KM_PRESS, KM_SHIFT, LEFTMOUSE, StitchStateContainer::limit_dist, MIDDLEMOUSE, StitchStateContainer::midpoints, wmEvent::modifier, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, RIGHTMOUSE, StitchStateContainer::snap_islands, StitchStateContainer::states, stitch_cancel(), stitch_exit(), stitch_process_data(), stitch_process_data_all(), stitch_select(), stitch_switch_selection_mode_all(), stitch_update_header(), wmEvent::type, StitchStateContainer::use_limit, wmEvent::val, WHEELDOWNMOUSE, and WHEELUPMOUSE.
Referenced by UV_OT_stitch().
|
static |
Definition at line 259 of file uvedit_smart_stitch.cc.
References MEM_freeN(), MEM_SAFE_FREE, StitchPreviewer::preview_polys, StitchPreviewer::preview_stitchable, StitchPreviewer::preview_unstitchable, StitchPreviewer::static_tris, and StitchPreviewer::uvs_per_polygon.
Referenced by state_delete(), and stitch_process_data().
|
static |
Definition at line 235 of file uvedit_smart_stitch.cc.
References MEM_mallocN, StitchPreviewer::num_polys, StitchPreviewer::num_static_tris, StitchPreviewer::num_stitchable, StitchPreviewer::num_unstitchable, StitchPreviewer::preview_polys, StitchPreviewer::preview_stitchable, StitchPreviewer::preview_unstitchable, StitchPreviewer::preview_uvs, StitchPreviewer::static_tris, and StitchPreviewer::uvs_per_polygon.
Referenced by stitch_process_data().
|
static |
Definition at line 948 of file uvedit_smart_stitch.cc.
References StitchStateContainer::active_object_index, add_v2_v2(), BLI_assert, bm, BM_ELEM_CD_GET_FLOAT_P, BM_elem_flag_disable, BM_elem_index_get, BM_ELEM_SEAM, BM_FACE, BM_FACE_FIRST_LOOP, BM_FACES_OF_MESH, BM_ITER_ELEM_INDEX, BM_ITER_MESH, BM_LOOPS_OF_FACE, BM_mesh_elem_index_ensure(), BM_uv_element_get(), BM_VERT, CD_PROP_FLOAT2, StitchStateContainer::clear_seams, copy_v2_v2(), UVVertAverage::count, CustomData_get_offset(), PreviewPosition::data_position, determine_uv_edge_stitchability(), determine_uv_stitchability(), UvEdge::element, UvEdge::first, UvElement::island, l, UvElement::l, BMesh::ldata, BMFace::len, IslandStitchData::medianPoint, MEM_callocN, MEM_freeN(), MEM_mallocN, StitchStateContainer::midpoints, StitchStateContainer::mode, BMLoop::next, UvEdge::next, UvElement::next, StitchPreviewer::num_polys, StitchPreviewer::num_static_tris, StitchPreviewer::num_stitchable, StitchPreviewer::num_unstitchable, IslandStitchData::numOfElements, PreviewPosition::polycount_position, StitchPreviewer::preview_polys, StitchPreviewer::preview_stitchable, StitchPreviewer::preview_unstitchable, StitchPreviewer::preview_uvs, UvElement::separate, StitchStateContainer::snap_islands, state, StitchStateContainer::states, StitchStateContainer::static_island, StitchPreviewer::static_tris, STITCH_BOUNDARY, stitch_calculate_island_snapping(), stitch_check_edges_state_stitchable(), stitch_check_uvs_state_stitchable(), STITCH_EDGE, stitch_island_calculate_edge_rotation(), stitch_island_calculate_vert_rotation(), STITCH_NO_PREVIEW, stitch_preview_delete(), stitch_preview_init(), stitch_propagate_uv_final_position(), STITCH_SELECTED, stitch_set_face_preview_buffer_position(), STITCH_STITCHABLE, STITCH_STITCHABLE_CANDIDATE, stitch_validate_edge_stitchability(), stitch_validate_uv_stitchability(), STITCH_VERT, IslandStitchData::stitchableCandidate, BMesh::totface, IslandStitchData::translation, true, IslandStitchData::use_edge_rotation, UVVertAverage::uv, UvEdge::uv1, UvEdge::uv2, StitchPreviewer::uvs_per_polygon, and BMLoop::v.
Referenced by stitch_init(), stitch_init_all(), stitch_modal(), and stitch_process_data_all().
|
static |
Definition at line 1486 of file uvedit_smart_stitch.cc.
References StitchStateContainer::objects_len, StitchStateContainer::states, and stitch_process_data().
Referenced by stitch_exec(), and stitch_modal().
|
static |
Definition at line 895 of file uvedit_smart_stitch.cc.
References bm, BM_ELEM_CD_GET_FLOAT_P, BM_elem_index_get, BM_uv_map_get_offsets(), copy_v2_v2(), PreviewPosition::data_position, element, BMLoop::f, UvElement::flag, UvElement::island, l, UvElement::l, UvElement::loop_of_face_index, StitchStateContainer::midpoints, UvElement::next, StitchPreviewer::preview_polys, UvElement::separate, StitchStateContainer::snap_islands, state, StitchStateContainer::static_island, STITCH_NO_PREVIEW, STITCH_PROCESSED, STITCH_SELECTED, STITCH_STITCHABLE, BMUVOffsets::uv, UVVertAverage::uv, and uvedit_uv_select_enable().
Referenced by stitch_process_data().
|
static |
Definition at line 2477 of file uvedit_smart_stitch.cc.
References BM_uv_element_get(), CTX_wm_region(), StitchStateContainer::mode, wmEvent::mval, StitchStateContainer::objects, StitchStateContainer::objects_len, state, StitchStateContainer::states, stitch_select_edge(), stitch_select_uv(), STITCH_VERT, UI_view2d_region_to_view(), uv_edge_get(), uv_find_nearest_edge_multi(), uv_find_nearest_vert_multi(), and uv_nearest_hit_init_max().
Referenced by stitch_modal().
|
static |
Definition at line 1519 of file uvedit_smart_stitch.cc.
References UvEdge::first, UvEdge::flag, UvEdge::next, state, and STITCH_SELECTED.
Referenced by stitch_init(), stitch_select(), and stitch_set_selection_mode().
|
static |
Definition at line 1548 of file uvedit_smart_stitch.cc.
References BM_uv_element_get_head(), UvElement::flag, UvElement::next, UvElement::separate, state, and STITCH_SELECTED.
Referenced by stitch_init(), stitch_select(), and stitch_set_selection_mode().
|
static |
Definition at line 774 of file uvedit_smart_stitch.cc.
References BM_elem_index_get, PreviewPosition::data_position, BMFace::len, StitchPreviewer::num_polys, PreviewPosition::polycount_position, StitchPreviewer::preview_uvs, and STITCH_NO_PREVIEW.
Referenced by stitch_process_data(), and stitch_setup_face_preview_for_uv_group().
|
static |
Definition at line 1579 of file uvedit_smart_stitch.cc.
References UvElement::flag, MEM_freeN(), MEM_mallocN, state, stitch_select_edge(), stitch_select_uv(), STITCH_SELECTED, and STITCH_VERT.
Referenced by stitch_init(), and stitch_switch_selection_mode_all().
|
static |
Definition at line 788 of file uvedit_smart_stitch.cc.
References IslandStitchData::addedForPreview, StitchStateContainer::midpoints, StitchStateContainer::snap_islands, state, StitchStateContainer::static_island, and stitch_set_face_preview_buffer_position().
Referenced by stitch_validate_edge_stitchability(), and stitch_validate_uv_stitchability().
|
static |
Definition at line 1629 of file uvedit_smart_stitch.cc.
References StitchStateContainer::mode, StitchStateContainer::objects_len, StitchStateContainer::states, STITCH_EDGE, stitch_set_selection_mode(), and STITCH_VERT.
Referenced by stitch_modal().
|
static |
Definition at line 272 of file uvedit_smart_stitch.cc.
References CTX_wm_area(), ED_workspace_status_text(), IFACE_, StitchStateContainer::limit_dist, StitchStateContainer::midpoints, StitchStateContainer::mode, StitchStateContainer::snap_islands, SNPRINTF, STITCH_VERT, str, UI_MAX_DRAW_STR, StitchStateContainer::use_limit, and WM_bool_as_string().
Referenced by stitch_init_all(), and stitch_modal().
|
static |
Definition at line 657 of file uvedit_smart_stitch.cc.
References BLI_ghash_lookup(), BM_elem_index_get, BM_uv_element_get(), BM_uv_element_get_head(), UvEdge::first, UvElement::l, BMLoop::next, UvEdge::next, UvElement::next, BMLoop::prev, state, STITCH_BOUNDARY, UvElementMap::storage, UvEdge::uv1, UvEdge::uv2, and BMLoop::v.
Referenced by stitch_init().
|
static |
Definition at line 298 of file uvedit_smart_stitch.cc.
References add_v2_v2v2(), mul_v2_m2v2(), and sub_v2_v2().
Referenced by stitch_calculate_island_snapping().
|
static |
Definition at line 853 of file uvedit_smart_stitch.cc.
References StitchStateContainer::active_object_index, UvEdge::element, UvEdge::first, UvEdge::flag, UvElement::island, UvEdge::next, StitchPreviewer::num_stitchable, StitchPreviewer::num_unstitchable, state, StitchStateContainer::states, StitchStateContainer::static_island, stitch_check_edges_state_stitchable(), stitch_setup_face_preview_for_uv_group(), and STITCH_STITCHABLE.
Referenced by stitch_process_data().
|
static |
Definition at line 812 of file uvedit_smart_stitch.cc.
References StitchStateContainer::active_object_index, BM_uv_element_get_head(), UvElement::island, UvElement::next, StitchPreviewer::num_stitchable, StitchPreviewer::num_unstitchable, UvElement::separate, state, StitchStateContainer::states, StitchStateContainer::static_island, stitch_check_uvs_state_stitchable(), stitch_setup_face_preview_for_uv_group(), and STITCH_STITCHABLE.
Referenced by stitch_process_data().
|
static |
Definition at line 1505 of file uvedit_smart_stitch.cc.
References b, BLI_assert, UvEdge::uv1, and UvEdge::uv2.
Referenced by stitch_init().
|
static |
Definition at line 1802 of file uvedit_smart_stitch.cc.
References BLI_ghash_lookup(), BM_uv_element_get(), l, BMLoop::next, state, UvEdge::uv1, and UvEdge::uv2.
Referenced by stitch_init(), and stitch_select().
|
static |
Definition at line 1498 of file uvedit_smart_stitch.cc.
References BLI_assert, and BLI_ghashutil_uinthash().
Referenced by stitch_init().
| void UV_OT_stitch | ( | wmOperatorType * | ot | ) |
Definition at line 2693 of file uvedit_smart_stitch.cc.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::modal, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, PROP_HIDDEN, RNA_def_boolean(), RNA_def_collection_runtime(), RNA_def_enum(), RNA_def_float(), RNA_def_int(), RNA_def_int_array(), RNA_def_property_array(), RNA_def_property_flag(), wmOperatorType::srna, stitch_cancel(), STITCH_EDGE, stitch_exec(), stitch_invoke(), stitch_modal(), and STITCH_VERT.
Referenced by ED_operatortypes_uvedit().