36#define USE_TRICKY_EXTEND
52 for (
Object *obedit : objects) {
77#ifdef USE_TRICKY_EXTEND
98 else if (tot_sel == 0) {
111 const float4x4 &object_to_world = obedit->object_to_world();
122 if (angle_test < angle_best) {
123 angle_best = angle_test;
129#ifdef USE_TRICKY_EXTEND
154 l_iter = l_first = e_best->
l;
156 bool was_select =
false;
157 if (l_iter->
next->
e == e_new) {
174 }
while ((l_iter = l_iter->
radial_next) != l_first);
192 EDBM_update(id_cast<Mesh *>(obedit->data), ¶ms);
204 float3 ray_start, ray_dir;
223 ot->
name =
"Extend Vertices";
224 ot->
idname =
"MESH_OT_rip_edge";
225 ot->
description =
"Extend vertices along the edge closest to the cursor";
244 "World-space ray origin for extending vertices",
256 "World-space direction vector for extending vertices",
Object is a sort of wrapper for general info.
#define BM_elem_flag_disable(ele, hflag)
#define BM_elem_flag_test(ele, hflag)
#define BM_elem_flag_test_bool(ele, hflag)
#define BM_elem_flag_enable(ele, hflag)
#define BM_ITER_ELEM(ele, iter, data, itype)
#define BM_ITER_MESH(ele, iter, bm, itype)
MatBase< T, NumCol, NumRow > normalize(const MatBase< T, NumCol, NumRow > &a)
VecBase< T, 3 > transform_point(const CartesianBasis &basis, const VecBase< T, 3 > &v)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void RNA_float_set_array(PointerRNA *ptr, const char *name, const float *values)
float angle_normalized_v3v3(const float v1[3], const float v2[3]) ATTR_WARN_UNUSED_RESULT
void ED_view3d_win_to_ray(const ARegion *region, const float mval[2], float r_ray_start[3], float r_ray_normal[3])
BMesh * BKE_editmesh_bmesh_get_for_write(Mesh *mesh)
bool EDBM_view3d_poll(bContext *C)
void EDBM_update(Mesh *mesh, const EDBMUpdate_Params *params)
void project_plane_normalized_v3_v3v3(float out[3], const float p[3], const float v_plane[3])
ATTR_WARN_UNUSED_RESULT const BMVert * v
MatBase< float, 4, 4 > float4x4
void BM_mesh_select_mode_flush(BMesh *bm)
BLI_INLINE BMVert * BM_edge_other_vert(BMEdge *e, const BMVert *v) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
ViewLayer * CTX_data_view_layer(const bContext *C)
PropertyRNA * RNA_def_float_vector(StructOrFunctionRNA *cont_, const char *identifier, const int len, const float *default_value, const float hardmin, const float hardmax, const char *ui_name, const char *ui_description, const float softmin, const float softmax)
void MESH_OT_rip_edge(wmOperatorType *ot)
VecBase< float, 2 > float2
static wmOperatorStatus edbm_rip_edge_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void BM_vert_select_set(BMesh *bm, BMVert *v, const bool select)
Select Vert.
MINLINE float normalize_v3(float n[3])
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
BMVert * BM_edge_split(BMesh *bm, BMEdge *e, BMVert *v, BMEdge **r_e, float fac)
Edge Split.
Main * CTX_data_main(const bContext *C)
static wmOperatorStatus edbm_rip_edge_exec(bContext *C, wmOperator *op)
float closest_to_line_v3(float r_close[3], const float p[3], const float l1[3], const float l2[3])
Vector< Object * > BKE_view_layer_array_from_objects_in_edit_mode_unique_data(const Main &bmain, const Scene *scene, ViewLayer *view_layer, const View3D *v3d)
void BM_select_history_clear(BMesh *bm)
Scene * CTX_data_scene(const bContext *C)
@ OPTYPE_DEPENDS_ON_CURSOR
VecBase< float, 3 > float3
ARegion * CTX_wm_region(const bContext *C)
void BM_loop_edge_uvselect_set(BMesh *bm, BMLoop *l, bool select)
View3D * CTX_wm_view3d(const bContext *C)
ATTR_WARN_UNUSED_RESULT const BMVert const BMEdge * e
void RNA_float_get_array(PointerRNA *ptr, const char *name, float *values)
void BM_edge_select_set(BMesh *bm, BMEdge *e, const bool select)
Select Edge.
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
struct BMLoop * radial_next
bool uv_select_sync_valid
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT