Blender  V2.93
Functions
select_utils.c File Reference
#include "BLI_kdtree.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "ED_select_utils.h"
#include "float.h"

Go to the source code of this file.

Functions

int ED_select_op_action (const eSelectOp sel_op, const bool is_select, const bool is_inside)
 
int ED_select_op_action_deselected (const eSelectOp sel_op, const bool is_select, const bool is_inside)
 
eSelectOp ED_select_op_modal (const eSelectOp sel_op, const bool is_first)
 
int ED_select_similar_compare_float (const float delta, const float thresh, const int compare)
 
bool ED_select_similar_compare_float_tree (const KDTree_1d *tree, const float length, const float thresh, const int compare)
 

Function Documentation

◆ ED_select_op_action()

int ED_select_op_action ( const eSelectOp  sel_op,
const bool  is_select,
const bool  is_inside 
)

1: select, 0: deselect, -1: pass.

Definition at line 30 of file select_utils.c.

References BLI_assert, is_inside(), SEL_OP_ADD, SEL_OP_AND, SEL_OP_SET, SEL_OP_SUB, and SEL_OP_XOR.

◆ ED_select_op_action_deselected()

int ED_select_op_action_deselected ( const eSelectOp  sel_op,
const bool  is_select,
const bool  is_inside 
)

◆ ED_select_op_modal()

eSelectOp ED_select_op_modal ( const eSelectOp  sel_op,
const bool  is_first 
)

Utility to use for selection operations that run multiple times (circle select).

Definition at line 77 of file select_utils.c.

References SEL_OP_ADD, and SEL_OP_SET.

Referenced by action_circle_select_exec(), circle_select_exec(), gpencil_circle_select_exec(), graph_circle_select_exec(), node_circleselect_exec(), uv_circle_select_exec(), and view3d_circle_select_exec().

◆ ED_select_similar_compare_float()

int ED_select_similar_compare_float ( const float  delta,
const float  thresh,
const int  compare 
)

◆ ED_select_similar_compare_float_tree()

bool ED_select_similar_compare_float_tree ( const KDTree_1d *  tree,
const float  length,
const float  thresh,
const int  compare 
)