|
Blender
V2.93
|
#include <stdlib.h>#include "BLI_math.h"#include "BLI_string.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_mode.h"#include "transform_snap.h"Go to the source code of this file.
Classes | |
| struct | ToSphereInfo |
Functions | |
To Sphere Utilities | |
| static void | to_sphere_radius_update (TransInfo *t) |
Transform (ToSphere) | |
| static void | applyToSphere (TransInfo *t, const int UNUSED(mval[2])) |
| void | initToSphere (TransInfo *t) |
|
static |
Definition at line 99 of file transform_mode_tosphere.c.
References add_v3_v3v3(), applyNumInput(), BLI_snprintf(), Freestyle::c, center, CLAMP, data, ED_area_status_text(), TransData::factor, FOREACH_TRANS_DATA_CONTAINER, hasNumInput(), mul_v3_fl(), normalize_v3(), NUM_STR_REP_LEN, outputNumInput(), ToSphereInfo::radius, recalcData(), str, sub_v3_v3v3(), t, TD_SKIP, TIP_, to_sphere_radius_update(), transdata_check_local_center(), transform_snap_increment(), and UI_MAX_DRAW_STR.
Referenced by initToSphere().
| void initToSphere | ( | TransInfo * | t | ) |
Definition at line 163 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().
|
static |
Calculate average radius.
Definition at line 54 of file transform_mode_tosphere.c.
References center, data, TransData::factor, float(), FOREACH_TRANS_DATA_CONTAINER, len_v3v3(), ToSphereInfo::radius, t, T_PROP_EDIT_ALL, and transdata_check_local_center().
Referenced by applyToSphere(), and initToSphere().