|
Blender V4.3
|
#include <cstdlib>#include "BLI_math_bits.h"#include "BLI_math_matrix.h"#include "BLI_math_vector.h"#include "BLI_string.h"#include "ED_screen.hh"#include "UI_interface.hh"#include "BLT_translation.hh"#include "transform.hh"#include "transform_convert.hh"#include "transform_mode.hh"Go to the source code of this file.
Functions | |
Transform (Mirror) | |
| static void | ElementMirror (TransInfo *t, TransDataContainer *tc, TransData *td, int axis, bool flip) |
| static void | applyMirror (TransInfo *t) |
| static void | initMirror (TransInfo *t, wmOperator *) |
Variables | |
| TransModeInfo | TransMode_mirror |
|
static |
Definition at line 153 of file transform_mode_mirror.cc.
References TransInfo::area, bitscan_forward_i(), BLI_assert, TransInfo::con, CON_APPLY, CON_AXIS0, CON_AXIS1, CON_AXIS2, copy_v3_v3(), count_bits_i(), ED_area_status_text(), ELEM, ElementMirror(), TransInfo::flag, FOREACH_TRANS_DATA_CONTAINER, IFACE_, LIKELY, TransCon::mode, recalc_data(), SNPRINTF, str, T_2D_EDIT, TD_SKIP, TransCon::text, UI_MAX_DRAW_STR, TransInfo::values, and TransInfo::values_final.
|
static |
Mirrors an object by negating the scale of the object on the mirror axis, reflecting the location and adjusting the rotation.
| axis | Either the axis to mirror on (0 = x, 1 = y, 2 = z) in transform space or -1 for no axis mirror. |
| flip | If true, a mirror on all axis will be performed additionally (point reflection). |
Definition at line 40 of file transform_mode_mirror.cc.
References add_v3_v3(), add_v3_v3v3(), TransInfo::around, TransData::axismtx, TransDataContainer::center_local, constraintSizeLim(), constraintTransLim(), copy_v3_v3(), CTX_MOVIECLIP, CTX_OBJECT, CTX_POSE_BONE, ElementRotation_ex(), TransData::ext, TransInfo::flag, invert_m3_m3(), TransDataExtension::irotAngle, TransDataExtension::isize, TransData::mtx, mul_m3_m3m3(), mul_m3_v3(), mul_v3_v3v3(), negate_v3(), TransInfo::options, protectedSizeBits(), protectedTransBits(), TransData::protectflag, reflect_v3_v3v3(), TransDataExtension::rotAngle, TransDataExtension::size, TransData::smtx, TransInfo::spacemtx, TransInfo::spacemtx_inv, sub_v3_v3(), sub_v3_v3v3(), T_EDIT, T_POINTS, T_V3D_ALIGN, TD_INDIVIDUAL_SCALE, TD_NO_LOC, transdata_check_local_center(), and unit_m3().
Referenced by applyMirror().
|
static |
Definition at line 217 of file transform_mode_mirror.cc.
References initMouseInputMode(), INPUT_NONE, and TransInfo::mouse.
| TransModeInfo TransMode_mirror |
Definition at line 224 of file transform_mode_mirror.cc.
Referenced by mode_info_get().