Blender V2.61 - r43446
|
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_camera_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "BLI_math.h"
#include "BLI_edgehash.h"
#include "BLI_editVert.h"
#include "BLI_uvproject.h"
#include "BLI_utildefines.h"
#include "BLI_string.h"
#include "BKE_context.h"
#include "BKE_customdata.h"
#include "BKE_depsgraph.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_mesh.h"
#include "PIL_time.h"
#include "ED_image.h"
#include "ED_mesh.h"
#include "ED_screen.h"
#include "ED_uvedit.h"
#include "ED_view3d.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "uvedit_intern.h"
#include "uvedit_parametrizer.h"
Go to the source code of this file.
Definition in file uvedit_unwrap_ops.c.
#define ALIGN_TO_OBJECT 2 |
Definition at line 620 of file uvedit_unwrap_ops.c.
Referenced by uv_map_transform(), and uv_transform_properties().
#define POLAR_ZX 0 |
Definition at line 622 of file uvedit_unwrap_ops.c.
Referenced by uv_transform_properties().
#define POLAR_ZY 1 |
Definition at line 623 of file uvedit_unwrap_ops.c.
Referenced by uv_map_transform(), and uv_transform_properties().
#define VIEW_ON_EQUATOR 0 |
Definition at line 618 of file uvedit_unwrap_ops.c.
Referenced by uv_map_transform(), and uv_transform_properties().
#define VIEW_ON_POLES 1 |
Definition at line 619 of file uvedit_unwrap_ops.c.
Referenced by uv_transform_properties().
typedef struct MinStretch MinStretch |
static int average_islands_scale_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 539 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), construct_param_handle(), CTX_data_edit_object(), CTX_data_scene(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, param_average(), param_delete(), param_flush(), uvedit_have_selection(), and WM_event_add_notifier().
Referenced by UV_OT_average_islands_scale().
static ParamHandle* construct_param_handle | ( | Scene * | scene, |
EditMesh * | em, | ||
short | implicit, | ||
short | fill, | ||
short | sel, | ||
short | correct_aspect | ||
) | [static] |
Definition at line 173 of file uvedit_unwrap_ops.c.
References CD_MTFACE, EditVert::co, co, CustomData_em_get(), EditFace::data, ED_image_uv_aspect(), EditMesh::edges, EM_get_actFace(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::h, EditVert::l, EditEdge::next, EditFace::next, EditVert::next, param_aspect_ratio(), param_construct_begin(), param_construct_end(), param_edge_set_seam(), param_face_add(), EditEdge::seam, SELECT, TF_PIN1, TF_PIN2, TF_PIN3, TF_PIN4, EditVert::tmp, MTFace::tpage, MTFace::unwrap, MTFace::uv, uvedit_uv_selected(), EditEdge::v1, EditFace::v1, EditEdge::v2, EditFace::v2, EditFace::v3, EditFace::v4, and EditMesh::verts.
Referenced by average_islands_scale_exec(), ED_unwrap_lscm(), ED_uvedit_live_unwrap_begin(), minimize_stretch_init(), and pack_islands_exec().
static void correct_uv_aspect | ( | EditMesh * | em | ) | [static] |
Definition at line 771 of file uvedit_unwrap_ops.c.
References CD_MTFACE, CustomData_em_get(), EditFace::data, ED_image_uv_aspect(), EM_get_actFace(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::next, SELECT, MTFace::tpage, MTFace::uv, and EditFace::v4.
Referenced by uv_map_clip_correct().
static int cube_project_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1320 of file uvedit_unwrap_ops.c.
References axis_dominant_v3(), BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, EditVert::co, cox, coy, CTX_data_edit_object(), CTX_data_scene(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, ED_uvedit_ensure_uvs(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, normal_tri_v3(), Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), SELECT, MTFace::uv, uv_map_clip_correct(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_cube_project().
static int cylinder_project_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1262 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, EditVert::co, CTX_data_edit_object(), CTX_data_scene(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, ED_uvedit_ensure_uvs(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, UvCameraInfo::rotmat, SELECT, MTFace::uv, uv_cylinder_project(), uv_map_clip_correct(), uv_map_mirror(), uv_map_transform(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_cylinder_project().
Definition at line 901 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), construct_param_handle(), Object::data, param_delete(), PARAM_FALSE, param_flush(), param_lscm_begin(), param_lscm_end(), param_lscm_solve(), param_pack(), Scene::toolsettings, ToolSettings::unwrapper, UVCALC_FILLHOLES, ToolSettings::uvcalc_flag, ToolSettings::uvcalc_margin, and UVCALC_NO_ASPECT_CORRECT.
Referenced by editmesh_mark_seam(), mouse_mesh_shortest_path(), and unwrap_exec().
Definition at line 76 of file uvedit_unwrap_ops.c.
References bScreen::areabase, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_image(), CTX_data_main(), CTX_wm_screen(), CustomData_em_get(), EditFace::data, Object::data, ED_uvedit_assign_image(), ED_uvedit_test(), EM_add_data_layer(), EditMesh::faces, EditMesh::fdata, ListBase::first, IMA_TYPE_COMPOSITE, IMA_TYPE_R_RESULT, SpaceImage::image, EditFace::next, ScrArea::next, NULL, SPACE_IMAGE, ScrArea::spacedata, SpaceLink::spacetype, Image::type, and uvedit_face_select().
Referenced by cube_project_exec(), cylinder_project_exec(), reset_exec(), sphere_project_exec(), unwrap_exec(), and uv_from_view_exec().
Definition at line 580 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), construct_param_handle(), Object::data, ED_uvedit_test(), param_lscm_begin(), PARAM_TRUE, Scene::toolsettings, ToolSettings::unwrapper, UVCALC_FILLHOLES, and ToolSettings::uvcalc_flag.
Referenced by createTransUVs(), and uvedit_live_unwrap_update().
void ED_uvedit_live_unwrap_end | ( | short | cancel | ) |
Definition at line 605 of file uvedit_unwrap_ops.c.
References NULL, param_delete(), param_flush_restore(), and param_lscm_end().
Referenced by postTrans(), and uvedit_live_unwrap_update().
void ED_uvedit_live_unwrap_re_solve | ( | void | ) |
Definition at line 597 of file uvedit_unwrap_ops.c.
References param_flush(), and param_lscm_solve().
Referenced by recalcData_image(), and uvedit_live_unwrap_update().
static int minimize_stretch_cancel | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 456 of file uvedit_unwrap_ops.c.
References minimize_stretch_exit(), and OPERATOR_CANCELLED.
Referenced by UV_OT_minimize_stretch().
static int minimize_stretch_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 374 of file uvedit_unwrap_ops.c.
References i, minimize_stretch_exit(), minimize_stretch_init(), minimize_stretch_iteration(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, and RNA_int_get().
Referenced by UV_OT_minimize_stretch().
static void minimize_stretch_exit | ( | bContext * | C, |
wmOperator * | op, | ||
int | cancel | ||
) | [static] |
Definition at line 349 of file uvedit_unwrap_ops.c.
References CTX_wm_area(), CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, DAG_id_tag_update(), Object::data, ED_area_headerprint(), MinStretch::handle, MEM_freeN(), NC_GEOM, ND_DATA, NULL, MinStretch::obedit, param_delete(), param_flush(), param_flush_restore(), param_stretch_end(), MinStretch::timer, WM_event_add_notifier(), and WM_event_remove_timer().
Referenced by minimize_stretch_cancel(), minimize_stretch_exec(), and minimize_stretch_modal().
static int minimize_stretch_init | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 288 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), MinStretch::blend, construct_param_handle(), CTX_data_edit_object(), CTX_data_scene(), wmOperator::customdata, Object::data, MinStretch::em, MinStretch::handle, MinStretch::i, MinStretch::iterations, MinStretch::lasttime, MEM_callocN(), MinStretch::obedit, param_stretch_begin(), param_stretch_blend(), PIL_check_seconds_timer(), wmOperator::ptr, RNA_boolean_get(), RNA_float_get(), RNA_int_get(), MinStretch::scene, and uvedit_have_selection().
Referenced by minimize_stretch_exec(), and minimize_stretch_invoke().
static int minimize_stretch_invoke | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | UNUSEDevent | ||
) | [static] |
Definition at line 389 of file uvedit_unwrap_ops.c.
References CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, minimize_stretch_init(), minimize_stretch_iteration(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, TIMER, MinStretch::timer, WM_event_add_modal_handler(), and WM_event_add_timer().
Referenced by UV_OT_minimize_stretch().
static void minimize_stretch_iteration | ( | bContext * | C, |
wmOperator * | op, | ||
int | interactive | ||
) | [static] |
Definition at line 321 of file uvedit_unwrap_ops.c.
References MinStretch::blend, BLI_snprintf(), CTX_wm_area(), wmOperator::customdata, DAG_id_tag_update(), Object::data, ED_area_headerprint(), MinStretch::handle, MinStretch::i, MinStretch::lasttime, NC_GEOM, ND_DATA, MinStretch::obedit, param_flush(), param_stretch_blend(), param_stretch_iter(), PIL_check_seconds_timer(), wmOperator::ptr, RNA_int_set(), str, and WM_event_add_notifier().
Referenced by minimize_stretch_exec(), minimize_stretch_invoke(), and minimize_stretch_modal().
static int minimize_stretch_modal | ( | bContext * | C, |
wmOperator * | op, | ||
wmEvent * | event | ||
) | [static] |
Definition at line 405 of file uvedit_unwrap_ops.c.
References MinStretch::blend, wmEvent::customdata, wmOperator::customdata, ESCKEY, MinStretch::i, MinStretch::iterations, MinStretch::lasttime, LEFTMOUSE, minimize_stretch_exit(), minimize_stretch_iteration(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_RUNNING_MODAL, PADENTER, PADMINUS, PADPLUSKEY, PIL_check_seconds_timer(), wmOperator::ptr, RETKEY, RIGHTMOUSE, RNA_float_set(), MinStretch::timer, TIMER, wmEvent::type, WHEELDOWNMOUSE, and WHEELUPMOUSE.
Referenced by UV_OT_minimize_stretch().
static int pack_islands_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 489 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), construct_param_handle(), CTX_data_edit_object(), CTX_data_scene(), DAG_id_tag_update(), Object::data, NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, param_delete(), param_flush(), param_pack(), wmOperator::ptr, RNA_float_get(), RNA_float_set(), RNA_struct_property_is_set(), Scene::toolsettings, ToolSettings::uvcalc_margin, uvedit_have_selection(), and WM_event_add_notifier().
Referenced by UV_OT_pack_islands().
static int reset_exec | ( | bContext * | C, |
wmOperator * | UNUSEDop | ||
) | [static] |
Definition at line 1103 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, CTX_data_edit_object(), CTX_data_scene(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, ED_uvedit_ensure_uvs(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, SELECT, MTFace::uv, and WM_event_add_notifier().
Referenced by UV_OT_reset().
static int sphere_project_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 1190 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CD_MTFACE, EditVert::co, CTX_data_edit_object(), CTX_data_scene(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, ED_uvedit_ensure_uvs(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, NC_GEOM, ND_DATA, EditFace::next, OPERATOR_CANCELLED, OPERATOR_FINISHED, UvCameraInfo::rotmat, SELECT, MTFace::uv, uv_map_clip_correct(), uv_map_mirror(), uv_map_transform(), uv_sphere_project(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, and WM_event_add_notifier().
Referenced by UV_OT_sphere_project().
static int unwrap_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 925 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), CTX_data_scene(), DAG_id_tag_update(), Object::data, ED_unwrap_lscm(), ED_uvedit_ensure_uvs(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_boolean_get(), RNA_enum_get(), Scene::toolsettings, TRUE, ToolSettings::unwrapper, UVCALC_FILLHOLES, ToolSettings::uvcalc_flag, UVCALC_NO_ASPECT_CORRECT, uvedit_have_selection(), and WM_event_add_notifier().
Referenced by UV_OT_unwrap().
static void uv_cylinder_project | ( | float | target[2], |
float | source[3], | ||
float | center[3], | ||
float | rotmat[4][4] | ||
) | [static] |
Definition at line 1248 of file uvedit_unwrap_ops.c.
References map_to_tube(), mul_m4_v3(), and sub_v3_v3v3().
Referenced by cylinder_project_exec().
static int uv_from_view_exec | ( | bContext * | C, |
wmOperator * | op | ||
) | [static] |
Definition at line 992 of file uvedit_unwrap_ops.c.
References BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), View3D::camera, CD_MTFACE, EditVert::co, copy_m4_m4(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_region(), CTX_wm_view3d(), CustomData_em_get(), DAG_id_tag_update(), EditFace::data, Object::data, ED_uvedit_ensure_uvs(), EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, MEM_freeN(), NC_GEOM, ND_DATA, EditFace::next, NULL, OB_CAMERA, Object::obmat, OPERATOR_CANCELLED, OPERATOR_FINISHED, RegionView3D::persmat, RegionView3D::persp, project_camera_info(), project_from_camera(), project_from_view(), project_from_view_ortho(), wmOperator::ptr, Scene::r, ARegion::regiondata, RNA_boolean_get(), RV3D_CAMOB, SELECT, Object::type, MTFace::uv, uv_map_clip_correct(), uv_map_rotation_matrix(), EditFace::v1, EditFace::v2, EditFace::v3, EditFace::v4, ARegion::winx, ARegion::winy, WM_event_add_notifier(), RenderData::xsch, and RenderData::ysch.
Referenced by UV_OT_from_view().
static int uv_from_view_poll | ( | bContext * | C | ) | [static] |
Definition at line 1075 of file uvedit_unwrap_ops.c.
References CTX_wm_region_view3d(), ED_operator_uvmap(), and NULL.
Referenced by UV_OT_from_view().
static void uv_map_clip_correct | ( | EditMesh * | em, |
wmOperator * | op | ||
) | [static] |
Definition at line 829 of file uvedit_unwrap_ops.c.
References CD_MTFACE, CLAMP(), correct_uv_aspect(), CustomData_em_get(), EditFace::data, DO_MINMAX2, EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, INIT_MINMAX2, max, min, EditFace::next, wmOperator::ptr, RNA_boolean_get(), SELECT, MTFace::uv, and EditFace::v4.
Referenced by cube_project_exec(), cylinder_project_exec(), sphere_project_exec(), and uv_from_view_exec().
static void uv_map_clip_correct_properties | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 819 of file uvedit_unwrap_ops.c.
References RNA_def_boolean(), and wmOperatorType::srna.
Referenced by UV_OT_cube_project(), UV_OT_cylinder_project(), UV_OT_from_view(), and UV_OT_sphere_project().
Definition at line 1170 of file uvedit_unwrap_ops.c.
References i, MTFace::uv, and EditFace::v4.
Referenced by cylinder_project_exec(), and sphere_project_exec().
static void uv_map_rotation_matrix | ( | float | result[][4], |
RegionView3D * | rv3d, | ||
Object * | ob, | ||
float | upangledeg, | ||
float | sideangledeg, | ||
float | radius | ||
) | [static] |
Definition at line 665 of file uvedit_unwrap_ops.c.
References copy_m4_m4(), cos(), M_PI, mul_serie_m4(), NULL, Object::obmat, sin(), unit_m4(), RegionView3D::viewmat, and zero_m4().
Referenced by uv_from_view_exec(), and uv_map_transform().
static void uv_map_transform | ( | bContext * | C, |
wmOperator * | op, | ||
float | center[3], | ||
float | rotmat[4][4] | ||
) | [static] |
Definition at line 713 of file uvedit_unwrap_ops.c.
References ALIGN_TO_OBJECT, BKE_mesh_end_editmesh(), BKE_mesh_get_editmesh(), CTX_data_edit_object(), CTX_data_scene(), CTX_wm_region_view3d(), CTX_wm_view3d(), Object::data, POLAR_ZY, wmOperator::ptr, RNA_enum_get(), RNA_float_get(), RNA_struct_find_property(), unit_m4(), uv_map_rotation_matrix(), uv_map_transform_center(), and VIEW_ON_EQUATOR.
Referenced by cylinder_project_exec(), and sphere_project_exec().
static void uv_map_transform_center | ( | Scene * | scene, |
View3D * | v3d, | ||
float * | result, | ||
Object * | ob, | ||
EditMesh * | em | ||
) | [static] |
Definition at line 625 of file uvedit_unwrap_ops.c.
References View3D::around, EditVert::co, DO_MINMAX, EditFace::f, EditMesh::faces, ListBase::first, give_cursor(), max, mid_v3_v3v3(), min, EditFace::next, Object::obmat, SELECT, EditFace::v1, EditFace::v2, EditFace::v3, V3D_CENTER, V3D_CENTROID, V3D_CURSOR, V3D_LOCAL, and EditFace::v4.
Referenced by uv_map_transform().
void UV_OT_average_islands_scale | ( | wmOperatorType * | ot | ) |
Definition at line 564 of file uvedit_unwrap_ops.c.
References average_islands_scale_exec(), ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_uvedit().
void UV_OT_cube_project | ( | wmOperatorType * | ot | ) |
Definition at line 1382 of file uvedit_unwrap_ops.c.
References cube_project_exec(), ED_operator_uvmap(), wmOperatorType::exec, wmOperatorType::flag, FLT_MAX, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_float(), wmOperatorType::srna, and uv_map_clip_correct_properties().
Referenced by ED_operatortypes_uvedit().
void UV_OT_cylinder_project | ( | wmOperatorType * | ot | ) |
Definition at line 1302 of file uvedit_unwrap_ops.c.
References cylinder_project_exec(), ED_operator_uvmap(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, uv_map_clip_correct_properties(), and uv_transform_properties().
Referenced by ED_operatortypes_uvedit().
void UV_OT_from_view | ( | wmOperatorType * | ot | ) |
Definition at line 1085 of file uvedit_unwrap_ops.c.
References wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), wmOperatorType::srna, uv_from_view_exec(), uv_from_view_poll(), and uv_map_clip_correct_properties().
Referenced by ED_operatortypes_uvedit().
void UV_OT_minimize_stretch | ( | wmOperatorType * | ot | ) |
Definition at line 463 of file uvedit_unwrap_ops.c.
References wmOperatorType::cancel, wmOperatorType::description, ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, minimize_stretch_cancel(), minimize_stretch_exec(), minimize_stretch_invoke(), minimize_stretch_modal(), wmOperatorType::modal, wmOperatorType::name, OPTYPE_BLOCKING, OPTYPE_GRAB_POINTER, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_float_factor(), RNA_def_int(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
void UV_OT_pack_islands | ( | wmOperatorType * | ot | ) |
Definition at line 521 of file uvedit_unwrap_ops.c.
References ED_operator_uvedit(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, pack_islands_exec(), wmOperatorType::poll, RNA_def_float_factor(), and wmOperatorType::srna.
Referenced by ED_operatortypes_uvedit().
void UV_OT_reset | ( | wmOperatorType * | ot | ) |
Definition at line 1142 of file uvedit_unwrap_ops.c.
References ED_operator_uvmap(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, and reset_exec().
Referenced by ED_operatortypes_uvedit().
void UV_OT_sphere_project | ( | wmOperatorType * | ot | ) |
Definition at line 1230 of file uvedit_unwrap_ops.c.
References ED_operator_uvmap(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, sphere_project_exec(), uv_map_clip_correct_properties(), and uv_transform_properties().
Referenced by ED_operatortypes_uvedit().
void UV_OT_unwrap | ( | wmOperatorType * | ot | ) |
Definition at line 965 of file uvedit_unwrap_ops.c.
References wmOperatorType::description, ED_operator_uvmap(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_boolean(), RNA_def_enum(), wmOperatorType::srna, and unwrap_exec().
Referenced by ED_operatortypes_uvedit().
static void uv_sphere_project | ( | float | target[2], |
float | source[3], | ||
float | center[3], | ||
float | rotmat[4][4] | ||
) | [static] |
Definition at line 1156 of file uvedit_unwrap_ops.c.
References map_to_sphere(), mul_m4_v3(), and sub_v3_v3v3().
Referenced by sphere_project_exec().
static void uv_transform_properties | ( | wmOperatorType * | ot, |
int | radius | ||
) | [static] |
Definition at line 748 of file uvedit_unwrap_ops.c.
References ALIGN_TO_OBJECT, direction_items, FLT_MAX, NULL, POLAR_ZX, POLAR_ZY, RNA_def_enum(), RNA_def_float(), wmOperatorType::srna, VIEW_ON_EQUATOR, and VIEW_ON_POLES.
Referenced by UV_OT_cylinder_project(), and UV_OT_sphere_project().
Definition at line 138 of file uvedit_unwrap_ops.c.
References CD_MTFACE, CustomData_em_get(), EditFace::data, EditFace::f, EditMesh::faces, EditMesh::fdata, ListBase::first, EditFace::h, EditFace::next, SELECT, Scene::toolsettings, ToolSettings::uv_flag, UV_SYNC_SELECTION, uvedit_uv_selected(), and EditFace::v4.
Referenced by average_islands_scale_exec(), minimize_stretch_init(), pack_islands_exec(), and unwrap_exec().
ParamHandle* liveHandle = NULL [static] |
Definition at line 578 of file uvedit_unwrap_ops.c.