Blender V5.3
mball_edit.cc File Reference
#include <cmath>
#include <cstring>
#include "MEM_guardedalloc.h"
#include "BLI_ghash.hh"
#include "BLI_kdtree.hh"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_rand_c.hh"
#include "BLI_rect.hh"
#include "BLI_utildefines.hh"
#include "DNA_meta_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_layer.hh"
#include "BKE_mball.hh"
#include "BKE_object.hh"
#include "BKE_object_types.hh"
#include "BLT_translation.hh"
#include "DEG_depsgraph.hh"
#include "GPU_select.hh"
#include "ED_mball.hh"
#include "ED_object.hh"
#include "ED_screen.hh"
#include "ED_select_utils.hh"
#include "ED_view3d.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_interface_icons.hh"
#include "mball_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

Edit Mode Functions
void blender::ED_mball_editmball_free (Object *obedit)
void blender::ED_mball_editmball_make (Object *obedit)
void blender::ED_mball_editmball_load (Object *obedit)
Selection
bool blender::ED_mball_deselect_all_multi (bContext *C)
Add Meta Primitive Utility
MetaElem * blender::ED_mball_add_primitive (bContext *C, Object *obedit, bool obedit_is_new, float mat[4][4], float dia, int type)
Select/Deselect Operator
static wmOperatorStatus blender::mball_select_all_exec (bContext *C, wmOperator *op)
void blender::MBALL_OT_select_all (wmOperatorType *ot)
Select Random Operator
static wmOperatorStatus blender::select_random_metaelems_exec (bContext *C, wmOperator *op)
void blender::MBALL_OT_select_random_metaelems (wmOperatorType *ot)
Duplicate Meta-Ball Operator
static wmOperatorStatus blender::duplicate_metaelems_exec (bContext *C, wmOperator *)
void blender::MBALL_OT_duplicate_metaelems (wmOperatorType *ot)
Delete Meta-Ball Operator

Delete all selected MetaElems (not MetaBall).

static wmOperatorStatus blender::delete_metaelems_exec (bContext *C, wmOperator *)
static wmOperatorStatus blender::delete_metaelems_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::MBALL_OT_delete_metaelems (wmOperatorType *ot)
Hide Meta-Elements Operator
static wmOperatorStatus blender::hide_metaelems_exec (bContext *C, wmOperator *op)
void blender::MBALL_OT_hide_metaelems (wmOperatorType *ot)
Un-Hide Meta-Elements Operator
static wmOperatorStatus blender::reveal_metaelems_exec (bContext *C, wmOperator *op)
void blender::MBALL_OT_reveal_metaelems (wmOperatorType *ot)
Select Pick Utility
Base * blender::ED_mball_base_and_elem_from_select_buffer (const Span< Base * > bases, const uint select_id, MetaElem **r_ml)
static bool blender::ed_mball_findnearest_metaelem (bContext *C, const int mval[2], bool use_cycle, Base **r_base, MetaElem **r_ml, uint *r_selmask)
bool blender::ED_mball_select_pick (bContext *C, const int mval[2], const SelectPick_Params &params)

Select Similar Operator

enum  { blender::SIMMBALL_TYPE = 1 , blender::SIMMBALL_RADIUS , blender::SIMMBALL_STIFFNESS , blender::SIMMBALL_ROTATION }
static const EnumPropertyItem blender::prop_similar_types []
static void blender::mball_select_similar_type_get (Object *obedit, MetaBall *mb, int type, Map< float, int > &points_1d, Map< float3, int > &points_3d)
static bool blender::mball_select_similar_type (Object *obedit, MetaBall *mb, int type, const KDTree< float > *tree_1d, const KDTree< float3 > *tree_3d, const float thresh)
static wmOperatorStatus blender::mball_select_similar_exec (bContext *C, wmOperator *op)
void blender::MBALL_OT_select_similar (wmOperatorType *ot)