50 const int mode = tvs->
mode;
60 Curve *cu = id_cast<Curve *>(obedit->
data);
62 Nurb *nu = nurbs->first();
75 if (bezt->
hide == 0) {
76 bool skip_handle =
false;
81 if ((bezt->
f1 &
SELECT) && !skip_handle) {
89 if (((bezt->
f1 &
SELECT) && !skip_handle) == 0) {
94 if (((bezt->
f3 &
SELECT) && !skip_handle) == 0) {
103 if ((bezt->
f3 &
SELECT) && !skip_handle) {
150 if (a < tvs->transverts_tot) {
182 Curves *curves_id = id_cast<Curves *>(obedit->
data);
188 pointcloud->tag_positions_changed();
194 void **userdata =
static_cast<void **
>(vuserdata);
252 void *userdata[2] = {
bm,
nullptr};
358 int totmalloc = arm->
edbo->count();
368 const bool rootok = !(
372 if ((tipsel && rootsel) || (rootsel)) {
404 Curve *cu = id_cast<Curve *>(obedit->
data);
408 for (
Nurb &nu : *nurbs) {
410 totmalloc += 3 * nu.
pntsu;
424 if (bezt->
hide == 0) {
425 bool skip_handle =
false;
430 if ((bezt->
f1 &
SELECT) && !skip_handle) {
456 if ((bezt->
f3 &
SELECT) && !skip_handle) {
512 Lattice *lt = id_cast<Lattice *>(object_orig->
data);
534 Curves *curves_id = id_cast<Curves *>(obedit->
data);
551 tv.
loc = positions[i];
Functions to deal with Armatures.
General operations, lookup, etc. for blender objects.
Object is a sort of wrapper for general info.
Read Blender memory allocation and freeing.
#define BM_elem_index_get(ele)
#define BM_elem_index_set(ele, index)
#define BM_elem_flag_test(ele, hflag)
#define BM_ITER_ELEM(ele, iter, data, itype)
#define BM_ITER_MESH(ele, iter, bm, itype)
void foreach_index(Fn &&fn, Mode mode=exec_mode::serial) const
bool bone_is_visible(const bArmature *armature, const Bone *bone)
void transverts_from_curves_positions_create(bke::CurvesGeometry &curves, TransVertStore *tvs, const bool skip_handles)
void transverts_update_curves(bke::CurvesGeometry &curves, const TransVertStore *tvs, const bool skip_handles)
IndexMask retrieve_selected_points(const PointCloud &pointcloud, IndexMaskMemory &memory)
constexpr ParallelGrainSize grain_size(int grain_size)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
MINLINE float len_squared_v3v3(const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
const Mesh * BKE_object_get_editmesh_eval_cage(const Object *object)
void ED_transverts_update_obedit(TransVertStore *tvs, Object *obedit)
BMesh * BKE_editmesh_bmesh_get_for_write(Mesh *mesh)
MINLINE void copy_v3_v3(float r[3], const float a[3])
ATTR_WARN_UNUSED_RESULT const BMLoop * l
void BM_mesh_elem_table_ensure(BMesh *bm, const char htype)
void ED_armature_edit_transform_mirror_update(Object *obedit)
bool ED_transverts_poll(bContext *C)
ATTR_WARN_UNUSED_RESULT const BMVert * v
void BKE_nurb_project_2d(Nurb *nu)
void DEG_id_tag_update(ID *id, unsigned int flags)
void ED_transverts_create_from_obedit(TransVertStore *tvs, const Object *obedit, int mode)
void outside_lattice(Lattice *lt)
Object * CTX_data_edit_object(const bContext *C)
static void set_mapped_co(void *vuserdata, int index, const float co[3], const float[3])
BLI_INLINE BMVert * BM_vert_at_index(BMesh *bm, const int index)
MINLINE void add_v3_v3(float r[3], const float a[3])
MINLINE void sub_v3_v3v3(float r[3], const float a[3], const float b[3])
T * DEG_get_original(T *id)
void BKE_nurb_handles_test(Nurb *nu, eNurbHandleTest_Mode handle_mode, bool use_around_local)
void ED_transverts_free(TransVertStore *tvs)
void BKE_mesh_foreach_mapped_vert(const Mesh *mesh, void(*func)(void *user_data, int index, const float co[3], const float no[3]), void *user_data, MeshForeachFlag flag)
const BMesh * BKE_editmesh_bmesh_get(const Object *ob)
ListBaseT< Nurb > * BKE_curve_editNurbs_get(Curve *cu)
bool DEG_is_evaluated(const T *id)
void BKE_nurb_bezt_calc_plane(Nurb *nu, BezTriple *bezt, float r_plane[3])
bool ED_transverts_check_obedit(const Object *obedit)
void BM_mesh_normals_update(BMesh *bm)
void * MEM_new_array_zeroed(size_t len, size_t size, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
struct EditLatt * editlatt
ListBaseT< EditBone > * edbo