|
Blender V4.3
|
#include "MEM_guardedalloc.h"#include "BLI_math_vector.h"#include "BLI_utildefines.h"#include "DNA_curve_types.h"#include "DNA_lattice_types.h"#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "RNA_access.hh"#include "RNA_define.hh"#include "BKE_context.hh"#include "BKE_lattice.hh"#include "BKE_layer.hh"#include "DEG_depsgraph.hh"#include "ED_object.hh"#include "ED_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "lattice_intern.hh"Go to the source code of this file.
Functions | |
Make Regular Operator | |
| static bool | make_regular_poll (bContext *C) |
| static int | make_regular_exec (bContext *C, wmOperator *op) |
| void | LATTICE_OT_make_regular (wmOperatorType *ot) |
Flip Verts Operator | |
| enum | eLattice_FlipAxes { LATTICE_FLIP_U = 0 , LATTICE_FLIP_V = 1 , LATTICE_FLIP_W = 2 } |
| static void | lattice_flip_point_value (Lattice *lt, int u, int v, int w, float mid, eLattice_FlipAxes axis) |
| static void | lattice_swap_point_pairs (Lattice *lt, int u, int v, int w, float mid, eLattice_FlipAxes axis) |
| static int | lattice_flip_exec (bContext *C, wmOperator *op) |
| void | LATTICE_OT_flip (wmOperatorType *ot) |
| enum eLattice_FlipAxes |
| Enumerator | |
|---|---|
| LATTICE_FLIP_U | |
| LATTICE_FLIP_V | |
| LATTICE_FLIP_W | |
Definition at line 120 of file editlattice_tools.cc.
|
static |
Definition at line 202 of file editlattice_tools.cc.
References BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), Lattice::def, DEG_id_tag_update(), Lattice::editlatt, float, ID_RECALC_GEOMETRY, EditLatt::latt, lattice_flip_point_value(), LATTICE_FLIP_U, LATTICE_FLIP_V, LATTICE_FLIP_W, lattice_swap_point_pairs(), NC_GEOM, ND_DATA, OPERATOR_CANCELLED, OPERATOR_FINISHED, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, printf, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), blender::ed::object::shape_key_report_if_locked(), v, BPoint::vec, w(), and WM_event_add_notifier().
Referenced by LATTICE_OT_flip().
|
static |
Flip midpoint value so that relative distances between midpoint and neighbor-pair is maintained. Assumes that UVW <=> XYZ (i.e. axis-aligned index-axes with coordinate-axes).
Definition at line 131 of file editlattice_tools.cc.
References BKE_lattice_index_from_uvw(), Lattice::def, diff(), v, BPoint::vec, and w().
Referenced by lattice_flip_exec(), and lattice_swap_point_pairs().
| void LATTICE_OT_flip | ( | wmOperatorType * | ot | ) |
Definition at line 336 of file editlattice_tools.cc.
References wmOperatorType::description, ED_operator_editlattice(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, lattice_flip_exec(), LATTICE_FLIP_U, LATTICE_FLIP_V, LATTICE_FLIP_W, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, and WM_menu_invoke().
Referenced by ED_operatortypes_lattice().
| void LATTICE_OT_make_regular | ( | wmOperatorType * | ot | ) |
Definition at line 98 of file editlattice_tools.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, make_regular_exec(), make_regular_poll(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_lattice().
|
static |
Swap pairs of lattice points along a specified axis.
Definition at line 149 of file editlattice_tools.cc.
References BKE_lattice_index_from_uvw(), Lattice::def, lattice_flip_point_value(), LATTICE_FLIP_U, LATTICE_FLIP_V, LATTICE_FLIP_W, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, swap_v3_v3(), v, BPoint::vec, and w().
Referenced by lattice_flip_exec().
|
static |
Definition at line 54 of file editlattice_tools.cc.
References BKE_lattice_resize(), BKE_view_layer_array_from_objects_in_edit_mode_unique_data(), CTX_data_edit_object(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_view3d(), DEG_id_tag_update(), Lattice::editlatt, FOREACH_SELECTED_OBJECT_BEGIN, FOREACH_SELECTED_OBJECT_END, ID_RECALC_GEOMETRY, EditLatt::latt, NC_GEOM, ND_DATA, OB_LATTICE, OPERATOR_FINISHED, Lattice::pntsu, Lattice::pntsv, Lattice::pntsw, wmOperator::reports, blender::ed::object::shape_key_report_if_locked(), and WM_event_add_notifier().
Referenced by LATTICE_OT_make_regular().
|
static |
Definition at line 42 of file editlattice_tools.cc.
References CTX_data_active_object(), ED_operator_editlattice(), OB_LATTICE, and Object::type.
Referenced by LATTICE_OT_make_regular().