|
Blender
V3.3
|
#include "DNA_object_types.h"#include "DNA_scene_types.h"#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_math.h"#include "BKE_curve.h"#include "BKE_fcurve.h"#include "BKE_layer.h"#include "DEG_depsgraph.h"#include "DEG_depsgraph_build.h"#include "ED_curve.h"#include "ED_view3d.h"#include "curve_intern.h"Go to the source code of this file.
Functions | |
Cursor Picking API | |
| static void | ED_curve_pick_vert__do_closest (void *userData, Nurb *nu, BPoint *bp, BezTriple *bezt, int beztindex, bool handles_visible, const float screen_co[2]) |
| bool | ED_curve_pick_vert_ex (ViewContext *vc, short sel, const int dist_px, Nurb **r_nurb, BezTriple **r_bezt, BPoint **r_bp, short *r_handle, Base **r_base) |
| bool | ED_curve_pick_vert (ViewContext *vc, short sel, Nurb **r_nurb, BezTriple **r_bezt, BPoint **r_bp, short *r_handle, Base **r_base) |
Selection Queries | |
| void | ED_curve_nurb_vert_selected_find (Curve *cu, View3D *v3d, Nurb **r_nu, BezTriple **r_bezt, BPoint **r_bp) |
| bool | ED_curve_active_center (Curve *cu, float center[3]) |
Definition at line 231 of file editcurve_query.c.
References BKE_curve_nurb_vert_active_get(), center, copy_v3_v3(), CU_BEZIER, NULL, Nurb::type, BezTriple::vec, and BPoint::vec.
Referenced by ED_object_calc_active_center_for_editmode().
| void ED_curve_nurb_vert_selected_find | ( | Curve * | cu, |
| View3D * | v3d, | ||
| Nurb ** | r_nu, | ||
| BezTriple ** | r_bezt, | ||
| BPoint ** | r_bp | ||
| ) |
Definition at line 165 of file editcurve_query.c.
References Freestyle::a, BEZT_ISSEL_ANY_HIDDENHANDLES, CU_BEZIER, Curve::editnurb, ELEM, BPoint::f1, LISTBASE_FOREACH, NULL, EditNurb::nurbs, and SELECT.
Referenced by add_vertex_invoke().
| bool ED_curve_pick_vert | ( | ViewContext * | vc, |
| short | sel, | ||
| Nurb ** | r_nurb, | ||
| BezTriple ** | r_bezt, | ||
| BPoint ** | r_bp, | ||
| short * | r_handle, | ||
| Base ** | r_base | ||
| ) |
Definition at line 147 of file editcurve_query.c.
References ED_curve_pick_vert_ex(), and ED_view3d_select_dist_px().
Referenced by edcu_shortest_path_pick_invoke(), and select_linked_pick_invoke().
|
static |
Definition at line 32 of file editcurve_query.c.
References BLI_assert, data, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, len_manhattan_v2v2(), select(), SELECT, and UNUSED_VARS_NDEBUG.
Referenced by ED_curve_pick_vert_ex().
| bool ED_curve_pick_vert_ex | ( | struct ViewContext * | vc, |
| short | sel, | ||
| int | dist_px, | ||
| struct Nurb ** | r_nurb, | ||
| struct BezTriple ** | r_bezt, | ||
| struct BPoint ** | r_bp, | ||
| short * | r_handle, | ||
| struct Base ** | r_base | ||
| ) |
| sel_dist_mul | A multiplier on the default select distance. |
Definition at line 91 of file editcurve_query.c.
References BKE_view_layer_array_from_bases_in_edit_mode_unique_data, data, ED_curve_pick_vert__do_closest(), ED_view3d_init_mats_rv3d(), ED_view3d_viewcontext_init_object(), MEM_freeN, ViewContext::mval, NULL, nurbs_foreachScreenVert(), ViewContext::obedit, Base::object, ViewContext::rv3d, select(), ViewContext::v3d, V3D_PROJ_TEST_CLIP_DEFAULT, and ViewContext::view_layer.
Referenced by ED_curve_editnurb_select_pick(), and ED_curve_pick_vert().