Blender
V3.3
|
#include "MEM_guardedalloc.h"
#include "DNA_layer_types.h"
#include "DNA_object_types.h"
#include "BLI_math.h"
#include "BLI_rand.h"
#include "BKE_context.h"
#include "BKE_layer.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_transverts.h"
#include "object_intern.h"
Go to the source code of this file.
Functions | |
static bool | object_rand_transverts (TransVertStore *tvs, const float offset, const float uniform, const float normal_factor, const uint seed) |
static int | object_rand_verts_exec (bContext *C, wmOperator *op) |
void | TRANSFORM_OT_vertex_random (struct wmOperatorType *ot) |
|
static |
Generic randomize vertices function
Definition at line 33 of file object_random.c.
References Freestyle::a, BLI_rng_free(), BLI_rng_get_float(), BLI_rng_get_float_unit_v3(), BLI_rng_new(), copy_v3_v3(), dot_v3v3(), TransVert::flag, interp_v3_v3v3_slerp_safe(), TransVert::loc, madd_v3_v3fl(), max_ff(), negate_v3_v3(), TransVert::normal, offset, RNG::rng, seed, t, TransVertStore::transverts, TransVertStore::transverts_tot, and TX_VERT_USE_NORMAL.
Referenced by object_rand_verts_exec().
|
static |
Definition at line 78 of file object_random.c.
References BKE_view_layer_array_from_objects_in_mode_unique_data, BLI_ghashutil_strhash_p(), C, CTX_data_edit_object(), CTX_data_view_layer(), CTX_wm_view3d(), ED_transverts_create_from_obedit(), ED_transverts_free(), ED_transverts_update_obedit(), Object::id, MEM_freeN, Object::mode, ID::name, NC_OBJECT, ND_DRAW, NULL, object_rand_transverts(), offset, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_float_get(), RNA_int_get(), seed, TM_ALL_JOINTS, TransVertStore::transverts_tot, TX_VERT_USE_NORMAL, and WM_event_add_notifier().
Referenced by TRANSFORM_OT_vertex_random().
void TRANSFORM_OT_vertex_random | ( | struct wmOperatorType * | ot | ) |
Definition at line 130 of file object_random.c.
References wmOperatorType::description, ED_transverts_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_rand_verts_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, RNA_def_float_distance(), RNA_def_float_factor(), RNA_def_int(), wmOperatorType::srna, and WM_operator_type_modal_from_exec_for_object_edit_coords().
Referenced by ED_operatortypes_object().