Blender
V3.3
|
Namespaces | |
convert_from_particle_system | |
convert_to_particle_system | |
disable_selection | |
select_all | |
set_selection_domain | |
snap_curves_to_surface | |
surface_set | |
The code below uses a suffix naming convention to indicate the coordinate space: cu
: Local space of the curves object that is being edited. su
: Local space of the surface object. wo
: World space. ha
: Local space of an individual hair in the legacy hair system.
|
static |
Definition at line 865 of file curves_ops.cc.
References curves, and varray_contains_nonzero().
Definition at line 870 of file curves_ops.cc.
References blender::bke::image::partial_update::wrap().
Referenced by blender::ed::curves::select_all::select_all_exec().
|
static |
Definition at line 516 of file curves_ops.cc.
References blender::ed::curves::convert_from_particle_system::curves_convert_from_particle_system_exec(), blender::ed::curves::convert_from_particle_system::curves_convert_from_particle_system_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curves().
|
static |
Definition at line 383 of file curves_ops.cc.
References blender::ed::curves::convert_to_particle_system::curves_convert_to_particle_system_exec(), curves_with_surface_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curves().
|
static |
Definition at line 826 of file curves_ops.cc.
References blender::ed::curves::disable_selection::curves_disable_selection_exec(), wmOperatorType::description, editable_curves_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_curves().
|
static |
Definition at line 788 of file curves_ops.cc.
References blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), wmOperatorType::description, editable_curves_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, wmOperatorType::prop, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), rna_enum_attribute_curves_domain_items, and wmOperatorType::srna.
Referenced by ED_operatortypes_curves().
|
static |
Definition at line 704 of file curves_ops.cc.
References wmOperatorType::description, editable_curves_with_surface_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), blender::ed::curves::snap_curves_to_surface::snap_curves_to_surface_exec(), and wmOperatorType::srna.
Referenced by ED_operatortypes_curves().
|
static |
Definition at line 1016 of file curves_ops.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, blender::ed::curves::surface_set::surface_set_exec(), and blender::ed::curves::surface_set::surface_set_poll().
Referenced by ED_operatortypes_curves().
Definition at line 133 of file curves_ops.cc.
References C, and curves_poll_impl().
Referenced by blender::ed::sculpt_paint::CURVES_OT_sculptmode_toggle().
|
static |
Definition at line 97 of file curves_ops.cc.
References C, CTX_data_active_object(), CTX_wm_operator_poll_msg_set(), curves, ED_operator_object_active_editable_ex(), OB_CURVES, OB_MESH, and Object::type.
Referenced by curves_poll(), curves_with_surface_poll(), editable_curves_poll(), and editable_curves_with_surface_poll().
Definition at line 123 of file curves_ops.cc.
References C, and curves_poll_impl().
Referenced by CURVES_OT_convert_to_particle_system(), and blender::ed::sculpt_paint::min_distance_edit::min_distance_edit_poll().
Definition at line 128 of file curves_ops.cc.
References C, and curves_poll_impl().
Referenced by CURVES_OT_disable_selection(), CURVES_OT_set_selection_domain(), SCULPT_CURVES_OT_select_all(), blender::ed::sculpt_paint::SCULPT_CURVES_OT_select_grow(), blender::ed::sculpt_paint::SCULPT_CURVES_OT_select_random(), and blender::ed::sculpt_paint::select_end::select_end_poll().
Definition at line 118 of file curves_ops.cc.
References C, and curves_poll_impl().
Referenced by CURVES_OT_snap_curves_to_surface().
void blender::ed::curves::ensure_surface_deformation_node_exists | ( | bContext & | C, |
Object & | curves_ob | ||
) |
Definition at line 58 of file curves_add.cc.
References C, CTX_data_main(), CTX_data_scene(), ED_node_tree_propagate_change(), ED_object_modifier_add(), eModifierType_Nodes, ListBase::first, GEO_NODE_DEFORM_CURVES_ON_SURFACE, has_surface_deformation_node(), bNode::inputs, bNode::locx, NodesModifierData::node_group, NODE_GROUP_INPUT, NODE_GROUP_OUTPUT, nodeAddLink(), nodeAddStaticNode(), nodeFindSocket(), ntree, ntreeAddSocketInterface(), ntreeAddTree(), bNode::outputs, scene, SOCK_IN, and SOCK_OUT.
Referenced by object_curves_empty_hair_add_exec(), and blender::ed::curves::surface_set::surface_set_exec().
Definition at line 76 of file curves_ops.cc.
References blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::VectorSet< Key, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), C, CTX_data_active_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), Object::data, and object_has_editable_curves().
Referenced by blender::ed::curves::disable_selection::curves_disable_selection_exec(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::ed::curves::select_all::select_all_exec(), blender::ed::sculpt_paint::select_end::select_end_exec(), and blender::ed::sculpt_paint::select_random::select_random_exec().
Definition at line 852 of file curves_ops.cc.
References ATTR_DOMAIN_CURVE, ATTR_DOMAIN_POINT, BLI_assert_unreachable, curves, Curves::geometry, Curves::selection_domain, varray_contains_nonzero(), and blender::bke::image::partial_update::wrap().
Referenced by blender::ed::sculpt_paint::select_end::select_end_exec(), and blender::ed::sculpt_paint::select_random::select_random_exec().
Definition at line 24 of file curves_add.cc.
References GEO_NODE_DEFORM_CURVES_ON_SURFACE, LISTBASE_FOREACH, node, NODE_GROUP, bNodeTree::nodes, and ntree.
Referenced by ensure_surface_deformation_node_exists(), and has_surface_deformation_node().
Definition at line 41 of file curves_add.cc.
References eModifierType_Nodes, has_surface_deformation_node(), LISTBASE_FOREACH, Object::modifiers, and NodesModifierData::node_group.
|
static |
Definition at line 62 of file curves_ops.cc.
References BKE_id_is_editable(), data, ELEM, OB_CURVES, OB_MODE_EDIT, OB_MODE_SCULPT_CURVES, and type.
Referenced by get_unique_editable_curves().
bke::CurvesGeometry blender::ed::curves::primitive_random_sphere | ( | const int | curves_size, |
const int | points_per_curve | ||
) |
Definition at line 99 of file curves_add.cc.
References CD_DEFAULT, CD_PROP_FLOAT, KDL::cos(), curves, CustomData_add_layer_named(), float(), blender::RandomNumberGenerator::get_float(), blender::MutableSpan< T >::index_range(), M_PI, blender::math::normalize(), offset, positions, radii, saacosf(), KDL::sin(), and t.
Referenced by object_curves_random_add_exec().
|
static |
Definition at line 932 of file curves_ops.cc.
References wmOperatorType::description, editable_curves_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, blender::ed::curves::select_all::select_all_exec(), and WM_operator_properties_select_all().
Referenced by ED_operatortypes_curves().
Definition at line 838 of file curves_ops.cc.
References data, and blender::devirtualize_varray().
Referenced by any_point_selected(), and has_anything_selected().