|
Blender V4.3
|
#include <cstdlib>#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "BLI_task.h"#include "MEM_guardedalloc.h"#include "BKE_unit.hh"#include "ED_screen.hh"#include "UI_interface.hh"#include "BLT_translation.hh"#include "transform.hh"#include "transform_convert.hh"#include "transform_snap.hh"#include "transform_mode.hh"Go to the source code of this file.
Classes | |
| struct | ToSphereInfo |
| struct | TransDataArgs_ToSphere |
Functions | |
To Sphere Utilities | |
| static void | to_sphere_radius_update (TransInfo *t) |
Transform (ToSphere) Element | |
| static void | transdata_elem_to_sphere (const TransInfo *, const TransDataContainer *tc, TransData *td, const float ratio, const ToSphereInfo *to_sphere_info, const bool is_local_center, const bool is_data_space) |
| static void | transdata_elem_to_sphere_fn (void *__restrict iter_data_v, const int iter, const TaskParallelTLS *__restrict) |
Transform (ToSphere) | |
| static void | applyToSphere (TransInfo *t) |
| static void | initToSphere (TransInfo *t, wmOperator *) |
Variables | |
| TransModeInfo | TransMode_tosphere |
|
static |
Definition at line 173 of file transform_mode_tosphere.cc.
References applyNumInput(), TransInfo::area, TransInfo::around, BLI_parallel_range_settings_defaults(), BLI_task_parallel_range(), CLAMP, CTX_POSE_BONE, TransInfo::custom, TransCustomData::data, ED_area_status_text(), FOREACH_TRANS_DATA_CONTAINER, hasNumInput(), IFACE_, TransCustomDataContainer::mode, TransInfo::num, NUM_STR_REP_LEN, TransInfo::options, outputNumInput(), TransInfo::prop_size, ToSphereInfo::prop_size_prev, TransInfo::proptext, recalc_data(), TransInfo::scene, SNPRINTF, str, TransDataArgs_ToSphere::t, TD_SKIP, to_sphere_radius_update(), transdata_check_local_center(), transdata_elem_to_sphere(), transdata_elem_to_sphere_fn(), TRANSDATA_THREAD_LIMIT, transform_snap_increment(), UI_MAX_DRAW_STR, Scene::unit, TransInfo::values, TransInfo::values_final, and TransInfo::values_modal_offset.
|
static |
Definition at line 240 of file transform_mode_tosphere.cc.
References B_UNIT_NONE, copy_v3_fl(), TransInfo::custom, data, TransCustomData::data, NumInput::idx_max, TransInfo::idx_max, initMouseInputMode(), INPUT_HORIZONTAL_RATIO, MEM_callocN, TransCustomDataContainer::mode, TransInfo::mode, TransInfo::mouse, TransInfo::num, NUM_NO_NEGATIVE, NUM_NULL_ONE, TransInfo::scene, TransInfo::snap, UnitSettings::system, TFM_TOSPHERE, to_sphere_radius_update(), Scene::unit, NumInput::unit_sys, NumInput::unit_type, TransCustomData::use_free, NumInput::val_flag, and NumInput::val_inc.
|
static |
Calculate average radius.
Definition at line 42 of file transform_mode_tosphere.cc.
References TransInfo::around, copy_v3_v3(), CTX_POSE_BONE, TransInfo::custom, TransCustomData::data, TransInfo::data_len_all, TransData::factor, TransInfo::flag, float, FOREACH_TRANS_DATA_CONTAINER, len_v3(), TransCustomDataContainer::mode, TransInfo::options, TransInfo::prop_size, sub_v3_v3(), T_PROP_EDIT_ALL, and transdata_check_local_center().
Referenced by applyToSphere(), and initToSphere().
|
static |
Definition at line 117 of file transform_mode_tosphere.cc.
References add_v3_v3(), TransDataContainer::center_local, copy_v3_v3(), TransData::factor, mul_m3_v3(), mul_v3_fl(), normalize_v3(), ToSphereInfo::radius, TransData::smtx, and sub_v3_v3().
Referenced by applyToSphere(), and transdata_elem_to_sphere_fn().
|
static |
Definition at line 149 of file transform_mode_tosphere.cc.
References TD_SKIP, and transdata_elem_to_sphere().
Referenced by applyToSphere().
| TransModeInfo TransMode_tosphere |
Definition at line 266 of file transform_mode_tosphere.cc.
Referenced by mode_info_get().