31 return (!is_select && (is_inside)) ? 1 : -1;
33 return (is_select && is_inside) ? 0 : -1;
35 return is_inside ? 1 : 0;
37 return (is_select && is_inside) ? -1 : (is_select ? 0 : -1);
39 return (is_select && is_inside) ? 0 : ((!is_select && is_inside) ? 1 : -1);
50 return (!is_select && is_inside) ? 1 : -1;
52 return (is_select && is_inside) ? 0 : -1;
55 return is_inside ? 1 : -1;
57 return (is_select && is_inside) ? -1 : (is_select ? 0 : -1);
59 return (is_select && is_inside) ? 0 : ((!is_select && is_inside) ? 1 : -1);
68 if (is_first ==
false) {
82 return (
fabsf(delta) <= thresh);
84 return ((delta + thresh) >= 0.0f);
86 return ((delta - thresh) <= 0.0f);
101 float nearest_edge_length;
106 nearest_edge_length =
length;
113 nearest_edge_length = -1.0f;
A KD-tree for nearest neighbor search.
#define CTX_IFACE_(context, msgid)
#define BLT_I18NCONTEXT_OPERATOR_DEFAULT
#define BLI_assert_unreachable()
#define BLI_assert_msg(a, msg)
float length(VecOp< float, D >) RET
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
std::string ED_select_circle_get_name(wmOperatorType *ot, PointerRNA *ptr)
int RNA_enum_get(PointerRNA *ptr, const char *name)
int ED_select_op_action(eSelectOp sel_op, bool is_select, bool is_inside)
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
eSelectOp ED_select_op_from_operator(PointerRNA *ptr) ATTR_WARN_UNUSED_RESULT
eSelectOp ED_select_op_modal(eSelectOp sel_op, bool is_first)
bool RNA_property_boolean_get(PointerRNA *ptr, PropertyRNA *prop)
bool ED_select_similar_compare_float_tree(const KDTree< float > *tree, float length, float thresh, eSimilarCmp compare)
int ED_select_op_action_deselected(eSelectOp sel_op, bool is_select, bool is_inside)
bool ED_select_similar_compare_float(float delta, float thresh, eSimilarCmp compare)
int kdtree_find_nearest(const KDTree< CoordT > *tree, const CoordT &co, KDTreeNearest< CoordT > *r_nearest)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
SelectPick_Params ED_select_pick_params_from_operator(PointerRNA *ptr) ATTR_NONNULL(1)
std::string ED_select_pick_get_name(wmOperatorType *ot, PointerRNA *ptr)