Blender
V3.3
|
#include <stdlib.h>
#include "BLI_math.h"
#include "BLI_string.h"
#include "BLI_task.h"
#include "MEM_guardedalloc.h"
#include "BKE_context.h"
#include "BKE_unit.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "BLT_translation.h"
#include "transform.h"
#include "transform_convert.h"
#include "transform_snap.h"
#include "transform_mode.h"
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 *UNUSED(t), const TransDataContainer *tc, TransData *td, const float ratio, const struct 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 UNUSED(tls)) |
Transform (ToSphere) | |
static void | applyToSphere (TransInfo *t, const int UNUSED(mval[2])) |
void | initToSphere (TransInfo *t) |
Definition at line 172 of file transform_mode_tosphere.c.
References applyNumInput(), BLI_parallel_range_settings_defaults(), BLI_snprintf(), BLI_task_parallel_range(), Freestyle::c, CLAMP, CTX_POSE_BONE, data, TransDataContainer::data_len, ED_area_status_text(), FOREACH_TRANS_DATA_CONTAINER, hasNumInput(), TransDataArgs_ToSphere::is_data_space, TransDataArgs_ToSphere::is_local_center, NUM_STR_REP_LEN, outputNumInput(), ToSphereInfo::prop_size_prev, TransDataArgs_ToSphere::ratio, recalcData(), str, t, TransDataArgs_ToSphere::tc, TD_SKIP, TIP_, TransDataArgs_ToSphere::to_sphere_info, to_sphere_radius_update(), transdata_check_local_center(), transdata_elem_to_sphere(), transdata_elem_to_sphere_fn(), TRANSDATA_THREAD_LIMIT, transform_snap_increment(), and UI_MAX_DRAW_STR.
Referenced by initToSphere().
Definition at line 239 of file transform_mode_tosphere.c.
References applyToSphere(), B_UNIT_NONE, copy_v3_fl(), data, initMouseInputMode(), INPUT_HORIZONTAL_RATIO, MEM_callocN, NUM_NO_NEGATIVE, NUM_NULL_ONE, t, T_NO_CONSTRAINT, TFM_TOSPHERE, and to_sphere_radius_update().
Referenced by transform_mode_init().
Calculate average radius.
Definition at line 41 of file transform_mode_tosphere.c.
References center, copy_v3_v3(), CTX_POSE_BONE, data, TransData::factor, float(), FOREACH_TRANS_DATA_CONTAINER, len_v3(), ToSphereInfo::radius, sub_v3_v3(), t, T_PROP_EDIT_ALL, and transdata_check_local_center().
Referenced by applyToSphere(), and initToSphere().
|
static |
Definition at line 116 of file transform_mode_tosphere.c.
References add_v3_v3(), center, 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 148 of file transform_mode_tosphere.c.
References data, TD_SKIP, and transdata_elem_to_sphere().
Referenced by applyToSphere().