Blender
V3.3
|
#include "DNA_vec_types.h"
#include "BLI_math.h"
#include "BLI_strict_flags.h"
#include "BLI_lasso_2d.h"
Go to the source code of this file.
Functions | |
void | BLI_lasso_boundbox (rcti *rect, const int mcoords[][2], const unsigned int mcoords_len) |
bool | BLI_lasso_is_point_inside (const int mcoords[][2], const unsigned int mcoords_len, const int sx, const int sy, const int error_value) |
bool | BLI_lasso_is_edge_inside (const int mcoords[][2], const unsigned int mcoords_len, int x0, int y0, int x1, int y1, const int error_value) |
Definition at line 15 of file lasso_2d.c.
References Freestyle::a, rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
Referenced by actkeys_lassoselect_exec(), do_lasso_select_armature(), do_lasso_select_curve(), do_lasso_select_lattice(), do_lasso_select_marker(), do_lasso_select_mask(), do_lasso_select_mesh(), do_lasso_select_mesh_uv(), do_lasso_select_meta(), blender::ed::space_node::do_lasso_select_node(), do_lasso_select_paintface(), do_lasso_select_paintvert(), do_lasso_tag_pose(), draw_filled_lasso(), ED_gpencil_stroke_point_is_inside(), gpencil_cutter_exec(), gpencil_lasso_select_exec(), graphkeys_lassoselect_exec(), and sculpt_gesture_init_from_lasso().
bool BLI_lasso_is_edge_inside | ( | const int | mcoords[][2], |
unsigned int | mcoords_len, | ||
int | x0, | ||
int | y0, | ||
int | x1, | ||
int | y1, | ||
int | error_value | ||
) |
Edge version for lasso select. We assume bound-box check was done.
Definition at line 52 of file lasso_2d.c.
References Freestyle::a, BLI_lasso_is_point_inside(), isect_seg_seg_v2_int(), v1, v2, and y1.
Referenced by do_lasso_select_armature__doSelectBone(), do_lasso_select_armature__doSelectBone_clip_content(), do_lasso_select_mesh__doSelectEdge_pass1(), do_lasso_select_mesh_uv_is_edge_inside(), and do_lasso_select_pose__do_tag().
bool BLI_lasso_is_point_inside | ( | const int | mcoords[][2], |
const unsigned int | mcoords_len, | ||
const int | sx, | ||
const int | sy, | ||
const int | error_value | ||
) |
Definition at line 38 of file lasso_2d.c.
References isect_point_poly_v2_int(), sx, and sy.
Referenced by BLI_lasso_is_edge_inside(), do_lasso_select_armature__doSelectBone(), do_lasso_select_curve__doSelect(), do_lasso_select_lattice__doSelect(), do_lasso_select_marker(), do_lasso_select_mask(), do_lasso_select_mball__doSelectElem(), do_lasso_select_mesh__doSelectEdge_pass0(), do_lasso_select_mesh__doSelectFace(), do_lasso_select_mesh__doSelectVert(), do_lasso_select_mesh_uv_is_point_inside(), do_lasso_select_meshobject__doSelectVert(), blender::ed::space_node::do_lasso_select_node(), do_lasso_select_objects(), ED_gpencil_stroke_point_is_inside(), gpencil_test_lasso(), keyframe_region_lasso_test(), and PE_lasso_select().