|
Blender V5.3
|
Namespaces | |
| namespace | animdata |
| namespace | animviz |
| namespace | attribute_math |
| namespace | bake |
| namespace | blendfile |
| namespace | brush |
| namespace | bvh |
| namespace | calc_edges |
| namespace | ccg |
| namespace | compare_geometry |
| namespace | compositor |
| namespace | crazyspace |
| namespace | cryptomatte |
| namespace | curves |
| namespace | detail |
| namespace | forward_compat |
| namespace | greasepencil |
| namespace | id |
| namespace | id_hash |
| namespace | idprop |
| namespace | image |
| namespace | liboverride |
| namespace | library |
| namespace | mesh |
| namespace | mesh_surface_sample |
| namespace | motionpath |
| namespace | nla |
| namespace | node_interface |
| namespace | node_structure_type_inferencing |
| namespace | node_tree_reference_lifetimes |
| namespace | node_tree_runtime |
| namespace | object |
| namespace | outliner |
| namespace | paint |
| namespace | path_templates |
| namespace | pbvh |
| namespace | preferences |
| namespace | shrinkwrap |
| namespace | socket_value_visitor |
| namespace | subdiv |
| namespace | tests |
| namespace | versioning_internal |
| namespace | volume_grid |
Enumerations | |
| enum class | AttrStorageType : int8_t { Array = 0 , Single = 1 } |
| enum class | AttrType : int16_t { Bool = 0 , Int8 = 1 , Int16_2D = 2 , Int32 = 3 , Int32_2D = 4 , Float = 5 , Float2 = 6 , Float3 = 7 , Float4x4 = 8 , ColorByte = 9 , ColorFloat = 10 , Quaternion = 11 , String = 12 , Float4 = 13 } |
| enum class | AttrDomain : int8_t { Point = 0 , Edge = 1 , Face = 2 , Corner = 3 , Curve = 4 , Instance = 5 , Layer = 6 } |
| enum class | AttrDomainSelection : int8_t { Auto = -1 , Point = int8_t(AttrDomain::Point) , Edge = int8_t(AttrDomain::Edge) , Face = int8_t(AttrDomain::Face) , Corner = int8_t(AttrDomain::Corner) , Curve = int8_t(AttrDomain::Curve) , Instance = int8_t(AttrDomain::Instance) , Layer = int8_t(AttrDomain::Layer) } |
| enum class | ProjectVariableType : char { STRING = eIDPropertyType::IDP_STRING , INT = eIDPropertyType::IDP_INT , FLOAT = eIDPropertyType::IDP_FLOAT } |
| enum class | ProjectVariableStringSubtype { NONE = 0 , FILEPATH = 1 } |
| enum class | GeometryOwnershipType { Owned = 0 , Editable = 1 , ReadOnly = 2 } |
| enum class | MeshNormalDomain : int8_t { Face = 0 , Point = 1 , Corner = 2 } |
| enum | NodeSocketValueMenuRuntimeFlag { NODE_MENU_ITEMS_CONFLICT = (1 << 0) } |
| enum class | FieldSocketState : int8_t { RequiresSingle , CanBeField , IsField } |
| enum class | ARegionQuadviewIndex : uint8_t { None = 0 , BottomLeft = 1 , TopLeft = 2 , BottomRight = 3 , TopRight = 4 } |
| enum | ARegionRuntimeFlag : uint8_t { HUD_PADDING = (1 << 0) } |
| enum class | wmIMEOwnerType : int8_t { Region , Button } |
| enum class | ShaderNodeAncestorFlags { None = 0u , ShaderMaterialOutput = 1u << 0 , OtherOutput = 1u << 1 , ShaderToRGB = 1u << 2 , LightAccumulationColor = 1u << 3 } |
| enum class | SoundTags { None = 0 , WaveformNoReload = 1 << 0 , WaveformLoading = 1 << 1 } |
Functions | |
| void | BKE_action_find_fcurves_with_bones (bAction *action, animrig::slot_handle_t slot_handle, FoundFCurveCallback callback) |
| void | BKE_action_find_fcurves_with_bones (const bAction *action, animrig::slot_handle_t slot_handle, FoundFCurveCallbackConst callback) |
| bool | attribute_name_is_anonymous (const StringRef name) |
| template<typename... Args> | |
| std::string | hash_to_anonymous_attribute_name (Args &&...args) |
| SelectedBonesResult | BKE_armature_find_selected_bones (const bArmature *armature, SelectedBoneCallback callback) |
| BoneNameSet | BKE_armature_find_selected_bone_names (const bArmature *armature) |
| BoneNameSet | BKE_pose_channel_find_selected_names (const Object *object) |
| ID * | asset_edit_id_from_weak_reference (Main &global_main, ID_Type id_type, const AssetWeakReference &weak_ref) |
| std::optional< AssetWeakReference > | asset_edit_weak_reference_from_id (const ID &id) |
| bool | asset_edit_id_is_editable (const ID &id) |
| bool | asset_edit_id_is_writable (const ID &id) |
| std::optional< std::string > | asset_edit_id_save_as (Main &global_main, const ID &id, StringRefNull name, const bUserAssetLibrary &user_library, AssetWeakReference &r_weak_ref, ReportList &reports) |
| bool | asset_edit_id_save (Main &global_main, ID &id, ReportList &reports) |
| bool | asset_edit_id_rename (Main &global_main, ID &id, StringRefNull new_name, const bUserAssetLibrary &user_library, ReportList &reports) |
| ID * | asset_edit_id_revert (Main &global_main, ID &id, ReportList &reports) |
| bool | asset_edit_id_delete (Main &global_main, ID &id, ReportList &reports) |
| ID * | asset_edit_id_find_local (Main &global_main, ID &id) |
| ID * | asset_edit_id_ensure_local (Main &global_main, ID &id) |
| const CPPType & | attribute_type_to_cpp_type (AttrType type) |
| AttrType | cpp_type_to_attribute_type (const CPPType &type) |
| bool | allow_procedural_attribute_access (StringRef attribute_name) |
| AttrType | attribute_data_type_highest_complexity (Span< AttrType > data_types) |
| AttrDomain | attribute_domain_highest_priority (Span< AttrDomain > domains) |
| void | gather_attributes (AttributeAccessor src_attributes, AttrDomain src_domain, AttrDomain dst_domain, const AttributeFilter &attribute_filter, const IndexMask &selection, MutableAttributeAccessor dst_attributes) |
| void | gather_attributes (AttributeAccessor src_attributes, AttrDomain src_domain, AttrDomain dst_domain, const AttributeFilter &attribute_filter, Span< int > indices, MutableAttributeAccessor dst_attributes) |
| void | gather_attributes_group_to_group (AttributeAccessor src_attributes, AttrDomain src_domain, AttrDomain dst_domain, const AttributeFilter &attribute_filter, OffsetIndices< int > src_offsets, OffsetIndices< int > dst_offsets, const IndexMask &selection, MutableAttributeAccessor dst_attributes) |
| void | gather_attributes_to_groups (AttributeAccessor src_attributes, AttrDomain src_domain, AttrDomain dst_domain, const AttributeFilter &attribute_filter, OffsetIndices< int > dst_offsets, const IndexMask &src_selection, MutableAttributeAccessor dst_attributes) |
| void | copy_attributes (const AttributeAccessor src_attributes, AttrDomain src_domain, AttrDomain dst_domain, const AttributeFilter &attribute_filter, MutableAttributeAccessor dst_attributes) |
| void | copy_attributes_group_to_group (AttributeAccessor src_attributes, AttrDomain src_domain, AttrDomain dst_domain, const AttributeFilter &attribute_filter, OffsetIndices< int > src_offsets, OffsetIndices< int > dst_offsets, const IndexMask &selection, MutableAttributeAccessor dst_attributes) |
| void | fill_attribute_range_default (MutableAttributeAccessor dst_attributes, AttrDomain domain, const AttributeFilter &attribute_filter, IndexRange range) |
| void | transform_custom_normal_attribute (const float4x4 &transform, MutableAttributeAccessor &attributes) |
| auto | attribute_filter_with_skip_ref (const AttributeFilter &filter, const Span< StringRef > skip) |
| template<typename StringT> | |
| auto | attribute_filter_with_skip_ref (const AttributeFilter &filter, const Set< StringT > &skip) |
| auto | attribute_filter_from_skip_ref (const Span< StringRef > skip) |
| template<typename StringT> | |
| auto | attribute_filter_from_skip_ref (const Set< StringT > &skip) |
| const CPPType * | custom_data_type_to_cpp_type (eCustomDataType type) |
| std::optional< eCustomDataType > | cpp_type_to_custom_data_type (const CPPType &type) |
| std::optional< AttrType > | custom_data_type_to_attr_type (eCustomDataType data_type) |
| std::optional< eCustomDataType > | attr_type_to_custom_data_type (AttrType attr_type) |
| void | mesh_convert_customdata_to_storage (Mesh &mesh) |
| void | curves_convert_customdata_to_storage (CurvesGeometry &curves) |
| void | pointcloud_convert_customdata_to_storage (PointCloud &pointcloud) |
| void | grease_pencil_convert_customdata_to_storage (GreasePencil &grease_pencil) |
| void | attribute_storage_blend_write_prepare (AttributeStorage &data, bool use_5_0_compatibility, FunctionRef< int(AttrDomain)> get_domain_size, AttributeStorage::BlendWriteData &write_data) |
| void | with_blender_project_read_lock (FunctionRef< void()> lambda) |
| void | with_blender_project_write_lock (FunctionRef< void()> lambda) |
| bool | is_valid_project_variable_name (StringRef name) |
| std::string | ensure_is_valid_project_variable_name (StringRef name) |
| Curves * | curve_legacy_to_curves (const Curve &curve_legacy) |
| Curves * | curve_legacy_to_curves (const Curve &curve_legacy, const ListBaseT< Nurb > &nurbs_list) |
| KnotsMode | knots_mode_from_legacy (short flag) |
| Mesh * | curve_to_mesh_sweep (const CurvesGeometry &main, const CurvesGeometry &profile, const VArray< float > &scales, bool fill_caps, std::optional< float > miter_limit_angle, const bke::AttributeFilter &attribute_filter={}) |
| Mesh * | curve_to_wire_mesh (const CurvesGeometry &curve, const bke::AttributeFilter &attribute_filter={}) |
| void | curves_normals_point_domain_calc (const CurvesGeometry &curves, MutableSpan< float3 > normals) |
| Curves * | curves_new_nomain (int points_num, int curves_num) |
| Curves * | curves_new_nomain (CurvesGeometry curves) |
| Curves * | curves_new_nomain_single (int points_num, CurveType type) |
| void | curves_copy_parameters (const Curves &src, Curves &dst) |
| void | curves_store_surface_in_geometry_bundle (const Depsgraph &depsgraph, const Curves &curves, GeometrySet &geometry) |
| VArray< float > | varray_for_deform_verts (Span< MDeformVert > dverts, int defgroup_index) |
| VMutableArray< float > | varray_for_mutable_deform_verts (MutableSpan< MDeformVert > dverts, int defgroup_index) |
| void | remove_defgroup_index (MutableSpan< MDeformVert > dverts, int defgroup_index) |
| void | gather_deform_verts (Span< MDeformVert > src, Span< int > indices, MutableSpan< MDeformVert > dst) |
| void | gather_deform_verts (Span< MDeformVert > src, Span< int > indices, const IndexMask &dst_mask, MutableSpan< MDeformVert > dst) |
| void | gather_deform_verts (Span< MDeformVert > src, const IndexMask &indices, MutableSpan< MDeformVert > dst) |
| MDeformVert | mix_deform_verts (const Span< MDeformVert > src, const Span< int > indices, const Span< float > weights, MDeformWeightSet &dw_buffer) |
| void | file_handler_add (std::unique_ptr< FileHandlerType > file_handler) |
| FileHandlerType * | file_handler_find (StringRef idname) |
| void | file_handler_remove (FileHandlerType *file_handler) |
| Span< std::unique_ptr< FileHandlerType > > | file_handlers () |
| Vector< FileHandlerType * > | file_handlers_poll_file_drop (const bContext *C, const Span< std::string > paths) |
| bool | try_capture_fields_on_geometry (MutableAttributeAccessor attributes, const fn::FieldContext &field_context, Span< StringRef > names, AttrDomain domain, const fn::Field< bool > &selection, Span< fn::GField > fields) |
| bool | try_capture_field_on_geometry (MutableAttributeAccessor attributes, const fn::FieldContext &field_context, const StringRef name, AttrDomain domain, const fn::Field< bool > &selection, const fn::GField &field) |
| bool | try_capture_fields_on_geometry (GeometryComponent &component, Span< StringRef > names, AttrDomain domain, Span< fn::GField > fields) |
| bool | try_capture_field_on_geometry (GeometryComponent &component, const StringRef name, AttrDomain domain, const fn::GField &field) |
| bool | try_capture_fields_on_geometry (GeometryComponent &component, Span< StringRef > names, AttrDomain domain, const fn::Field< bool > &selection, Span< fn::GField > fields) |
| bool | try_capture_field_on_geometry (GeometryComponent &component, const StringRef name, AttrDomain domain, const fn::Field< bool > &selection, const fn::GField &field) |
| std::optional< AttrDomain > | try_detect_field_domain (const GeometryComponent &component, const fn::GField &field) |
| std::optional< AttrDomain > | try_detect_native_field_domain (const GeometryComponent &component, const fn::GField &field) |
| GeometrySet | object_get_evaluated_geometry_set (const Object &object, bool apply_subdiv=true) |
| void | gtest_setup () |
| void | gtest_teardown () |
| VArray< float3 > | instance_position_varray (const Instances &instances) |
| VMutableArray< float3 > | instance_position_varray_for_write (Instances &instances) |
| const AttributeAccessorFunctions & | instance_attribute_accessor_functions () |
| void | mesh_set_custom_normals (Mesh &mesh, MutableSpan< float3 > corner_normals) |
| void | mesh_set_custom_normals_normalized (Mesh &mesh, MutableSpan< float3 > corner_normals) |
| void | mesh_set_custom_normals_from_verts (Mesh &mesh, MutableSpan< float3 > vert_normals) |
| void | mesh_set_custom_normals_from_verts_normalized (Mesh &mesh, MutableSpan< float3 > vert_normals) |
| void | mesh_uv_select_to_single_attribute (Mesh &mesh) |
| void | mesh_custom_normals_to_generic (Mesh &mesh) |
| void | mesh_sculpt_mask_to_generic (Mesh &mesh) |
| void | mesh_freestyle_marks_to_generic (Mesh &mesh) |
| void | mesh_skin_to_generic (Mesh &mesh) |
| void | mesh_skin_to_legacy (AttributeStorage::BlendWriteData &attr_write_data, CustomData &vert_data, Vector< CustomDataLayer, 16 > &vert_layers, int verts_num) |
| void | mesh_remesh_reproject_attributes (const Mesh &src, Mesh &dst) |
| void | mesh_get_mapped_verts_coords (const Mesh *mesh_eval, MutableSpan< float3 > r_cos) |
| const Mesh * | editbmesh_get_eval_cage (Depsgraph *depsgraph, const Scene *scene, Object *obedit, const CustomData_MeshMasks *dataMask) |
| const Mesh * | editbmesh_get_eval_cage_from_orig (Depsgraph *depsgraph, const Scene *scene, Object *obedit, const CustomData_MeshMasks *dataMask) |
| bool | editbmesh_modifier_is_enabled (const Scene *scene, const Object *ob, ModifierData *md, bool has_prev_mesh) |
| const Mesh * | mesh_get_eval_deform (Depsgraph *depsgraph, const Scene *scene, Object *ob, const CustomData_MeshMasks *dataMask) |
| Mesh * | mesh_create_eval_final (Depsgraph *depsgraph, const Scene *scene, Object *ob, const CustomData_MeshMasks *dataMask) |
| Mesh * | mesh_create_eval_no_deform (Depsgraph *depsgraph, const Scene *scene, Object *ob, const CustomData_MeshMasks *dataMask) |
| Mesh * | mesh_create_eval_no_deform_render (Depsgraph *depsgraph, const Scene *scene, Object *ob, const CustomData_MeshMasks *dataMask) |
| std::string | node_tree_to_dot (const bNodeTree &tree, const bNodeTreeToDotOptions &options=bNodeTreeToDotOptions()) |
| const bNodeTreeZones * | get_tree_zones (const bNodeTree &tree) |
| PointCloud * | pointcloud_new_no_attributes (PointCloudType type, int totpoint) |
| const AttributeAccessorFunctions & | pointcloud_attribute_accessor_functions () |
| Scene * | scene_or_sequencer_scene_from_context (const bContext &C) |
| const DataTypeConversions & | get_implicit_type_conversions () |
| static void | action_init_data (ID *action_id) |
| static void | action_copy_data (Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int flag) |
| static void | action_free_data (ID *id) |
| static void | action_foreach_id (ID *id, LibraryForeachIDData *data) |
| static void | write_channelbag (BlendWriter *writer, animrig::Channelbag &channelbag) |
| static void | write_strip_keyframe_data (BlendWriter *writer, animrig::StripKeyframeData &strip_keyframe_data) |
| static void | write_strip_keyframe_data_array (BlendWriter *writer, Span< animrig::StripKeyframeData * > strip_keyframe_data_array) |
| static void | write_strips (BlendWriter *writer, Span< animrig::Strip * > strips) |
| static void | write_layers (BlendWriter *writer, Span< animrig::Layer * > layers) |
| static void | write_slots (BlendWriter *writer, Span< animrig::Slot * > slots) |
| static void | action_blend_write_make_legacy_channel_groups_listbase (ListBaseT< bActionGroup > &listbase, const Span< bActionGroup * > channel_groups) |
| static void | action_blend_write_clear_legacy_channel_groups_listbase (ListBaseT< bActionGroup > &listbase) |
| static void | action_blend_write_make_legacy_fcurves_listbase (ListBaseT< FCurve > &listbase, const Span< FCurve * > fcurves) |
| static void | action_blend_write_clear_legacy_fcurves_listbase (ListBaseT< FCurve > &listbase) |
| static void | action_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
| static void | read_channelbag (BlendDataReader *reader, animrig::Channelbag &channelbag) |
| static void | read_strip_keyframe_data (BlendDataReader *reader, animrig::StripKeyframeData &strip_keyframe_data) |
| static void | read_strip_keyframe_data_array (BlendDataReader *reader, animrig::Action &action) |
| static void | read_layers (BlendDataReader *reader, animrig::Action &action) |
| static void | read_slots (BlendDataReader *reader, animrig::Action &action) |
| static void | action_blend_read_data (BlendDataReader *reader, ID *id) |
| static IDProperty * | action_asset_type_property (const bAction *action) |
| static void | action_asset_metadata_ensure (void *asset_ptr, AssetMetaData *asset_data) |
| template<typename MixerT> | |
| static void | b_bone_deform (const bke::PChanBoneConst pchanbone, const float3 &co, const float weight, MixerT &mixer) |
| template<typename MixerT> | |
| static float | dist_bone_deform (const bke::PChanBoneConst pchanbone, const float3 &co, MixerT &mixer) |
| template<typename MixerT> | |
| static float | pchan_bone_deform (const PChanBone pchanbone, const float weight, const float3 &co, MixerT &mixer) |
| static ArmatureDeformParams | get_armature_deform_params (const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, MutableSpan< float3 > vert_coords, std::optional< Span< float3 > > vert_coords_prev, std::optional< MutableSpan< float3x3 > > vert_deform_mats, const int deformflag, StringRefNull defgrp_name, const bool try_use_dverts) |
| template<typename MixerT> | |
| static void | armature_vert_task_with_mixer (const ArmatureDeformParams ¶ms, const int i, const MDeformVert *dvert, MixerT &mixer) |
| static void | armature_vert_task_with_dvert (const ArmatureDeformParams &deform_params, const int i, const MDeformVert *dvert, const bool use_quaternion) |
| static void | armature_deform_coords (const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, const MutableSpan< float3 > vert_coords, const std::optional< MutableSpan< float3x3 > > vert_deform_mats, const int deformflag, const std::optional< Span< float3 > > vert_coords_prev, StringRefNull defgrp_name, const std::optional< Span< MDeformVert > > dverts, const Mesh *me_target) |
| template<bool use_dvert> | |
| static void | armature_vert_task_editmesh (void *__restrict userdata, MempoolIterData *iter, const TaskParallelTLS *__restrict) |
| static void | armature_deform_editmesh (const Object &ob_arm, const Object &ob_target, const ListBaseT< bDeformGroup > *defbase, const MutableSpan< float3 > vert_coords, const std::optional< MutableSpan< float3x3 > > vert_deform_mats, const int deformflag, const std::optional< Span< float3 > > vert_coords_prev, StringRefNull defgrp_name, const BMesh &bm_target, const int cd_dvert_offset) |
| static bool | verify_armature_deform_valid (const Object &ob_arm) |
| static const char * | asset_name_in_library (const ID &id) |
| static void | asset_name_in_library_set (ID &id, const char *name) |
| static ID * | asset_link_id (Main &global_main, const ID_Type id_type, const char *filepath, const char *asset_name, ReportList *reports=nullptr) |
| static std::string | asset_root_path_for_save (const bUserAssetLibrary &user_library, const ID_Type id_type) |
| static std::string | asset_blendfile_path_for_save (const bUserAssetLibrary &user_library, const StringRef base_name, const ID_Type id_type, ReportList &reports) |
| static bool | asset_write_in_library (Main &bmain, const ID &id_const, const StringRef name, const StringRefNull filepath, std::string &final_full_file_path, ReportList &reports) |
| static ID * | asset_reload (Main &global_main, ID &id, ReportList *reports) |
| static AssetWeakReference | asset_weak_reference_for_user_library (const bUserAssetLibrary &user_library, const short idcode, const char *idname, const char *filepath) |
| static AssetWeakReference | asset_weak_reference_for_online_essentials (const short idcode, const char *idname, const char *filepath) |
| static AssetWeakReference | asset_weak_reference_for_essentials (const short idcode, const char *idname, const char *filepath) |
| static int | attribute_data_type_complexity (const AttrType data_type) |
| static int | attribute_domain_priority (const AttrDomain domain) |
| static bool | try_add_single_value_attribute (const GVArray &src, const StringRef name, const AttrDomain dst_domain, const AttrType data_type, MutableAttributeAccessor &dst_attributes) |
| static GPointer | get_default_for_fill (AttributeAccessor attributes, const CPPType &type, const StringRef name) |
| static void | attribute_legacy_convert_customdata_to_storage (const Map< AttrDomain, CustomDataAndSize > &domains, AttributeStorage &storage) |
| static const CustomData & | get_custom_data (const Mesh &mesh, const AttrDomain domain) |
| static CustomData & | get_custom_data (Mesh &mesh, const AttrDomain domain) |
| static int | get_domain_size (const Mesh &mesh, const AttrDomain domain) |
| static Attribute::ArrayData | array_data_from_garray (GArray<> array) |
| static GPointer | default_value_for_type (const CPPType &type) |
| static bool | read_array_data (BlendDataReader &reader, const int8_t dna_attr_type, const int64_t size, void **data) |
| static void | read_shared_array (BlendDataReader &reader, const int8_t dna_attr_type, const int64_t size, void **data, const ImplicitSharingInfo **sharing_info) |
| static std::optional< Attribute::DataVariant > | read_attr_data (BlendDataReader &reader, const int8_t dna_storage_type, const int8_t dna_attr_type, blender::Attribute &dna_attr) |
| static std::optional< AttrDomain > | read_attr_domain (const int8_t dna_domain) |
| static void | write_array_data (BlendWriter &writer, const AttrType data_type, const void *data, const int64_t size) |
| static void | write_shared_array (BlendWriter &writer, const AttrType data_type, const void *data, const int64_t size, const ImplicitSharingInfo *sharing_info) |
| GAttributeReader | attribute_to_reader (const Attribute &attribute, const AttrDomain domain, const int64_t domain_size) |
| GAttributeWriter | attribute_to_writer (void *owner, const Map< StringRef, AttrUpdateOnChange > &changed_tags, const int64_t domain_size, Attribute &attribute) |
| Attribute::DataVariant | attribute_init_to_data (const bke::AttrType data_type, const int64_t domain_size, const AttributeInit &initializer, const bool require_array_data) |
| GVArray | get_varray_attribute (const AttributeStorage &storage, AttrDomain domain, const CPPType &cpp_type, StringRef name, int64_t domain_size, const void *default_value) |
| std::optional< GSpan > | get_span_attribute (const AttributeStorage &storage, const AttrDomain domain, const CPPType &cpp_type, const StringRef name, const int64_t domain_size) |
| GMutableSpan | get_mutable_attribute (AttributeStorage &storage, const AttrDomain domain, const CPPType &cpp_type, const StringRef name, const int64_t domain_size, const void *custom_default_value) |
| bool | try_delete_vertex_group (ListBaseT< bDeformGroup > &vertex_groups, const StringRef name, FunctionRef< MutableSpan< MDeformVert >()> get_mutable_dverts) |
| static bDeformGroup * | find_vertex_group (ListBaseT< bDeformGroup > &vertex_groups, const StringRef name) |
| static void | ensure_array_storage (Attribute &attr, const FunctionRef< int(AttrDomain)> domain_size_fn) |
| static std::variant< std::monostate, Attribute *, bDeformGroup * > | find_attr_or_group (AttributeStorage &storage, std::optional< ListBaseT< bDeformGroup > * > vertex_groups, const StringRef name) |
| Set< StringRef > | rename_attributes (AttributeStorage &storage, const Map< StringRef, StringRef > &name_map, const bool overwrite, const Map< StringRef, AttrBuiltinInfo > &builtin_attributes, const Set< StringRef > &array_storage_required, const FunctionRef< int(AttrDomain)> domain_size_fn, std::optional< ListBaseT< bDeformGroup > * > vertex_groups, FunctionRef< MutableSpan< MDeformVert >()> get_mutable_dverts) |
| template<typename T> | |
| VArray< T > | get_varray_attribute (const AttributeStorage &storage, const AttrDomain domain, const StringRef name, const int64_t domain_size, const T &default_value) |
| template<typename T> | |
| std::optional< Span< T > > | get_span_attribute (const AttributeStorage &storage, const AttrDomain domain, const StringRef name, const int64_t domain_size) |
| template<typename T> | |
| MutableSpan< T > | get_mutable_attribute (AttributeStorage &storage, const AttrDomain domain, const StringRef name, const int64_t domain_size, const T &default_value=T()) |
| static std::string | toml_type_name (const toml::value &value) |
| static void | project_variable_add (BlenderProject *project, TomlProjectVariable project_variable) |
| static void | project_asset_library_add (TomlAssetLibrary project_asset_library) |
| static void | create_blender_project_from_toml (Main *bmain, std::string toml_path, std::string project_root_path) |
| static toml::ordered_array | project_variables_to_toml (BlenderProject *project) |
| static toml::ordered_array | project_asset_libraries_to_toml () |
| static toml::ordered_table | create_toml_from_blender_project (BlenderProject *project) |
| static CurveType | curve_type_from_legacy (const short type) |
| static HandleType | handle_type_from_legacy (const uint8_t handle_type_legacy) |
| static NormalMode | normal_mode_from_legacy (const short twist_mode) |
| static int | segments_num_no_duplicate_edge (const int points_num, const bool cyclic) |
| static bool | has_caps (const bool main_cyclic, const bool profile_cyclic, const int profile_segment_num) |
| static void | fill_mesh_topology (const int vert_offset, const int edge_offset, const int face_offset, const int loop_offset, const int main_point_num, const int profile_point_num, const bool main_cyclic, const bool profile_cyclic, const bool fill_caps, MutableSpan< int2 > edges, MutableSpan< int > corner_verts, MutableSpan< int > corner_edges, MutableSpan< int > face_offsets) |
| static void | mark_bezier_vector_edges_sharp (const int profile_point_num, const int main_segment_num, const Span< int > control_point_offsets, const Span< int8_t > handle_types_left, const Span< int8_t > handle_types_right, MutableSpan< bool > sharp_edges) |
| static float4x4 | build_point_matrix (const float3 &location, const float3 &tangent, const float3 &normal) |
| static float4x4 | build_point_matrix_miter_scale (const float3 &location_prev, const float3 &location, const float3 &location_next, const float3 &tangent, const float3 &normal, const float miter_scale_limit) |
| static float4x4 | build_point_matrix (const Span< float3 > main_positions, const Span< float3 > tangents, const Span< float3 > normals, const Span< float > scales, const bool main_cyclic, const std::optional< float > miter_scale_limit, const int i_ring) |
| static void | fill_mesh_positions (const Span< float3 > main_positions, const Span< float3 > profile_positions, const Span< float3 > tangents, const Span< float3 > normals, const Span< float > scales, const bool main_cyclic, const std::optional< float > miter_scale_limit, MutableSpan< float3 > mesh_positions) |
| static CurvesInfo | get_curves_info (const CurvesGeometry &main, const CurvesGeometry &profile) |
| static bool | offsets_contain_single_point (const OffsetIndices< int > offsets) |
| static ResultOffsets | calculate_result_offsets (const CurvesInfo &info, const bool fill_caps) |
| static AttrDomain | get_attribute_domain_for_mesh (const AttributeAccessor &mesh_attributes, const StringRef name) |
| static bool | should_add_attribute_to_mesh (const AttributeAccessor &curve_attributes, const AttributeAccessor &mesh_attributes, const StringRef name, const AttributeMetaData &meta_data, const AttributeFilter &attribute_filter) |
| static GSpan | evaluate_attribute (const GVArray &src, const CurvesGeometry &curves, Vector< std::byte > &buffer) |
| template<typename Fn> | |
| static void | foreach_curve_combination (const CurvesInfo &info, const ResultOffsets &offsets, const Fn &fn) |
| static void | build_mesh_positions (const CurvesInfo &curves_info, const ResultOffsets &offsets, const VArray< float > &scales, const std::optional< float > miter_scale_limit, Vector< std::byte > &eval_buffer, Mesh &mesh) |
| template<typename T> | |
| static void | copy_main_point_data_to_mesh_verts (const Span< T > src, const int profile_point_num, MutableSpan< T > dst) |
| template<typename T> | |
| static void | copy_main_point_data_to_mesh_edges (const Span< T > src, const int profile_point_num, const int main_segment_num, const int profile_segment_num, MutableSpan< T > dst) |
| template<typename T> | |
| static void | copy_main_point_data_to_mesh_faces (const Span< T > src, const int main_segment_num, const int profile_segment_num, MutableSpan< T > dst) |
| static bool | try_sharing_point_data (const CurvesGeometry &main, const StringRef name, const GAttributeReader &src, MutableAttributeAccessor mesh_attributes) |
| static bool | try_direct_evaluate_point_data (const CurvesGeometry &main, const GAttributeReader &src, GMutableSpan dst) |
| static void | copy_main_point_domain_attribute_to_mesh (const CurvesInfo &curves_info, const StringRef name, const ResultOffsets &offsets, const AttrDomain dst_domain, const GAttributeReader &src_attribute, Vector< std::byte > &eval_buffer, MutableAttributeAccessor mesh_attributes) |
| template<typename T> | |
| static void | copy_profile_point_data_to_mesh_verts (const Span< T > src, const int main_point_num, MutableSpan< T > dst) |
| template<typename T> | |
| static void | copy_profile_point_data_to_mesh_edges (const Span< T > src, const int main_segment_num, MutableSpan< T > dst) |
| template<typename T> | |
| static void | copy_profile_point_data_to_mesh_faces (const Span< T > src, const int main_segment_num, const int profile_segment_num, MutableSpan< T > dst) |
| static void | copy_profile_point_domain_attribute_to_mesh (const CurvesInfo &curves_info, const ResultOffsets &offsets, const AttrDomain dst_domain, const GSpan src_all, GMutableSpan dst_all) |
| template<typename T> | |
| static void | copy_indices_to_offset_ranges (const VArray< T > &src, const Span< int > curve_indices, const OffsetIndices< int > mesh_offsets, MutableSpan< T > dst) |
| static void | copy_curve_domain_attribute_to_mesh (const ResultOffsets &mesh_offsets, const Span< int > curve_indices, const AttrDomain dst_domain, const GVArray &src, GMutableSpan dst) |
| static void | write_sharp_bezier_edges (const CurvesInfo &curves_info, const ResultOffsets &offsets, MutableAttributeAccessor mesh_attributes, SpanAttributeWriter< bool > &sharp_edges) |
| static CurvesGeometry | get_curve_single_vert () |
| static Vector< std::unique_ptr< FileHandlerType > > & | file_handlers_vector () |
| static std::string | extensions_common_prefix (const Span< std::string > extensions) |
| static bool | extensions_group_is_collapsible (const Span< std::string > extensions) |
| static ImplicitSharingPtrAndData | save_shared_attribute (const GAttributeReader &attribute) |
| static void | remember_deformed_curve_positions_if_necessary (const Curves *curves_id, GeometryComponentEditData &edit_component) |
| static void | remember_deformed_grease_pencil_if_necessary (const GreasePencil *grease_pencil, GeometryComponentEditData &edit_component) |
| static std::optional< GeometryFieldContext > | try_get_geometry_field_context (const fn::FieldContext &context) |
| static StringRef | get_random_id_attribute_name (const AttrDomain domain) |
| static bool | component_is_available (const GeometrySet &geometry, const GeometryComponent::Type type, const AttrDomain domain) |
| static std::optional< StringRefNull > | try_get_field_direct_attribute_id (const fn::GField &any_field) |
| static bool | attribute_kind_matches (const AttributeMetaData meta_data, const AttrDomain domain, const bke::AttrType data_type) |
| static bool | try_add_shared_field_attribute (MutableAttributeAccessor attributes, const StringRef id_to_create, const AttrDomain domain, const fn::GField &field) |
| static bool | attribute_data_matches_varray (const GAttributeReader &attribute, const CommonVArrayInfo &varray_info) |
| static bool | try_assign_single_value (MutableAttributeAccessor &attributes, const StringRef name, const GPointer value) |
| static void | initialize_new_data (MutableAttributeAccessor &attributes, const AttrDomain domain, const int domain_size, const StringRef name, const CPPType &type, const bke::AttrType data_type, void *buffer) |
| static void | add_final_mesh_as_geometry_component (const Object &object, GeometrySet &geometry_set, const bool apply_subdiv) |
| static std::unique_ptr< bke::Instances > | convert_collection_to_instances (const Collection &collection) |
| bool | operator== (const InstanceReference &a, const InstanceReference &b) |
| static Array< int > | generate_unique_instance_ids (Span< int > original_ids) |
| static float3 | get_transform_position (const float4x4 &transform) |
| static void | set_transform_position (float4x4 &transform, const float3 position) |
| static void | tag_component_reference_index_changed (void *owner) |
| static const auto & | changed_tags () |
| static const auto & | builtin_attributes () |
| static const auto & | array_storage_required () |
| static constexpr AttributeAccessorFunctions | get_instances_accessor_functions () |
| static StringRefNull | get_first_uv_map_name (const Mesh &mesh) |
| static Bounds< float3 > | merge_bounds (const Bounds< float3 > &a, const Bounds< float3 > &b) |
| static Bounds< float3 > | negative_bounds () |
| static void | partition_faces_recursively (const Span< float3 > face_centers, MutableSpan< int > face_indices, Vector< NonContiguousGroup > &groups, int node_index, int depth, const std::optional< Bounds< float3 > > &bounds_precalc, const Span< int > material_indices, int target_group_size) |
| static void | build_vertex_groups_for_leaves (const int verts_num, const OffsetIndices< int > faces, const Span< int > corner_verts, Vector< NonContiguousGroup > &groups) |
| static Vector< NonContiguousGroup > | compute_local_mesh_groups (Mesh &mesh) |
| static void | translate_positions (MutableSpan< float3 > positions, const float3 &translation) |
| template<typename T> | |
| static void | adapt_mesh_domain_corner_to_point_impl (const Mesh &mesh, const VArray< T > &src, MutableSpan< T > r_dst) |
| template<> | |
| void | adapt_mesh_domain_corner_to_point_impl (const Mesh &mesh, const VArray< bool > &src, MutableSpan< bool > r_dst) |
| static GVArray | adapt_mesh_domain_corner_to_point (const Mesh &mesh, const GVArray &varray) |
| static GVArray | adapt_mesh_domain_point_to_corner (const Mesh &mesh, const GVArray &varray) |
| static GVArray | adapt_mesh_domain_corner_to_face (const Mesh &mesh, const GVArray &varray) |
| template<typename T> | |
| static void | adapt_mesh_domain_corner_to_edge_impl (const Mesh &mesh, const VArray< T > &old_values, MutableSpan< T > r_values) |
| template<> | |
| void | adapt_mesh_domain_corner_to_edge_impl (const Mesh &mesh, const VArray< bool > &old_values, MutableSpan< bool > r_values) |
| static GVArray | adapt_mesh_domain_corner_to_edge (const Mesh &mesh, const GVArray &varray) |
| static GVArray | adapt_mesh_domain_face_to_point (const Mesh &mesh, const GVArray &varray) |
| static GVArray | adapt_mesh_domain_face_to_corner (const Mesh &mesh, const GVArray &varray) |
| template<typename T> | |
| void | adapt_mesh_domain_face_to_edge_impl (const Mesh &mesh, const VArray< T > &old_values, MutableSpan< T > r_values) |
| template<> | |
| void | adapt_mesh_domain_face_to_edge_impl (const Mesh &mesh, const VArray< bool > &old_values, MutableSpan< bool > r_values) |
| static GVArray | adapt_mesh_domain_face_to_edge (const Mesh &mesh, const GVArray &varray) |
| static GVArray | adapt_mesh_domain_point_to_face (const Mesh &mesh, const GVArray &varray) |
| static GVArray | adapt_mesh_domain_point_to_edge (const Mesh &mesh, const GVArray &varray) |
| template<typename T> | |
| void | adapt_mesh_domain_edge_to_corner_impl (const Mesh &mesh, const VArray< T > &old_values, MutableSpan< T > r_values) |
| template<> | |
| void | adapt_mesh_domain_edge_to_corner_impl (const Mesh &mesh, const VArray< bool > &old_values, MutableSpan< bool > r_values) |
| static GVArray | adapt_mesh_domain_edge_to_corner (const Mesh &mesh, const GVArray &varray) |
| template<typename T> | |
| static void | adapt_mesh_domain_edge_to_point_impl (const Mesh &mesh, const VArray< T > &old_values, MutableSpan< T > r_values) |
| template<> | |
| void | adapt_mesh_domain_edge_to_point_impl (const Mesh &mesh, const VArray< bool > &old_values, MutableSpan< bool > r_values) |
| static GVArray | adapt_mesh_domain_edge_to_point (const Mesh &mesh, const GVArray &varray) |
| static GVArray | adapt_mesh_domain_edge_to_face (const Mesh &mesh, const GVArray &varray) |
| static bool | can_simple_adapt_for_single (const Mesh &mesh, const AttrDomain from_domain, const AttrDomain to_domain) |
| static GVArray | adapt_mesh_attribute_domain (const Mesh &mesh, const GVArray &varray, const AttrDomain from_domain, const AttrDomain to_domain) |
| static void | tag_positions_changed (void *owner) |
| static void | tag_sharpness_changed (void *owner) |
| static void | tag_material_index_changed (void *owner) |
| static void | tag_visibility_changed (void *owner) |
| static void | tag_custom_normals_changed (void *owner) |
| static const auto & | changed_tags () |
| static const auto & | array_storage_required () |
| static int | get_domain_size (const void *owner, const AttrDomain domain) |
| static GAttributeReader | reader_for_vertex_group_index (const Mesh &mesh, const Span< MDeformVert > dverts, const int vertex_group_index) |
| static GAttributeReader | try_get_vertex_group (const void *owner, const StringRef name) |
| static GAttributeWriter | try_get_vertex_group_for_write (void *owner, const StringRef name) |
| static bool | foreach_vertex_group (const void *owner, FunctionRef< void(const AttributeIter &)> fn) |
| static const auto & | builtin_attributes () |
| static AttributeAccessorFunctions | get_mesh_accessor_functions () |
| static void | mesh_init_origspace (Mesh &mesh) |
| static void | mesh_set_only_copy (Mesh *mesh, const CustomData_MeshMasks *mask) |
| static Span< float3 > | get_orco_coords (const Object &ob, BMesh *bm, eCustomDataType layer_type, Array< float3 > &storage) |
| static Mesh * | create_orco_mesh (const Object &ob, const Mesh &mesh, BMesh *bm, eCustomDataType layer) |
| static MutableSpan< float3 > | orco_coord_layer_ensure (Mesh &mesh, const eCustomDataType layer) |
| static void | add_orco_mesh (Object &ob, BMesh *bm, Mesh &mesh, const Mesh *mesh_orco, const eCustomDataType layer) |
| static void | modifier_modify_mesh_and_geometry_set (ModifierData *md, const ModifierEvalContext &mectx, const Mesh &input_mesh, GeometrySet &geometry_set) |
| static void | set_rest_position (Mesh &mesh) |
| static MeshEditHints & | geometry_mesh_edit_hints_ensure (GeometrySet &geometry) |
| static void | mesh_eval_assign_key (GeometrySet &geometry, Key *key) |
| static GeometrySet | mesh_calc_modifiers (Depsgraph &depsgraph, const Scene &scene, Object &ob, const bool use_deform, const bool need_mapping, const CustomData_MeshMasks &dataMask, const bool use_cache) |
| static MutableSpan< float3 > | mesh_wrapper_vert_coords_ensure_for_write (Mesh *mesh) |
| static GeometryComponentPtr | cage_mesh_or_fallback (Object &ob, const GeometrySet &geometry, const Mesh &mesh_input, const CustomData_MeshMasks &cd_mask_extra) |
| static GeometrySet | editbmesh_calc_modifiers (Depsgraph &depsgraph, const Scene &scene, Object &ob, const CustomData_MeshMasks &dataMask) |
| static void | mesh_build_extra_data (const Depsgraph &depsgraph, const Object &ob, const Mesh &mesh_eval) |
| static void | mesh_build_data (Depsgraph &depsgraph, const Scene &scene, Object &ob, const CustomData_MeshMasks &dataMask, const bool need_mapping) |
| static void | editbmesh_build_data (Depsgraph &depsgraph, const Scene &scene, Object &obedit, CustomData_MeshMasks &dataMask) |
| static void | object_get_datamask (const Depsgraph &depsgraph, Object &ob, CustomData_MeshMasks &r_mask, bool *r_need_mapping) |
| static void | make_vertexcos__mapFunc (void *user_data, int index, const float co[3], const float[3]) |
| template<typename T> | |
| static void | flip_corner_data (const OffsetIndices< int > faces, const IndexMask &face_selection, MutableSpan< T > data) |
| template<typename T> | |
| static void | flip_custom_data_type (const OffsetIndices< int > faces, CustomData &corner_data, const IndexMask &face_selection, const eCustomDataType data_type) |
| static bNodeTree * | add_auto_smooth_node_tree (Main &bmain, Library *owner_library) |
| static VectorSet< const bNodeSocket * > | build_socket_indices (const Span< const bNode * > nodes) |
| static bool | is_auto_smooth_node_tree (const bNodeTree &group) |
| static ModifierData * | create_auto_smooth_modifier (Object &object, const FunctionRef< bNodeTree *(Library *owner_library)> get_node_group, const float angle) |
| static void | normalize_vecs (MutableSpan< float3 > normals) |
| static void | calc_edge_centers (const Span< float3 > positions, const Span< int2 > edges, MutableSpan< float3 > edge_centers) |
| static void | calc_face_centers (const Span< float3 > positions, const OffsetIndices< int > faces, const Span< int > corner_verts, MutableSpan< float3 > face_centers) |
| static void | find_nearest_tris (const Span< float3 > positions, const bvh::Tree &bvhtree, MutableSpan< int > tris, MutableSpan< float3 > bary_coords) |
| static void | find_nearest_tris_parallel (const Span< float3 > positions, const bvh::Tree &bvhtree, MutableSpan< int > tris, MutableSpan< float3 > bary_coords) |
| static void | find_nearest_faces (const Span< int > src_tri_faces, const Span< float3 > dst_positions, const OffsetIndices< int > dst_faces, const Span< int > dst_corner_verts, const bvh::Tree &bvhtree, MutableSpan< int > nearest_faces) |
| static void | find_nearest_edges (const Span< float3 > src_positions, const Span< int2 > src_edges, const OffsetIndices< int > src_faces, const Span< int > src_corner_edges, const Span< int > src_tri_faces, const Span< float3 > dst_positions, const Span< int2 > dst_edges, const bvh::Tree &bvhtree, MutableSpan< int > nearest_edges) |
| static void | gather_attributes (const Span< StringRef > names, const AttributeAccessor src_attributes, const AttrDomain domain, const Span< int > index_map, MutableAttributeAccessor dst_attributes) |
| static void | sample_vertex_attributes (const Span< StringRef > names, Span< int > corner_verts, Span< int3 > corner_tris, Span< int > tri_indices, Span< float3 > bary_coords, const AttributeAccessor src_attributes, MutableAttributeAccessor dst_attributes) |
| static void | sample_corner_attributes (const Span< StringRef > names, Span< int3 > corner_tris, Span< int > tri_indices, Span< float3 > bary_coords, const AttributeAccessor src_attributes, MutableAttributeAccessor dst_attributes) |
| static void | free_mesh_eval (MeshRuntime &mesh_runtime) |
| static void | free_batch_cache (MeshRuntime &mesh_runtime) |
| static void | free_bvh_caches (MeshRuntime &mesh_runtime) |
| static void | set_bools (MutableSpan< bool > bools, const Span< int > indices_to_set) |
| static void | try_tag_verts_no_face_none (const Mesh &mesh) |
| template<typename T> | |
| ArrayState< T > | attribute_reader_to_array_state (const AttributeReader< T > &attr) |
| template<typename T> | |
| bool | attribute_reader_matches_array_state (const ArrayState< T > &array_state, const AttributeReader< T > &attr) |
| template<typename... T> | |
| static void | print_error_with_indices (const IndexMask &mask, fmt::format_string< T... > fmt, T &&...args) |
| static IndexMask | find_edges_bad_verts (const Mesh &mesh, IndexMaskMemory &memory, const bool verbose) |
| static IndexMask | find_edges_duplicates (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose, EdgeMap &unique_edges) |
| static IndexMask | find_faces_bad_offsets (const Mesh &mesh, IndexMaskMemory &memory, const bool verbose) |
| static IndexMask | find_faces_bad_verts (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose) |
| static IndexMask | find_faces_duplicate_verts (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose) |
| static IndexMask | find_faces_missing_edges (const Mesh &mesh, const IndexMask &mask, const EdgeMap &unique_edges, IndexMaskMemory &memory, const bool verbose) |
| static bool | find_faces_bad_edges (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose) |
| static IndexMask | find_duplicate_faces (const Mesh &mesh, const IndexMask &mask, IndexMaskMemory &memory, const bool verbose) |
| static void | remove_invalid_faces (Mesh &mesh, const IndexMask &valid_faces) |
| static void | remove_invalid_edges (Mesh &mesh, const IndexMask &valid_edges) |
| static bool | validate_vertex_groups (const Mesh &mesh, const bool verbose, Mesh *mesh_mut) |
| static bool | validate_material_indices (const Mesh &mesh, const bool only_check_negative, const bool verbose, Mesh *mesh_mut) |
| static bool | validate_selection_history (const Mesh &mesh, const bool verbose, Mesh *mesh_mut) |
| static IndexMask | get_invalid_float_mask (const Span< float > values, const int floats_per_item, IndexMaskMemory &memory) |
| static void | validate_float_attribute (const bke::AttributeIter &iter, const int floats_per_item, const bool verbose, bool &all_attributes_valid, Mesh *mesh_mut) |
| static void | validate_bool_attribute (const bke::AttributeIter &iter, const bool verbose, bool &all_attributes_valid, Mesh *mesh_mut) |
| static bool | validate_generic_attributes (const Mesh &mesh, const bool verbose, Mesh *mesh_mut) |
| static bool | validate_mdisps (const Mesh &mesh, const bool verbose, Mesh *mesh_mut) |
| static bool | mesh_validate_impl (const Mesh &mesh, const bool verbose, const bool allow_missing_edges, Mesh *mesh_mut) |
| static double | get_current_time_in_seconds () |
| static void | write_node_socket_default_value (BlendWriter *writer, const bNodeSocket *sock) |
| static void | ntree_set_typeinfo (bNodeTree *ntree, bNodeTreeType *typeinfo) |
| static void | node_socket_set_typeinfo (bNodeTree *ntree, bNodeSocket *sock, bNodeSocketType *typeinfo) |
| static void | node_socket_copy (bNodeSocket *sock_dst, const bNodeSocket *sock_src, const int flag) |
| static void | free_localized_node_groups (bNodeTree *ntree) |
| static void | node_socket_free (bNodeSocket *sock, const bool do_id_user) |
| static void | ntree_init_data (ID *id) |
| static void | ntree_copy_data (Main *, std::optional< Library * >, ID *id_dst, const ID *id_src, const int flag) |
| static void | ntree_free_data (ID *id) |
| static void | library_foreach_node_socket (bNodeSocket *sock, LibraryForeachIDData *data) |
| static void | node_foreach_id (ID *id, LibraryForeachIDData *data) |
| static void | node_foreach_path (ID *id, BPathForeachPathData *bpath_data) |
| static void | node_foreach_working_space_color (ID *id, const IDTypeForeachColorFunctionCallback &fn) |
| static ID ** | node_owner_pointer_get (ID *id, const bool debug_relationship_assert) |
| static void | write_node_socket (BlendWriter *writer, const bNodeSocket *sock) |
| static void | node_blend_write_storage (BlendWriter *writer, bNodeTree *ntree, bNode *node) |
| static void | ntree_blend_write (BlendWriter *writer, ID *id, const void *id_address) |
| static bool | is_node_socket_supported (const bNodeSocket *sock) |
| static void | direct_link_node_socket_default_value (BlendDataReader *reader, bNodeSocket *sock) |
| static void | direct_link_node_socket_storage (BlendDataReader *reader, const bNode *node, bNodeSocket *sock) |
| static void | direct_link_node_socket (BlendDataReader *reader, const bNode *node, bNodeSocket *sock) |
| static void | remove_unsupported_sockets (ListBaseT< bNodeSocket > *sockets, ListBaseT< bNodeLink > *links) |
| static void | node_blend_read_data_storage (BlendDataReader *reader, bNodeTree *ntree, bNode *node) |
| static void | node_update_idname_from_experimental (bNode &node) |
| static void | ntree_blend_read_data (BlendDataReader *reader, ID *id) |
| static void | ntree_blend_read_after_liblink (BlendLibReader *reader, ID *id) |
| static std::unique_ptr< IDProperty, idprop::IDPropertyDeleter > | create_socket_meta_data_properties (const bNodeTreeInterfaceSocket &socket, const bool create_default_value_properties) |
| static void | node_tree_asset_pre_save (void *asset_ptr, AssetMetaData *) |
| static void | node_tree_asset_on_mark_asset (void *asset_ptr, AssetMetaData *asset_data) |
| static void | node_tree_asset_on_clear_asset (void *asset_ptr, AssetMetaData *asset_data) |
| static void | node_add_sockets_from_type (bNodeTree *ntree, bNode *node, bNodeType *ntype) |
| static void | node_init (const bContext *C, bNodeTree *ntree, bNode *node) |
| static void | node_set_typeinfo (const bContext *C, bNodeTree *ntree, bNode *node, bNodeType *typeinfo) |
| static void | update_typeinfo (Main *bmain, bNodeTreeType *treetype, bNodeType *nodetype, bNodeSocketType *socktype, const bool unregister) |
| static auto & | get_node_tree_type_map () |
| static auto & | get_node_type_map () |
| static auto & | get_node_type_alias_map () |
| static auto & | get_socket_type_map () |
| static void | defer_free_tree_type (bNodeTreeType *tree_type) |
| static void | defer_free_node_type (bNodeType *ntype) |
| static void | defer_free_socket_type (bNodeSocketType *stype) |
| static void | ntree_free_type (void *treetype_v) |
| static void | node_free_type (void *nodetype_v) |
| static void | node_free_socket_type (void *socktype_v) |
| static bNodeSocket * | make_socket (bNodeTree *ntree, bNode *, const eNodeSocketInOut in_out, ListBaseT< bNodeSocket > *lb, const StringRefNull idname, const StringRefNull identifier, const StringRefNull name) |
| static ID * | socket_value_get_id_ptr (const eNodeSocketDatatype type, void *data) |
| template<typename T> | |
| static void | socket_value_init_impl (T &, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueFloat &data, const int subtype) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueInt &data, const int subtype) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueBoolean &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueRotation &, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueVector &data, const int subtype) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueIntVector &data, const int subtype) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueRGBA &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueString &data, const int subtype) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueObject &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueImage &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueCollection &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueTexture &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueMaterial &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueFont &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueScene &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueText &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueMask &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueSound &data, const int) |
| template<> | |
| void | socket_value_init_impl (bNodeSocketValueMenu &data, const int) |
| static void | node_socket_free_default_value (bNodeSocket *sock, const bool do_id_user) |
| static void | iter_backwards_ex (const bNodeTree *ntree, bNode *node_start, bool(*callback)(bNode *, bNode *, void *), void *userdata, const char recursion_mask) |
| static bool | store_socket_value (bNode &node, const bNodeSocket &socket, const void *value) |
| static bool | get_socket_value (bNodeSocket &socket, void *buffer) |
| static int | node_count_links (const bNodeTree *ntree, const bNodeSocket *socket) |
| static bool | check_link_selected_backward (const bNodeLink &link, Set< const bNode * > &visited_nodes) |
| static bool | check_link_selected_forward (const bNodeLink &link, Set< const bNode * > &visited_nodes) |
| static void | adjust_multi_input_indices_after_removed_link (bNodeTree *ntree, const bNodeSocket *sock, const int deleted_index) |
| static bNodeTree * | node_tree_add_tree_do (Main *bmain, std::optional< Library * > owner_library, ID *owner_id, const bool is_embedded, const StringRef name, const StringRef idname) |
| static bool | ntree_contains_tree_exec (const bNodeTree &tree_to_search_in, const bNodeTree &tree_to_search_for, Set< const bNodeTree * > &already_passed) |
| static void | update_socket_declarations (ListBaseT< bNodeSocket > *sockets, const Span< SocketDeclaration * > declarations) |
| static void | reset_socket_declarations (ListBaseT< bNodeSocket > *sockets) |
| static bNodeInstanceKey | node_hash_int_str (bNodeInstanceKey hash, const char *str) |
| static Set< int > | get_known_node_types_set () |
| static bool | can_read_node_type (const bNode &node) |
| static void | node_type_base_defaults (bNodeType &ntype) |
| static bool | node_poll_default (const bNodeType *, const bNodeTree *, const char **) |
| static bool | node_poll_instance_default (const bNode *node, const bNodeTree *ntree, const char **r_disabled_hint) |
| static int16_t | get_next_auto_legacy_type () |
| static const CPPType * | slow_socket_type_to_geo_nodes_base_cpp_type (const eNodeSocketDatatype type) |
| static void | unique_socket_template_identifier (bNodeSocketTemplate *list, bNodeSocketTemplate *ntemp, const char defname[], const char delim) |
| static int | get_internal_link_type_priority (const bNodeSocketType *from, const bNodeSocketType *to) |
| static bool | is_tree_changed (const bNodeTree &tree) |
| ENUM_OPERATORS (ShaderNodeAncestorFlags) | |
| static void | update_zone_depths (bNodeTreeZone &zone) |
| static Vector< std::unique_ptr< bNodeTreeZone > > | find_zone_nodes (const bNodeTree &tree, bNodeTreeZones &owner, Map< const bNode *, bNodeTreeZone * > &r_zone_by_inout_node) |
| static std::optional< Vector< ZoneRelation > > | get_direct_zone_relations (const Span< bNodeTreeZone * > all_zones, const BitGroupVector<> &depend_on_input_flag_array) |
| static bool | update_zone_per_node (const Span< const bNode * > all_nodes, const Span< bNodeTreeZone * > all_zones, const BitGroupVector<> &depend_on_input_flag_array, const Map< const bNode *, bNodeTreeZone * > &zone_by_inout_node, Map< int, int > &r_zone_by_node_id, Vector< int > &r_node_outside_zones) |
| static void | update_zone_border_links (const bNodeTree &tree, bNodeTreeZones &tree_zones) |
| static std::unique_ptr< bNodeTreeZones > | discover_tree_zones (const bNodeTree &tree) |
| static Vector< const bNodeZoneType * > & | get_zone_types_vector () |
| static Vector< const bNode * > | node_ids_to_vector (const bNodeTree &tree, const Vector< int > &node_ids) |
| std::ostream & | operator<< (std::ostream &stream, const bNodeTreeZones &zones) |
| std::ostream & | operator<< (std::ostream &stream, const bNodeTreeZone &zone) |
| static std::unique_ptr< pbvh::Tree > | build_pbvh_for_dynamic_topology (Object *ob) |
| static std::unique_ptr< pbvh::Tree > | build_pbvh_from_regular_mesh (Object *ob, const Mesh *me_eval_deform) |
| static std::unique_ptr< pbvh::Tree > | build_pbvh_from_ccg (Object *ob, SubdivCCG &subdiv_ccg) |
| static void | tag_position_changed (void *owner) |
| static void | tag_radius_changed (void *owner) |
| static const auto & | changed_tags () |
| static const auto & | builtin_attributes () |
| static const auto & | array_storage_required () |
| static constexpr AttributeAccessorFunctions | get_pointcloud_accessor_functions () |
| ENUM_OPERATORS (SoundTags) | |
| static float | catmul_rom_interpolation (const float p0, const float p1, const float p2, const float p3, const float t) |
| static float | bspline_interpolation (const float p0, const float p1, const float p2, const float p3, const float t) |
| template<typename From, typename To, To(*)(const From &) ConversionF> | |
| static void | add_implicit_conversion (DataTypeConversions &conversions) |
| static float2 | float_to_float2 (const float &a) |
| static float3 | float_to_float3 (const float &a) |
| static float4 | float_to_float4 (const float &a) |
| static int32_t | float_to_int (const float &a) |
| static short2 | float_to_short2 (const float &a) |
| static int2 | float_to_int2 (const float &a) |
| static int3 | float_to_int3 (const float &a) |
| static bool | float_to_bool (const float &a) |
| static int8_t | float_to_int8 (const float &a) |
| static ColorGeometry4f | float_to_color (const float &a) |
| static ColorGeometry4b | float_to_byte_color (const float &a) |
| static math::Quaternion | float_to_quaternion (const float &a) |
| static float3 | float2_to_float3 (const float2 &a) |
| static float4 | float2_to_float4 (const float2 &a) |
| static float | float2_to_float (const float2 &a) |
| static int | float2_to_int (const float2 &a) |
| static short2 | float2_to_short2 (const float2 &a) |
| static int2 | float2_to_int2 (const float2 &a) |
| static int3 | float2_to_int3 (const float2 &a) |
| static bool | float2_to_bool (const float2 &a) |
| static int8_t | float2_to_int8 (const float2 &a) |
| static ColorGeometry4f | float2_to_color (const float2 &a) |
| static ColorGeometry4b | float2_to_byte_color (const float2 &a) |
| static math::Quaternion | float2_to_quaternion (const float2 &a) |
| static bool | float3_to_bool (const float3 &a) |
| static int8_t | float3_to_int8 (const float3 &a) |
| static float | float3_to_float (const float3 &a) |
| static int | float3_to_int (const float3 &a) |
| static short2 | float3_to_short2 (const float3 &a) |
| static int2 | float3_to_int2 (const float3 &a) |
| static int3 | float3_to_int3 (const float3 &a) |
| static float2 | float3_to_float2 (const float3 &a) |
| static float4 | float3_to_float4 (const float3 &a) |
| static ColorGeometry4f | float3_to_color (const float3 &a) |
| static ColorGeometry4b | float3_to_byte_color (const float3 &a) |
| static math::Quaternion | float3_to_quaternion (const float3 &a) |
| static bool | float4_to_bool (const float4 &a) |
| static int8_t | float4_to_int8 (const float4 &a) |
| static float | float4_to_float (const float4 &a) |
| static int | float4_to_int (const float4 &a) |
| static short2 | float4_to_short2 (const float4 &a) |
| static int2 | float4_to_int2 (const float4 &a) |
| static int3 | float4_to_int3 (const float4 &a) |
| static float2 | float4_to_float2 (const float4 &a) |
| static float3 | float4_to_float3 (const float4 &a) |
| static ColorGeometry4f | float4_to_color (const float4 &a) |
| static ColorGeometry4b | float4_to_byte_color (const float4 &a) |
| static math::Quaternion | float4_to_quaternion (const float4 &a) |
| static bool | int_to_bool (const int32_t &a) |
| static int8_t | int_to_int8 (const int32_t &a) |
| static short2 | int_to_short2 (const int32_t &a) |
| static int2 | int_to_int2 (const int32_t &a) |
| static int3 | int_to_int3 (const int32_t &a) |
| static float | int_to_float (const int32_t &a) |
| static float2 | int_to_float2 (const int32_t &a) |
| static float3 | int_to_float3 (const int32_t &a) |
| static float4 | int_to_float4 (const int32_t &a) |
| static ColorGeometry4f | int_to_color (const int32_t &a) |
| static ColorGeometry4b | int_to_byte_color (const int32_t &a) |
| static bool | short2_to_bool (const short2 &a) |
| static float2 | short2_to_float2 (const short2 &a) |
| static int | short2_to_int (const short2 &a) |
| static int2 | short2_to_int2 (const short2 &a) |
| static int3 | short2_to_int3 (const short2 &a) |
| static int8_t | short2_to_int8 (const short2 &a) |
| static float | short2_to_float (const short2 &a) |
| static float3 | short2_to_float3 (const short2 &a) |
| static float4 | short2_to_float4 (const short2 &a) |
| static ColorGeometry4f | short2_to_color (const short2 &a) |
| static ColorGeometry4b | short2_to_byte_color (const short2 &a) |
| static bool | int2_to_bool (const int2 &a) |
| static float2 | int2_to_float2 (const int2 &a) |
| static int | int2_to_int (const int2 &a) |
| static int3 | int2_to_int3 (const int2 &a) |
| static short2 | int2_to_short2 (const int2 &a) |
| static int8_t | int2_to_int8 (const int2 &a) |
| static float | int2_to_float (const int2 &a) |
| static float3 | int2_to_float3 (const int2 &a) |
| static float4 | int2_to_float4 (const int2 &a) |
| static ColorGeometry4f | int2_to_color (const int2 &a) |
| static ColorGeometry4b | int2_to_byte_color (const int2 &a) |
| static bool | int3_to_bool (const int3 &a) |
| static float2 | int3_to_float2 (const int3 &a) |
| static int | int3_to_int (const int3 &a) |
| static int2 | int3_to_int2 (const int3 &a) |
| static short2 | int3_to_short2 (const int3 &a) |
| static int8_t | int3_to_int8 (const int3 &a) |
| static float | int3_to_float (const int3 &a) |
| static float3 | int3_to_float3 (const int3 &a) |
| static float4 | int3_to_float4 (const int3 &a) |
| static ColorGeometry4f | int3_to_color (const int3 &a) |
| static ColorGeometry4b | int3_to_byte_color (const int3 &a) |
| static bool | int8_to_bool (const int8_t &a) |
| static int | int8_to_int (const int8_t &a) |
| static short2 | int8_to_short2 (const int8_t &a) |
| static int2 | int8_to_int2 (const int8_t &a) |
| static int3 | int8_to_int3 (const int8_t &a) |
| static float | int8_to_float (const int8_t &a) |
| static float2 | int8_to_float2 (const int8_t &a) |
| static float3 | int8_to_float3 (const int8_t &a) |
| static float4 | int8_to_float4 (const int8_t &a) |
| static ColorGeometry4f | int8_to_color (const int8_t &a) |
| static ColorGeometry4b | int8_to_byte_color (const int8_t &a) |
| static float | bool_to_float (const bool &a) |
| static int8_t | bool_to_int8 (const bool &a) |
| static int32_t | bool_to_int (const bool &a) |
| static short2 | bool_to_short2 (const bool &a) |
| static int2 | bool_to_int2 (const bool &a) |
| static int3 | bool_to_int3 (const bool &a) |
| static float2 | bool_to_float2 (const bool &a) |
| static float3 | bool_to_float3 (const bool &a) |
| static float4 | bool_to_float4 (const bool &a) |
| static ColorGeometry4f | bool_to_color (const bool &a) |
| static ColorGeometry4b | bool_to_byte_color (const bool &a) |
| static bool | color_to_bool (const ColorGeometry4f &a) |
| static float | color_to_float (const ColorGeometry4f &a) |
| static int32_t | color_to_int (const ColorGeometry4f &a) |
| static short2 | color_to_short2 (const ColorGeometry4f &a) |
| static int2 | color_to_int2 (const ColorGeometry4f &a) |
| static int3 | color_to_int3 (const ColorGeometry4f &a) |
| static int8_t | color_to_int8 (const ColorGeometry4f &a) |
| static float2 | color_to_float2 (const ColorGeometry4f &a) |
| static float3 | color_to_float3 (const ColorGeometry4f &a) |
| static float4 | color_to_float4 (const ColorGeometry4f &a) |
| static ColorGeometry4b | color_to_byte_color (const ColorGeometry4f &a) |
| static bool | byte_color_to_bool (const ColorGeometry4b &a) |
| static float | byte_color_to_float (const ColorGeometry4b &a) |
| static int32_t | byte_color_to_int (const ColorGeometry4b &a) |
| static short2 | byte_color_to_short2 (const ColorGeometry4b &a) |
| static int2 | byte_color_to_int2 (const ColorGeometry4b &a) |
| static int3 | byte_color_to_int3 (const ColorGeometry4b &a) |
| static int8_t | byte_color_to_int8 (const ColorGeometry4b &a) |
| static float2 | byte_color_to_float2 (const ColorGeometry4b &a) |
| static float3 | byte_color_to_float3 (const ColorGeometry4b &a) |
| static float4 | byte_color_to_float4 (const ColorGeometry4b &a) |
| static ColorGeometry4f | byte_color_to_color (const ColorGeometry4b &a) |
| static math::Quaternion | float4x4_to_quaternion (const float4x4 &a) |
| static float2 | quaternion_to_float2 (const math::Quaternion &a) |
| static float3 | quaternion_to_float3 (const math::Quaternion &a) |
| static float4 | quaternion_to_float4 (const math::Quaternion &a) |
| static float4x4 | quaternion_to_float4x4 (const math::Quaternion &a) |
| static DataTypeConversions | create_implicit_conversions () |
| static void | call_convert_to_uninitialized_fn (const GVArray &from, const mf::MultiFunction &fn, const IndexMask &mask, GMutableSpan to) |
| static void | call_convert_to_uninitialized_fn (const GVArray &from, const mf::MultiFunction &fn, GMutableSpan to) |
Attribute API | |
| Vector< AttributeTransferData > | retrieve_attributes_for_transfer (const AttributeAccessor src_attributes, MutableAttributeAccessor dst_attributes, Span< AttrDomain > domains, const AttributeFilter &attribute_filter={}) |
| static GVArray | try_adapt_data_type (GVArray varray, const CPPType &to_type) |
| static GAttributeReader | adapt_domain_and_type_if_necessary (GAttributeReader attribute, const std::optional< AttrDomain > domain, const std::optional< AttrType > data_type, const AttributeAccessor &accessor) |
Common Utils | |
| BVHTreeFromMesh | bvhtree_from_mesh_verts_ex (Span< float3 > vert_positions, const IndexMask &verts_mask) |
| BVHTreeFromMesh | bvhtree_from_mesh_edges_ex (Span< float3 > vert_positions, Span< int2 > edges, const IndexMask &edges_mask) |
| BVHTreeFromMesh | bvhtree_from_mesh_corner_tris_ex (Span< float3 > vert_positions, OffsetIndices< int > faces, Span< int > corner_verts, Span< int3 > corner_tris, const IndexMask &faces_mask, bool map_global_indices=true) |
| static BVHTreeFromMesh | create_verts_tree_data (const BVHTree *tree, const Span< float3 > positions) |
| static BVHTreeFromMesh | create_verts_tree_data (std::unique_ptr< BVHTree, BVHTreeDeleter > tree, const Span< float3 > positions) |
| static BVHTreeFromMesh | create_edges_tree_data (const BVHTree *tree, const Span< float3 > positions, const Span< int2 > edges) |
| static BVHTreeFromMesh | create_edges_tree_data (std::unique_ptr< BVHTree, BVHTreeDeleter > tree, const Span< float3 > positions, const Span< int2 > edges) |
| static BVHTreeFromMesh | create_legacy_faces_tree_data (const BVHTree *tree, const Span< float3 > positions, const MFace *face) |
| static BVHTreeFromMesh | create_tris_tree_data (const BVHTree *tree, const Span< float3 > positions, const Span< int > corner_verts, const Span< int3 > corner_tris) |
| static BVHTreeFromMesh | create_tris_tree_data (std::unique_ptr< BVHTree, BVHTreeDeleter > tree, const Span< float3 > positions, const Span< int > corner_verts, const Span< int3 > corner_tris) |
| static std::unique_ptr< BVHTree, BVHTreeDeleter > | bvhtree_new_common (int elems_num) |
| static std::unique_ptr< BVHTree, BVHTreeDeleter > | create_tree_from_verts (const Span< float3 > positions, const IndexMask &verts_mask) |
| static std::unique_ptr< BVHTree, BVHTreeDeleter > | create_tree_from_edges (const Span< float3 > positions, const Span< int2 > edges, const IndexMask &edges_mask) |
| static std::unique_ptr< BVHTree, BVHTreeDeleter > | create_tree_from_legacy_faces (const Span< float3 > positions, const Span< MFace > faces) |
| static std::unique_ptr< BVHTree, BVHTreeDeleter > | create_tree_from_tris (const Span< float3 > positions, const Span< int > corner_verts, const Span< int3 > corner_tris) |
| static std::unique_ptr< BVHTree, BVHTreeDeleter > | create_tree_from_tris (const Span< float3 > positions, const OffsetIndices< int > faces, const Span< int > corner_verts, const Span< int3 > corner_tris, const IndexMask &faces_mask, const bool map_global_indices) |
| static BitVector | loose_verts_no_hidden_mask_get (const Mesh &mesh) |
| static BitVector | loose_edges_no_hidden_mask_get (const Mesh &mesh) |
Local Callbacks | |
| float | bvhtree_ray_tri_intersection (const BVHTreeRay *ray, float m_dist, const float v0[3], const float v1[3], const float v2[3]) |
| float | bvhtree_sphereray_tri_intersection (const BVHTreeRay *ray, float radius, float m_dist, const float v0[3], const float v1[3], const float v2[3]) |
| static void | mesh_faces_nearest_point (void *userdata, int index, const float co[3], BVHTreeNearest *nearest) |
| static void | mesh_corner_tris_nearest_point (void *userdata, int index, const float co[3], BVHTreeNearest *nearest) |
| static void | mesh_faces_spherecast (void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit) |
| static void | mesh_corner_tris_spherecast (void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit) |
| static void | mesh_edges_nearest_point (void *userdata, int index, const float co[3], BVHTreeNearest *nearest) |
| static void | mesh_verts_spherecast_do (int index, const float v[3], const BVHTreeRay *ray, BVHTreeRayHit *hit) |
| static void | mesh_verts_spherecast (void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit) |
| static void | mesh_edges_spherecast (void *userdata, int index, const BVHTreeRay *ray, BVHTreeRayHit *hit) |
Operations | |
| CurvesGeometry | curves_copy_point_selection (const CurvesGeometry &curves, const IndexMask &points_to_copy, const AttributeFilter &attribute_filter) |
| CurvesGeometry | curves_copy_curve_selection (const CurvesGeometry &curves, const IndexMask &curves_to_copy, const AttributeFilter &attribute_filter) |
| CurvesGeometry | curves_new_no_attributes (int point_num, int curve_num) |
| static void | translate_positions (MutableSpan< float3 > positions, const float3 &translation) |
| static void | copy_point_selection_custom_knots (const CurvesGeometry &curves, const IndexMask &points_to_copy, const Span< int > curve_point_counts, CurvesGeometry &dst_curves) |
| static void | copy_curve_selection_custom_knots (const CurvesGeometry &curves, const IndexMask &curves_to_copy, CurvesGeometry &dst_curves) |
| static void | reverse_custom_knots (MutableSpan< float > custom_knots) |
| template<typename T> | |
| static void | reverse_curve_point_data (const CurvesGeometry &curves, const IndexMask &curve_selection, MutableSpan< T > data) |
| template<typename T> | |
| static void | reverse_swap_curve_point_data (const CurvesGeometry &curves, const IndexMask &curve_selection, MutableSpan< T > data_a, MutableSpan< T > data_b) |
Accessors | |
| std::array< int, CURVE_TYPES_NUM > | calculate_type_counts (const VArray< int8_t > &types) |
| static bool | is_valid_curve_type (const int8_t type) |
| static bool | curve_types_are_valid (const VArray< int8_t > &types) |
| static void | sanitize_curve_types (MutableSpan< int8_t > types) |
Custom Data C++ API | |
| std::optional< VolumeGridType > | custom_data_type_to_volume_grid_type (eCustomDataType type) |
| std::optional< eCustomDataType > | volume_grid_type_to_custom_data_type (VolumeGridType type) |
Curve Normals Access | |
| VArray< float3 > | curve_normals_varray (const CurvesGeometry &curves, AttrDomain domain) |
| static Array< float3 > | curve_normal_point_domain (const CurvesGeometry &curves) |
Mesh Normals Field Input | |
| VArray< float3 > | mesh_normals_varray (const Mesh &mesh, const IndexMask &mask, AttrDomain domain, bool no_corner_normals=false, bool true_normals=false) |
Geometry Set | |
| bool | attribute_is_builtin_on_component_type (const GeometryComponent::Type type, StringRef name) |
| bool | object_has_geometry_set_instances (const Object &object) |
| std::ostream & | operator<< (std::ostream &stream, const GeometrySet &geometry_set) |
| static void | gather_component_types_recursive (const GeometrySet &geometry_set, const bool include_instances, const bool ignore_empty, Vector< GeometryComponent::Type > &r_types) |
Topology Queries | |
| Mesh * | mesh_new_no_attributes (int verts_num, int edges_num, int faces_num, int corners_num) |
| void | mesh_calc_edges (Mesh &mesh, bool keep_existing_edges, bool select_new_edges) |
| void | mesh_calc_edges (Mesh &mesh, bool keep_existing_edges, bool select_new_edges, const AttributeFilter &attribute_filter) |
| void | mesh_translate (Mesh &mesh, const float3 &translation, bool do_shape_keys) |
| void | mesh_transform (Mesh &mesh, const float4x4 &transform, bool do_shape_keys) |
| void | mesh_flip_faces (Mesh &mesh, const IndexMask &selection) |
| void | mesh_ensure_required_data_layers (Mesh &mesh) |
| void | mesh_vert_normals_assign (Mesh &mesh, Span< float3 > vert_normals) |
| void | mesh_vert_normals_assign (Mesh &mesh, Vector< float3 > vert_normals) |
| void | mesh_smooth_set (Mesh &mesh, bool use_smooth, bool keep_sharp_edges=false) |
| void | mesh_sharp_edges_set_from_angle (Mesh &mesh, float angle, bool keep_sharp_edges=false) |
| void | mesh_edge_hide_from_vert (Span< int2 > edges, Span< bool > hide_vert, MutableSpan< bool > hide_edge) |
| void | mesh_face_hide_from_vert (OffsetIndices< int > faces, Span< int > corner_verts, Span< bool > hide_vert, MutableSpan< bool > hide_poly) |
| void | mesh_hide_vert_flush (Mesh &mesh) |
| void | mesh_hide_face_flush (Mesh &mesh) |
| void | mesh_select_vert_flush (Mesh &mesh) |
| void | mesh_select_edge_flush (Mesh &mesh) |
| void | mesh_select_face_flush (Mesh &mesh) |
| void | mesh_ensure_default_color_attribute_on_add (Mesh &mesh, StringRef name, AttrDomain domain, bke::AttrType data_type) |
| void | mesh_ensure_default_uv_attribute_on_add (Mesh &mesh, StringRef name, AttrDomain domain, bke::AttrType data_type) |
| void | mesh_ensure_active_uv_map (Mesh &mesh) |
| void | mesh_ensure_default_uv_map (Mesh &mesh) |
| void | mesh_data_update (Depsgraph &depsgraph, const Scene &scene, Object &ob, const CustomData_MeshMasks &dataMask) |
| void | mesh_remove_invalid_attribute_strings (Mesh &mesh) |
| bool | mesh_validate (Mesh &mesh, bool verbose=false, bool allow_missing_edges=false) |
| bool | mesh_is_valid (const Mesh &mesh, bool verbose=true) |
| bool | mesh_validate_material_indices (Mesh &mesh) |
| IndexMask | mesh_find_faces_duplicate_verts (const Mesh &mesh, IndexMaskMemory &memory) |
| IndexMask | find_duplicate_faces (OffsetIndices< int > faces, Span< int > corner_verts, const IndexMask &mask, IndexMaskMemory &memory, MutableSpan< int > r_originals={}) |
| void | mesh_apply_spatial_organization (Mesh &mesh) |
| const AttributeAccessorFunctions & | mesh_attribute_accessor_functions () |
Generic API, Trees | |
| bNodeTreeType * | node_tree_type_find (StringRef idname) |
| bNodeTreeType * | node_tree_type_find_builtin (const int tree_type) |
| void | node_tree_type_add (bNodeTreeType &nt) |
| void | node_tree_type_free_link (const bNodeTreeType &nt) |
| bool | node_tree_is_registered (const bNodeTree &ntree) |
| Span< bNodeTreeType * > | node_tree_types_get () |
| bool | node_tree_type_supports_socket_type_static (const int ntree_type, const eNodeSocketDatatype socket_type) |
| void | node_tree_set_type (bNodeTree &ntree) |
| bNodeTree * | node_tree_add_tree (Main *bmain, StringRef name, StringRef idname) |
| bNodeTree * | node_tree_add_in_lib (Main *bmain, Library *owner_library, StringRefNull name, StringRefNull idname) |
| void | node_tree_free_embedded_tree (bNodeTree *ntree) |
| bNodeTree ** | node_tree_ptr_from_id (ID *id) |
| bNodeTree * | node_tree_from_id (ID *id) |
| bool | node_tree_contains_tree (const bNodeTree &tree_to_search_in, const bNodeTree &tree_to_search_for) |
| void | node_tree_update_all_users (Main *main, ID *id) |
| void | node_tree_set_output (bNodeTree &ntree) |
| bNodeTree * | node_tree_localize (bNodeTree *ntree, std::optional< ID * > new_owner_id) |
| void | node_tree_blend_write (BlendWriter *writer, bNodeTree *ntree) |
Node Type Access | |
| bool | node_group_poll (const bNodeTree *nodetree, const bNodeTree *grouptree, const char **r_disabled_hint) |
| void | node_type_base_custom (bNodeType &ntype, StringRefNull idname, StringRefNull name, StringRefNull enum_name, short nclass) |
| void | node_type_storage (bNodeType &ntype, std::optional< StringRefNull > storagename, void(*freefunc)(bNode *node), void(*copyfunc)(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node)) |
| std::string | node_label (const bNodeTree &ntree, const bNode &node) |
| StringRefNull | node_socket_label (const bNodeSocket &sock) |
| std::optional< StringRefNull > | node_socket_short_label (const bNodeSocket &sock) |
| const char * | node_socket_translation_context (const bNodeSocket &sock) |
| NodeColorTag | node_color_tag (const bNode &node) |
| void | node_type_base (bNodeType &ntype, UString idname, std::optional< int16_t > legacy_type=std::nullopt) |
| void | node_type_socket_templates (bNodeType *ntype, bNodeSocketTemplate *inputs, bNodeSocketTemplate *outputs) |
Node Tree Iterator | |
Utility macro for visiting every node tree in the library data, including local bNodeTree blocks in other IDs. This avoids the need for callback functions and allows executing code in a single inner code block. Variables:
Examples: FOREACH_NODETREE_BEGIN(bmain, nodetree, id) {
if (id == nodetree)
printf("This is a linkable node tree");
FOREACH_NODETREE_BEGIN(bmain, nodetree, id) {
if (nodetree->idname == "ShaderNodeTree")
printf("This is a shader node tree");
printf(" and it's owned by a material");
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id) Definition BKE_node.hh:926 Definition AS_asset_library.hh:32 | |
| void | node_tree_iterator_init (NodeTreeIterStore *ntreeiter, Main *bmain) |
| bool | node_tree_iterator_step (NodeTreeIterStore *ntreeiter, bNodeTree **r_nodetree, ID **r_id) |
Node Tree | |
| void | node_tree_remove_layer_n (bNodeTree *ntree, Scene *scene, int layer_index) |
| void | node_system_init () |
| void | node_system_exit () |
| bNodeTree * | node_tree_add_tree_embedded (Main *bmain, ID *owner_id, StringRefNull name, StringRefNull idname) |
| void | node_tree_free_tree (bNodeTree &ntree) |
| bNodeTree * | node_tree_copy_tree_ex (const bNodeTree &ntree, Main *bmain, bool do_id_user) |
| bNodeTree * | node_tree_copy_tree (Main *bmain, const bNodeTree &ntree) |
| void | node_tree_free_local_node (bNodeTree &ntree, bNode &node) |
| void | node_tree_update_all_new (Main &main) |
| IDProperty * | node_create_asset_meta_data_properties (const bNodeTree &node_tree) |
| void | node_update_asset_metadata (bNodeTree &node_tree) |
| void | node_tree_node_flag_set (bNodeTree &ntree, eNode_Flag flag, bool enable) |
| void | node_tree_blend_read_data (BlendDataReader *reader, ID *owner_id, bNodeTree *ntree) |
| bool | node_is_static_socket_type (const bNodeSocketType &stype) |
| StringRefNull | node_socket_sub_type_label (int subtype) |
| void | node_remove_socket_ex (bNodeTree &ntree, bNode &node, bNodeSocket &sock, bool do_id_user) |
| void | node_modify_socket_type (bNodeTree &ntree, bNode &node, bNodeSocket &sock, StringRefNull idname) |
| void | node_unlink_node (bNodeTree &ntree, bNode &node) |
| void | node_unlink_attached (bNodeTree *ntree, const bNode *parent) |
| void | node_rebuild_id_vector (bNodeTree &node_tree) |
| bNode * | node_copy_with_mapping (bNodeTree *dst_tree, const bNode &node_src, int flag, std::optional< StringRefNull > dst_unique_name, std::optional< int > dst_unique_identifier, Map< const bNodeSocket *, bNodeSocket * > &new_socket_map, bool allow_duplicate_names=false) |
| void | node_socket_move_default_value (Main &bmain, bNodeTree &tree, bNodeSocket &src, bNodeSocket &dst) |
| void | socket_value_init (eNodeSocketDatatype type, void *data, int subtype=0) |
| void * | socket_value_new (eNodeSocketDatatype type, int subtype=0) |
| void * | socket_value_copy (eNodeSocketDatatype type, const void *src, bool do_id_user) |
| void | socket_value_free (eNodeSocketDatatype type, void *data, bool do_id_user) |
| void | socket_value_copy_content (eNodeSocketDatatype type, void *dst, const void *src, bool do_id_user) |
| void | socket_value_id_user_increment (eNodeSocketDatatype type, void *data) |
| void | socket_value_id_user_decrement (eNodeSocketDatatype type, void *data) |
| template<typename Fn> | |
| bool | socket_data_to_static_type (const eNodeSocketDatatype type, Fn &&fn) |
| void | node_free_node (bNodeTree *tree, bNode &node) |
| void | node_node_foreach_id (bNode *node, LibraryForeachIDData *data) |
| void | node_link_set_mute (bNodeTree &ntree, bNodeLink &link, const bool muted) |
| bool | node_link_is_selected (const bNodeLink &link) |
| void | node_internal_relink (bNodeTree &ntree, bNode &node) |
| void | node_position_relative (bNode &from_node, const bNode &to_node, const bNodeSocket *from_sock, const bNodeSocket &to_sock) |
| void | node_position_propagate (bNode &node) |
| bNode * | node_find_root_parent (bNode &node) |
| void | node_chain_iterator (const bNodeTree *ntree, const bNode *node_start, bool(*callback)(bNode *, bNode *, void *, const bool), void *userdata, bool reversed) |
| void | node_chain_iterator_backwards (const bNodeTree *ntree, bNode *node_start, bool(*callback)(bNode *, bNode *, void *), void *userdata, int recursion_lvl) |
| void | node_parents_iterator (bNode *node, bool(*callback)(bNode *, void *), void *userdata) |
| bool | node_is_dangling_reroute (const bNodeTree &ntree, const bNode &node) |
| bNode * | node_get_active_paint_canvas (bNodeTree &ntree) |
| bool | node_supports_active_flag (const bNode &node, int sub_activity) |
| Does the given node supports the sub active flag. | |
| void | node_set_socket_availability (bNodeTree &ntree, bNodeSocket &sock, bool is_available) |
| bool | node_declaration_ensure (bNodeTree &ntree, bNode &node) |
| bool | node_declaration_ensure_on_outdated_node (bNodeTree &ntree, bNode &node) |
| void | node_socket_declarations_update (bNode *node) |
Evaluation | |
| template<typename CountFn> | |
| void | build_offsets (MutableSpan< int > offsets, const CountFn &count_fn) |
| static void | calculate_evaluated_offsets (const CurvesGeometry &curves, MutableSpan< int > offsets, MutableSpan< int > all_bezier_offsets) |
| static void | rotate_directions_around_axes (MutableSpan< float3 > directions, const Span< float3 > axes, const Span< float > angles) |
| static void | normalize_span (MutableSpan< float3 > data) |
| static void | evaluate_generic_data_for_curve (const EvalData &eval_data, const int curve_index, const GSpan src, GMutableSpan dst) |
Domain Interpolation | |
| template<typename T> | |
| static void | adapt_curve_domain_point_to_curve_impl (const CurvesGeometry &curves, const VArray< T > &old_values, MutableSpan< T > r_values) |
| template<> | |
| void | adapt_curve_domain_point_to_curve_impl (const CurvesGeometry &curves, const VArray< bool > &old_values, MutableSpan< bool > r_values) |
| static GVArray | adapt_curve_domain_point_to_curve (const CurvesGeometry &curves, const GVArray &varray) |
| static GVArray | adapt_curve_domain_curve_to_point (const CurvesGeometry &curves, const GVArray &varray) |
Curve Length Field Input | |
| static VArray< float > | construct_curve_length_gvarray (const CurvesGeometry &curves, const AttrDomain domain) |
Variables | |
| const char * | no_procedural_access_message |
| template<typename T> | |
| constexpr bool | is_geometry_component_v = std::is_base_of_v<GeometryComponent, T> |
| static AssetTypeInfo | AssetType_AC |
| constexpr toml::spec | toml_version = toml::spec::v(1, 0, 0) |
| const int | project_schema_version = 1 |
| constexpr StringRef | ATTR_POSITION = "position" |
| constexpr StringRef | ATTR_RADIUS = "radius" |
| constexpr StringRef | ATTR_TILT = "tilt" |
| constexpr StringRef | ATTR_CURVE_TYPE = "curve_type" |
| constexpr StringRef | ATTR_CYCLIC = "cyclic" |
| constexpr StringRef | ATTR_RESOLUTION = "resolution" |
| constexpr StringRef | ATTR_NORMAL_MODE = "normal_mode" |
| constexpr StringRef | ATTR_HANDLE_TYPE_LEFT = "handle_type_left" |
| constexpr StringRef | ATTR_HANDLE_TYPE_RIGHT = "handle_type_right" |
| constexpr StringRef | ATTR_HANDLE_POSITION_LEFT = "handle_left" |
| constexpr StringRef | ATTR_HANDLE_POSITION_RIGHT = "handle_right" |
| constexpr StringRef | ATTR_NURBS_ORDER = "nurbs_order" |
| constexpr StringRef | ATTR_NURBS_WEIGHT = "nurbs_weight" |
| constexpr StringRef | ATTR_NURBS_KNOTS_MODE = "knots_mode" |
| constexpr StringRef | ATTR_SURFACE_UV_COORDINATE = "surface_uv_coordinate" |
Put the most common types directly into the bke namespace.
Workaround to forward-declare C++ type in C header.
Definition at line 139 of file BKE_attribute.hh.
| using blender::bke::AttrUpdateOnChange = void (*)(void *owner) |
Definition at line 19 of file attribute_storage_access.hh.
| using blender::bke::bNodeClassCallback = void (*)(void *calldata, int nclass, StringRefNull name) |
Definition at line 523 of file BKE_node.hh.
| using blender::bke::BoneNameSet = Set<std::string> |
Definition at line 779 of file BKE_armature.hh.
Definition at line 123 of file blenkernel/intern/sound.cc.
| typedef ImplicitSharingPtr< Bundle > blender::nodes::BundlePtr |
Definition at line 46 of file BKE_geometry_set.hh.
| using blender::bke::Clock = std::chrono::high_resolution_clock |
Definition at line 1575 of file blenkernel/intern/modifier.cc.
Definition at line 16 of file NOD_geometry_nodes_closure_fwd.hh.
| using blender::bke::EdgeMap |
Definition at line 111 of file mesh_validate.cc.
| using blender::bke::FoundFCurveCallback = FunctionRef<void(FCurve *fcurve, const char *bone_name)> |
Definition at line 329 of file BKE_action.hh.
| using blender::bke::FoundFCurveCallbackConst = FunctionRef<void(const FCurve *fcurve, const char *bone_name)> |
Definition at line 330 of file BKE_action.hh.
Definition at line 62 of file BKE_geometry_set.hh.
Definition at line 364 of file BKE_deform.hh.
| using blender::bke::NodeBlendDataReadFunction = void (*)(bNodeTree &tree, bNode &node, BlendDataReader &reader) |
Definition at line 151 of file BKE_node.hh.
Definition at line 148 of file BKE_node.hh.
Definition at line 126 of file BKE_node.hh.
| using blender::bke::NodeDeclareFunction = void (*)(nodes::NodeDeclarationBuilder &builder) |
Definition at line 125 of file BKE_node.hh.
| using blender::bke::NodeElemEvalFunction = void (*)(nodes::value_elem::ElemEvalParams ¶ms) |
Definition at line 143 of file BKE_node.hh.
Definition at line 227 of file BKE_node.hh.
| using blender::bke::NodeExtraInfoFunction = void (*)(nodes::NodeExtraInfoParams ¶ms) |
Definition at line 141 of file BKE_node.hh.
| using blender::bke::NodeFreeExecFunction = void (*)(void *nodedata) |
Definition at line 226 of file BKE_node.hh.
| using blender::bke::NodeGatherAddOperationsFunction = void (*)(nodes::GatherAddNodeSearchParams ¶ms) |
Definition at line 136 of file BKE_node.hh.
| using blender::bke::NodeGatherSocketLinkOperationsFunction = void (*)(nodes::GatherLinkSearchOpParams ¶ms) |
Definition at line 133 of file BKE_node.hh.
| using blender::bke::NodeGeometryExecFunction = void (*)(nodes::GeoNodeExecParams params) |
Definition at line 124 of file BKE_node.hh.
Definition at line 138 of file BKE_node.hh.
Definition at line 229 of file BKE_node.hh.
Definition at line 80 of file BKE_node_runtime.hh.
Definition at line 223 of file BKE_node.hh.
Definition at line 145 of file BKE_node.hh.
| using blender::bke::NodeInverseElemEvalFunction = void (*)(nodes::value_elem::InverseElemEvalParams ¶ms) |
Definition at line 142 of file BKE_node.hh.
| using blender::bke::NodeInverseEvalFunction = void (*)(nodes::inverse_eval::InverseEvalParams ¶ms) |
Definition at line 144 of file BKE_node.hh.
| using blender::bke::NodeMaterialXFunction = void (*)(void *data, bNode *node, bNodeSocket *out) |
Definition at line 231 of file BKE_node.hh.
| using blender::bke::NodeMultiFunctionBuildFunction = void (*)(nodes::NodeMultiFunctionBuilder &builder) |
Definition at line 123 of file BKE_node.hh.
| using blender::bke::NodeSocketPair = std::pair<bNode *, bNodeSocket *> |
Definition at line 228 of file node_tree_update.cc.
| using blender::bke::ObjectModifierPair = std::pair<Object *, ModifierData *> |
Definition at line 227 of file node_tree_update.cc.
| using blender::bke::PChanBone = PChanBoneT<bPoseChannel, Bone> |
Definition at line 88 of file BKE_pose.hh.
| using blender::bke::PChanBoneConst = PChanBoneT<const bPoseChannel, const Bone> |
Definition at line 89 of file BKE_pose.hh.
| using blender::bke::SceneCompositorEffectPair = std::pair<Scene *, SceneCompositorEffect *> |
Definition at line 231 of file node_tree_update.cc.
| using blender::bke::SelectedBoneCallback = FunctionRef<void(Bone *bone)> |
Definition at line 775 of file BKE_armature.hh.
| using blender::bke::SocketGetCPPValueFunction = void (*)(const void *socket_value, void *r_value) |
Definition at line 129 of file BKE_node.hh.
| using blender::bke::SocketGetGeometryNodesCPPValueFunction = SocketValueVariant (*)(const void *socket_value) |
Definition at line 130 of file BKE_node.hh.
Definition at line 153 of file BKE_node.hh.
| using blender::bke::StripEffectPair = std::pair<Scene *, Strip *> |
Definition at line 230 of file node_tree_update.cc.
| using blender::bke::StripModifierPair = std::pair<Scene *, StripModifierData *> |
Definition at line 229 of file node_tree_update.cc.
| using blender::bke::TreeNodePair = std::pair<bNodeTree *, bNode *> |
Definition at line 226 of file node_tree_update.cc.
Definition at line 41 of file BKE_wm_runtime.hh.
|
strong |
#ARegionRuntime.quadview_index
| Enumerator | |
|---|---|
| None | |
| BottomLeft | |
| TopLeft | |
| BottomRight | |
| TopRight | |
Definition at line 616 of file BKE_screen.hh.
| Enumerator | |
|---|---|
| HUD_PADDING | Move redo panel in +Y direction to avoid overlapping with other UI elements, see: #62258 |
Definition at line 624 of file BKE_screen.hh.
|
strong |
| Enumerator | |
|---|---|
| Point | |
| Edge | |
| Face | |
| Corner | |
| Curve | |
| Instance | |
| Layer | |
Definition at line 40 of file BKE_attribute_enums.hh.
|
strong |
| Enumerator | |
|---|---|
| Auto | |
| Point | |
| Edge | |
| Face | |
| Corner | |
| Curve | |
| Instance | |
| Layer | |
Definition at line 58 of file BKE_attribute_enums.hh.
|
strong |
Some storage types are only relevant for certain attribute types.
| Enumerator | |
|---|---|
| Array | #AttributeDataArray. |
| Single | A single value for the whole attribute. |
Definition at line 16 of file BKE_attribute_enums.hh.
|
strong |
| Enumerator | |
|---|---|
| Bool | |
| Int8 | |
| Int16_2D | |
| Int32 | |
| Int32_2D | |
| Float | |
| Float2 | |
| Float3 | |
| Float4x4 | |
| ColorByte | |
| ColorFloat | |
| Quaternion | |
| String | |
| Float4 | |
Definition at line 23 of file BKE_attribute_enums.hh.
|
strong |
| Enumerator | |
|---|---|
| RequiresSingle | |
| CanBeField | |
| IsField | |
Definition at line 68 of file BKE_node_runtime.hh.
|
strong |
| Enumerator | |
|---|---|
| Owned | |
| Editable | |
| ReadOnly | |
Definition at line 53 of file BKE_geometry_set.hh.
|
strong |
The complexity requirement of attribute domains needed to process normals. See #Mesh::normals_domain().
Definition at line 66 of file BKE_mesh_types.hh.
|
strong |
Color tag stored per node group. This affects the header color of group nodes. Note that these values are written to DNA.
This is separate from the NODE_CLASS_* enum, because those have some additional items and are not purely color tags. Some classes also have functional effects (e.g. NODE_CLASS_INPUT).
| Enumerator | |
|---|---|
| None | |
| Attribute | |
| Color | |
| Converter | |
| Distort | |
| Filter | |
| Geometry | |
| Input | |
| Matte | |
| Output | |
| Script | |
| Shader | |
| Texture | |
| Vector | |
| Pattern | |
| Interface | |
| Group | |
Definition at line 503 of file BKE_node.hh.
| Enumerator | |
|---|---|
| NODE_MENU_ITEMS_CONFLICT | |
Definition at line 19 of file BKE_node_enum.hh.
|
strong |
The subtype of a string project variable, indicating how the data should be interpreted.
We intentionally re-use the values from PropertySubType to make translation between the two easy.
| Enumerator | |
|---|---|
| NONE | |
| FILEPATH | |
Definition at line 54 of file BKE_blender_project.hh.
|
strong |
The main data type of a project variable.
We intentionally re-use the values from eIDPropertyType to make translation between the two easy.
| Enumerator | |
|---|---|
| STRING | |
| INT | |
| FLOAT | |
Definition at line 41 of file BKE_blender_project.hh.
|
strong |
What can be reached from a socket, resets at Light Accumulation.
| Enumerator | |
|---|---|
| None | |
| ShaderMaterialOutput | |
| OtherOutput | Any other output node socket (AOV, Volume, Displacement...). |
| ShaderToRGB | |
| LightAccumulationColor | |
Definition at line 412 of file node_tree_update.cc.
|
strong |
| Enumerator | |
|---|---|
| None | |
| WaveformNoReload | |
| WaveformLoading | |
Definition at line 115 of file blenkernel/intern/sound.cc.
|
strong |
The kind of UI element that began the window's IME session, see #WindowRuntime::ime_owner.
Popups store the type of session with the element that began them. Avoids buttons/regions acting on an IME popup it doesn't own.
Definition at line 141 of file BKE_wm_runtime.hh.
|
static |
Definition at line 727 of file blenkernel/intern/action.cc.
References action_asset_metadata_ensure(), action_asset_type_property(), blender::BKE_asset_metadata_idprop_ensure(), blender::BLI_assert(), blender::GS(), blender::bAction::id, blender::ID_AC, and blender::ID::name.
Referenced by action_asset_metadata_ensure().
|
static |
Definition at line 721 of file blenkernel/intern/action.cc.
References action_asset_type_property(), and blender::bke::idprop::create().
Referenced by action_asset_metadata_ensure(), and action_asset_type_property().
|
static |
Definition at line 676 of file blenkernel/intern/action.cc.
References action_blend_read_data(), blender::animrig::versioning::action_is_layered(), blender::BKE_fcurve_blend_read_data_listbase(), blender::BKE_previewimg_blend_read(), blender::BKE_time_markers_blend_read(), BLO_read_struct, BLO_read_struct_list, blender::bActionGroup::channels, blender::bAction::curves, blender::bAction::groups, blender::bAction::idroot, blender::bAction::markers, blender::bAction::preview, read_layers(), read_slots(), read_strip_keyframe_data_array(), and blender::gpu::wrap().
Referenced by action_blend_read_data().
|
static |
Definition at line 499 of file blenkernel/intern/action.cc.
References action_blend_write(), action_blend_write_clear_legacy_channel_groups_listbase(), action_blend_write_clear_legacy_fcurves_listbase(), action_blend_write_make_legacy_channel_groups_listbase(), action_blend_write_make_legacy_fcurves_listbase(), blender::animrig::assert_baklava_phase_1_invariants(), blender::BKE_fcurve_blend_write_listbase(), blender::BKE_id_blend_write(), blender::BKE_previewimg_blend_write(), blender::BKE_time_markers_blend_write(), BLI_assert_msg, blender::animrig::Channelbag::channel_groups(), blender::animrig::channelbag_for_action_slot(), blender::bAction::curves, blender::animrig::Channelbag::fcurves(), blender::bAction::groups, blender::ActionSlot::handle, blender::bAction::id, blender::bAction::idroot, blender::ActionSlot::idtype, blender::BlendWriter::is_undo(), blender::animrig::Action::layers(), blender::bAction::markers, blender::bAction::preview, blender::animrig::Action::slot(), blender::bAction::slot_array_num, blender::animrig::Action::slots(), blender::animrig::Action::strip_keyframe_data(), blender::gpu::wrap(), blender::BlendWriter::write_id_struct(), write_layers(), write_slots(), write_strip_keyframe_data_array(), and blender::BlendWriter::write_struct().
Referenced by action_blend_write().
|
static |
Definition at line 444 of file blenkernel/intern/action.cc.
References action_blend_write_clear_legacy_channel_groups_listbase().
Referenced by action_blend_write(), and action_blend_write_clear_legacy_channel_groups_listbase().
|
static |
Definition at line 489 of file blenkernel/intern/action.cc.
References action_blend_write_clear_legacy_fcurves_listbase().
Referenced by action_blend_write(), and action_blend_write_clear_legacy_fcurves_listbase().
|
static |
Create a listbase from a Span of channel groups.
Definition at line 410 of file blenkernel/intern/action.cc.
References action_blend_write_make_legacy_channel_groups_listbase(), blender::Span< T >::first(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), blender::Span< T >::last(), and blender::Span< T >::size().
Referenced by action_blend_write(), and action_blend_write_make_legacy_channel_groups_listbase().
|
static |
Create a listbase from a Span of F-Curves.
Definition at line 470 of file blenkernel/intern/action.cc.
References action_blend_write_make_legacy_fcurves_listbase(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), and blender::Span< T >::size().
Referenced by action_blend_write(), and action_blend_write_make_legacy_fcurves_listbase().
|
static |
Only copy internal data of Action ID from source to already allocated/initialized destination. You probably never want to use that directly, use BKE_id_copy or BKE_id_copy_ex for typical needs.
WARNING! This function will not handle ID user count!
| flag | Copying options (see BKE_lib_id.hh's LIB_ID_COPY_... flags for more). |
Definition at line 120 of file blenkernel/intern/action.cc.
References action_copy_data(), blender::BKE_copy_time_markers(), blender::BKE_fcurve_copy(), blender::BKE_previewimg_id_copy(), blender::BLI_addtail(), blender::BLI_duplicatelist(), blender::bActionGroup::channels, blender::bAction::curves, blender::animrig::Layer::duplicate_with_shallow_strip_copies(), blender::bAction::groups, blender::FCurve::grp, blender::bAction::id, blender::bAction::last_slot_handle, blender::animrig::Action::layer(), blender::bAction::layer_active_index, blender::bAction::layer_array, blender::bAction::layer_array_num, blender::animrig::Action::layers(), blender::LIB_ID_COPY_NO_PREVIEW, blender::bAction::markers, blender::MEM_new_array_zeroed(), blender::bActionGroup::next, blender::FCurve::next, blender::bAction::preview, blender::animrig::Action::slot(), blender::bAction::slot_array, blender::bAction::slot_array_num, blender::animrig::Action::slots(), blender::animrig::Action::strip_keyframe_data(), blender::bAction::strip_keyframe_data_array, and blender::bAction::strip_keyframe_data_array_num.
Referenced by action_copy_data().
|
static |
Definition at line 242 of file blenkernel/intern/action.cc.
References action_foreach_id(), BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_PROCESS_ID, BKE_LIB_FOREACHID_PROCESS_IDSUPER, blender::BKE_lib_query_foreachid_process_flags_get(), blender::BKE_lib_query_foreachid_process_main_get(), BLI_assert_msg, blender::TimeMarker::camera, blender::data, blender::IDP_foreach_property(), blender::IDP_TYPE_FILTER_ID, blender::IDWALK_CB_LOOPBACK, blender::IDWALK_CB_NEVER_SELF, blender::IDWALK_CB_NOP, blender::IDWALK_READONLY, blender::Main::is_action_slot_to_id_map_dirty, blender::bAction::markers, blender::TimeMarker::prop, blender::animrig::Action::slots(), blender::animrig::Slot::users_invalidate(), and blender::gpu::wrap().
Referenced by action_foreach_id().
|
static |
Free (or release) any data used by this action (does not free the action itself).
Definition at line 206 of file blenkernel/intern/action.cc.
References action_free_data(), blender::BKE_fcurves_free(), blender::BKE_free_time_markers(), blender::BKE_previewimg_id_free(), blender::BLI_assert(), blender::bAction::curves, blender::bAction::groups, blender::bAction::id, blender::animrig::Action::is_empty(), layer, blender::bAction::layer_array, blender::bAction::layer_array_num, blender::animrig::Action::layers(), blender::bAction::markers, blender::bAction::slot_array, blender::bAction::slot_array_num, blender::animrig::Action::slots(), blender::animrig::Action::strip_keyframe_data(), blender::bAction::strip_keyframe_data_array, blender::bAction::strip_keyframe_data_array_num, and blender::gpu::wrap().
Referenced by action_free_data().
|
static |
Definition at line 102 of file blenkernel/intern/action.cc.
References action_init_data(), blender::BLI_assert(), blender::GS(), blender::ID_AC, INIT_DEFAULT_STRUCT_AFTER, and blender::ID::name.
Referenced by action_init_data().
|
static |
Copy the value from a curve to all of its points.
Definition at line 1911 of file curves_geometry.cc.
References adapt_curve_domain_curve_to_point(), blender::Default, blender::GVArray::from_garray(), blender::bke::attribute_math::gather_to_groups(), PRF_scope, and blender::GVArrayCommon::type().
Referenced by adapt_curve_domain_curve_to_point(), and blender::bke::CurvesGeometry::adapt_domain().
|
static |
Definition at line 1889 of file curves_geometry.cc.
References adapt_curve_domain_point_to_curve(), blender::Default, PRF_scope, T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_curve_domain_point_to_curve(), and blender::bke::CurvesGeometry::adapt_domain().
| void blender::bke::adapt_curve_domain_point_to_curve_impl | ( | const CurvesGeometry & | curves, |
| const VArray< bool > & | old_values, | ||
| MutableSpan< bool > | r_values ) |
A curve is selected if all of its control points were selected.
Definition at line 1873 of file curves_geometry.cc.
References adapt_curve_domain_point_to_curve_impl(), blender::MutableSpan< T >::fill(), and blender::IndexRange::IndexRange().
|
static |
Mix together all of a curve's control point values.
Definition at line 1848 of file curves_geometry.cc.
References adapt_curve_domain_point_to_curve_impl(), and blender::threading::parallel_for().
Referenced by adapt_curve_domain_point_to_curve_impl(), and adapt_curve_domain_point_to_curve_impl().
|
static |
Definition at line 370 of file attribute_access.cc.
References blender::bke::AttributeAccessor::adapt_domain(), adapt_domain_and_type_if_necessary(), attribute, attribute_type_to_cpp_type(), and try_adapt_data_type().
Referenced by adapt_domain_and_type_if_necessary(), blender::bke::AttributeIter::get(), and blender::bke::AttributeAccessor::lookup().
|
static |
Definition at line 566 of file mesh_attributes.cc.
References adapt_mesh_attribute_domain(), adapt_mesh_domain_corner_to_edge(), adapt_mesh_domain_corner_to_face(), adapt_mesh_domain_corner_to_point(), adapt_mesh_domain_edge_to_corner(), adapt_mesh_domain_edge_to_face(), adapt_mesh_domain_edge_to_point(), adapt_mesh_domain_face_to_corner(), adapt_mesh_domain_face_to_edge(), adapt_mesh_domain_face_to_point(), adapt_mesh_domain_point_to_corner(), adapt_mesh_domain_point_to_edge(), adapt_mesh_domain_point_to_face(), BUFFER_FOR_CPP_TYPE_VALUE, can_simple_adapt_for_single(), Corner, Edge, Face, blender::GVArray::from_single(), blender::GVArrayCommon::get_internal_single(), blender::GVArrayCommon::is_empty(), blender::GVArrayCommon::is_single(), Point, and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and get_mesh_accessor_functions().
|
static |
Definition at line 195 of file mesh_attributes.cc.
References adapt_mesh_domain_corner_to_edge(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_corner_to_edge().
| void blender::bke::adapt_mesh_domain_corner_to_edge_impl | ( | const Mesh & | mesh, |
| const VArray< bool > & | old_values, | ||
| MutableSpan< bool > | r_values ) |
Definition at line 171 of file mesh_attributes.cc.
References adapt_mesh_domain_corner_to_edge_impl(), blender::BLI_assert(), blender::bke::mesh::face_corner_next(), blender::MutableSpan< T >::fill(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::index_mask::masked_fill(), and blender::MutableSpan< T >::size().
|
static |
Definition at line 144 of file mesh_attributes.cc.
References adapt_mesh_domain_corner_to_edge_impl(), blender::BLI_assert(), blender::bke::mesh::face_corner_next(), blender::offset_indices::OffsetIndices< T >::index_range(), and blender::MutableSpan< T >::size().
Referenced by adapt_mesh_domain_corner_to_edge_impl(), and adapt_mesh_domain_corner_to_edge_impl().
|
static |
Definition at line 106 of file mesh_attributes.cc.
References adapt_mesh_domain_corner_to_face(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_corner_to_face().
|
static |
Definition at line 75 of file mesh_attributes.cc.
References adapt_mesh_domain_corner_to_point(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_corner_to_point().
| void blender::bke::adapt_mesh_domain_corner_to_point_impl | ( | const Mesh & | mesh, |
| const VArray< bool > & | src, | ||
| MutableSpan< bool > | r_dst ) |
Definition at line 54 of file mesh_attributes.cc.
References adapt_mesh_domain_corner_to_point_impl(), blender::BLI_assert(), blender::MutableSpan< T >::fill(), blender::threading::parallel_for(), and blender::MutableSpan< T >::size().
|
static |
Definition at line 29 of file mesh_attributes.cc.
References adapt_mesh_domain_corner_to_point_impl(), blender::BLI_assert(), blender::offset_indices::GroupedSpan< T >::index_range(), blender::threading::parallel_for(), and blender::MutableSpan< T >::size().
Referenced by adapt_mesh_domain_corner_to_point_impl(), and adapt_mesh_domain_corner_to_point_impl().
|
static |
Definition at line 424 of file mesh_attributes.cc.
References adapt_mesh_domain_edge_to_corner(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_edge_to_corner().
| void blender::bke::adapt_mesh_domain_edge_to_corner_impl | ( | const Mesh & | mesh, |
| const VArray< bool > & | old_values, | ||
| MutableSpan< bool > | r_values ) |
| void blender::bke::adapt_mesh_domain_edge_to_corner_impl | ( | const Mesh & | mesh, |
| const VArray< T > & | old_values, | ||
| MutableSpan< T > | r_values ) |
Definition at line 371 of file mesh_attributes.cc.
References adapt_mesh_domain_edge_to_corner_impl(), blender::BLI_assert(), blender::bke::mesh::face_corner_prev(), blender::offset_indices::OffsetIndices< T >::index_range(), and blender::MutableSpan< T >::size().
Referenced by adapt_mesh_domain_edge_to_corner_impl(), and adapt_mesh_domain_edge_to_corner_impl().
|
static |
Definition at line 491 of file mesh_attributes.cc.
References adapt_mesh_domain_edge_to_face(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_edge_to_face().
|
static |
Definition at line 479 of file mesh_attributes.cc.
References adapt_mesh_domain_edge_to_point(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_edge_to_point().
| void blender::bke::adapt_mesh_domain_edge_to_point_impl | ( | const Mesh & | mesh, |
| const VArray< bool > & | old_values, | ||
| MutableSpan< bool > | r_values ) |
Definition at line 458 of file mesh_attributes.cc.
References adapt_mesh_domain_edge_to_point_impl(), blender::BLI_assert(), blender::MutableSpan< T >::fill(), blender::Span< T >::index_range(), blender::threading::parallel_for(), and blender::MutableSpan< T >::size().
|
static |
Definition at line 437 of file mesh_attributes.cc.
References adapt_mesh_domain_edge_to_point_impl(), blender::BLI_assert(), blender::MutableSpan< T >::size(), and T.
Referenced by adapt_mesh_domain_edge_to_point_impl(), and adapt_mesh_domain_edge_to_point_impl().
|
static |
Definition at line 242 of file mesh_attributes.cc.
References adapt_mesh_domain_face_to_corner(), blender::GVArray::from_garray(), blender::bke::attribute_math::gather_to_groups(), blender::offset_indices::OffsetIndices< T >::index_range(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_face_to_corner().
|
static |
Definition at line 292 of file mesh_attributes.cc.
References adapt_mesh_domain_face_to_edge(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_face_to_edge().
| void blender::bke::adapt_mesh_domain_face_to_edge_impl | ( | const Mesh & | mesh, |
| const VArray< bool > & | old_values, | ||
| MutableSpan< bool > | r_values ) |
| void blender::bke::adapt_mesh_domain_face_to_edge_impl | ( | const Mesh & | mesh, |
| const VArray< T > & | old_values, | ||
| MutableSpan< T > | r_values ) |
Definition at line 251 of file mesh_attributes.cc.
References adapt_mesh_domain_face_to_edge_impl(), blender::BLI_assert(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::MutableSpan< T >::size(), blender::Span< T >::slice(), and T.
Referenced by adapt_mesh_domain_face_to_edge_impl(), and adapt_mesh_domain_face_to_edge_impl().
|
static |
Definition at line 207 of file mesh_attributes.cc.
References adapt_mesh_domain_face_to_point(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_face_to_point().
|
static |
Each corner's value is simply a copy of the value at its vertex.
Definition at line 92 of file mesh_attributes.cc.
References adapt_mesh_domain_point_to_corner(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_point_to_corner().
|
static |
Definition at line 343 of file mesh_attributes.cc.
References adapt_mesh_domain_point_to_edge(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_point_to_edge().
|
static |
Definition at line 304 of file mesh_attributes.cc.
References adapt_mesh_domain_point_to_face(), T, blender::bke::attribute_math::to_static_type(), and blender::GVArrayCommon::type().
Referenced by adapt_mesh_attribute_domain(), and adapt_mesh_domain_point_to_face().
|
static |
Definition at line 2059 of file mesh_legacy_convert.cc.
References add_auto_smooth_node_tree(), blender::BKE_ntree_update_after_single_tree_change(), blender::bNode::custom1, DATA_, DEG2RADF, Edge, Face, blender::bNodeSocket::flag, blender::GeometryNodeAssetTraits::flag, blender::GEO_NODE_ASSET_MODIFIER, blender::bNodeTree::geometry_node_asset_traits, blender::bNodeSocket::identifier, blender::bNode::location, blender::bNodeSocketValueFloat::min, node, node_add_link(), node_add_node(), blender::NODE_BOOLEAN_MATH_AND, blender::NODE_COMPARE_LESS_EQUAL, node_find_socket(), blender::NODE_INTERFACE_SOCKET_INPUT, blender::NODE_INTERFACE_SOCKET_OUTPUT, node_set_selected(), node_tree_add_in_lib(), blender::bNodeTree::nodes, blender::bNode::outputs, blender::PROP_ANGLE, blender::SOCK_HIDDEN, blender::SOCK_IN, blender::SOCK_OUT, blender::bNodeTreeInterfaceSocket::socket_data, blender::bNode::storage, STREQ, and blender::bNodeTree::tree_interface.
Referenced by add_auto_smooth_node_tree(), and blender::BKE_main_mesh_legacy_convert_auto_smooth().
|
static |
Definition at line 26 of file geometry_set_instances.cc.
References add_final_mesh_as_geometry_component(), blender::BKE_mesh_wrapper_ensure_mdata(), blender::BKE_modifier_get_evaluated_mesh_from_evaluated_object(), blender::BKE_object_get_evaluated_mesh_no_subsurf(), ReadOnly, and blender::bke::GeometrySet::replace_mesh().
Referenced by add_final_mesh_as_geometry_component(), and object_get_evaluated_geometry_set().
|
static |
Definition at line 25 of file type_conversions.cc.
References blender::bke::DataTypeConversions::add(), add_implicit_conversion(), blender::CPPType::get(), blender::CPPType::name(), and to_type().
Referenced by add_implicit_conversion(), and create_implicit_conversions().
|
static |
Definition at line 159 of file mesh_data_update.cc.
References add_orco_mesh(), blender::BKE_mesh_orco_verts_transform(), blender::bm, blender::CD_ORCO, blender::MutableSpan< T >::copy_from(), blender::Object::data, get_orco_coords(), blender::MutableSpan< T >::is_empty(), blender::Span< T >::is_empty(), layer, orco_coord_layer_ensure(), storage, and blender::Mesh::verts_num.
Referenced by add_orco_mesh(), editbmesh_calc_modifiers(), and mesh_calc_modifiers().
|
static |
Definition at line 4798 of file node.cc.
References adjust_multi_input_indices_after_removed_link(), blender::bNodeTree::links, blender::bNodeLink::multi_input_sort_id, and blender::bNodeLink::tosock.
Referenced by adjust_multi_input_indices_after_removed_link(), node_internal_relink(), and node_unlink_node().
| Span< int > blender::bke::all_zone_input_node_types | ( | ) |
Definition at line 551 of file node_tree_zones.cc.
References all_zone_input_node_types(), all_zone_types(), and blender::Vector< T, InlineBufferCapacity, Allocator >::append().
Referenced by all_zone_input_node_types(), discover_tree_zones(), blender::bke::node_tree_runtime::get_implicit_target_nodes(), blender::compositor::is_node_tree_input_node(), blender::ed::space_node::remap_node_pairing(), and blender::ed::space_node::remap_pairing().
| Span< int > blender::bke::all_zone_node_types | ( | ) |
Definition at line 538 of file node_tree_zones.cc.
References all_zone_node_types(), all_zone_types(), and blender::Vector< T, InlineBufferCapacity, Allocator >::append().
Referenced by all_zone_node_types(), and blender::ed::space_node::node_draw_basis().
| Span< int > blender::bke::all_zone_output_node_types | ( | ) |
Definition at line 563 of file node_tree_zones.cc.
References all_zone_output_node_types(), all_zone_types(), and blender::Vector< T, InlineBufferCapacity, Allocator >::append().
Referenced by all_zone_output_node_types(), discover_tree_zones(), blender::bke::node_tree_runtime::get_implicit_origin_nodes(), and blender::ed::space_node::remap_node_pairing().
| Span< const bNodeZoneType * > blender::bke::all_zone_types | ( | ) |
Definition at line 533 of file node_tree_zones.cc.
References all_zone_types(), and get_zone_types_vector().
Referenced by all_zone_input_node_types(), all_zone_node_types(), all_zone_output_node_types(), all_zone_types(), find_zone_nodes(), blender::ed::space_node::node_group_make_test_selected(), blender::ed::space_node::node_select_paired(), and zone_type_by_node_type().
| bool blender::bke::allow_procedural_attribute_access | ( | StringRef | attribute_name | ) |
Definition at line 214 of file attribute_access.cc.
References allow_procedural_attribute_access(), blender::blender::StringRefBase::startswith(), and UV_PINNED_NAME.
Referenced by blender::nodes::add_attribute_search_button(), allow_procedural_attribute_access(), blender::ui::attribute_search_add_items(), blender::BKE_attributes_active_index_validate(), blender::BKE_attributes_active_name_get(), blender::BKE_attributes_active_set(), blender::blo_do_versions_503(), blender::EDBM_mesh_make_from_mesh(), blender::ensure_weight_attribute_meta_data(), blender::nodes::find_output_attributes_to_store(), blender::ed::space_node::get_attribute_info_from_context(), blender::io::csv::import_csv_as_pointcloud(), blender::nodes::load_attribute_field_input(), blender::io::ply::load_vertex_element(), blender::nodes::node_geo_input_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), and blender::nodes::node_geo_remove_attribute_cc::remove_attributes().
|
static |
Definition at line 503 of file armature_deform.cc.
References blender::ARM_DEF_QUATERNION, armature_deform_coords(), get_armature_deform_params(), blender::MutableSpan< T >::index_range(), and blender::threading::parallel_for().
Referenced by armature_deform_coords(), blender::BKE_armature_deform_coords_with_curves(), and blender::BKE_armature_deform_coords_with_mesh().
|
static |
Definition at line 567 of file armature_deform.cc.
References blender::ARM_DEF_QUATERNION, armature_deform_editmesh(), armature_vert_task_editmesh(), blender::BLI_parallel_mempool_settings_defaults(), blender::BLI_task_parallel_mempool(), blender::bm, blender::BM_mesh_elem_index_ensure(), blender::BM_VERT, blender::data, get_armature_deform_params(), and blender::blender::BMesh::vpool.
Referenced by armature_deform_editmesh(), and blender::BKE_armature_deform_coords_with_editmesh().
|
static |
Definition at line 554 of file armature_deform.cc.
References armature_vert_task_editmesh(), armature_vert_task_with_dvert(), BM_ELEM_CD_GET_VOID_P, BM_elem_index_get, blender::data, and blender::v.
Referenced by armature_deform_editmesh(), and armature_vert_task_editmesh().
|
static |
Definition at line 475 of file armature_deform.cc.
References armature_vert_task_with_dvert(), armature_vert_task_with_mixer(), and blender::bke::ArmatureDeformParams::vert_deform_mats.
Referenced by armature_vert_task_editmesh(), and armature_vert_task_with_dvert().
|
static |
Definition at line 371 of file armature_deform.cc.
References blender::Bone::arm_head, blender::Bone::arm_tail, blender::bke::ArmatureDeformParams::armature, blender::bke::ArmatureDeformParams::armature_def_nr, blender::bke::ArmatureDeformParams::armature_to_target, armature_vert_task_with_mixer(), blender::BKE_defvert_find_weight(), blender::bke::PChanBoneT< PoseChannelT, BoneT >::bone, blender::BONE_MULT_VG_ENV, blender::BONE_NO_DEFORM, blender::IndexRange::contains(), blender::copy_v3_v3(), blender::Bone::dist, dist_bone_deform(), blender::distfactor_to_bone(), blender::MDeformVert::dw, blender::Bone::flag, blender::math::interpolate(), blender::bke::ArmatureDeformParams::invert_vgroup, blender::bke::PChanBoneT< PoseChannelT, BoneT >::pchan, pchan_bone_deform(), blender::bke::ArmatureDeformParams::pose_channel_by_vertex_group, blender::bke::ArmatureDeformParams::pose_channels, blender::Bone::rad_head, blender::Bone::rad_tail, blender::bke::ArmatureDeformParams::target_to_armature, blender::MDeformVert::totweight, blender::math::transform_point(), blender::bke::ArmatureDeformParams::use_dverts, blender::bke::ArmatureDeformParams::use_envelope, blender::bke::ArmatureDeformParams::vert_coords, blender::bke::ArmatureDeformParams::vert_coords_prev, blender::bke::ArmatureDeformParams::vert_deform_mats, and blender::MatBase< T, NumCol, NumRow, Alignment >::view().
Referenced by armature_vert_task_with_dvert(), and armature_vert_task_with_mixer().
|
static |
Create array data that owns the array's buffer.
Definition at line 46 of file attribute_storage.cc.
References array_data_from_garray(), blender::data, and blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr.
Referenced by array_data_from_garray(), blender::bke::Attribute::ArrayData::from_uninitialized(), and blender::bke::Attribute::ArrayData::from_value().
|
static |
Definition at line 48 of file instances_attributes.cc.
References array_storage_required().
Referenced by array_storage_required(), and get_instances_accessor_functions().
|
static |
Definition at line 693 of file mesh_attributes.cc.
References array_storage_required().
Referenced by array_storage_required(), and get_mesh_accessor_functions().
|
static |
Definition at line 54 of file pointcloud_attributes.cc.
References array_storage_required().
Referenced by array_storage_required(), and get_pointcloud_accessor_functions().
|
static |
Definition at line 140 of file asset_edit.cc.
References asset_blendfile_path_for_save(), asset_root_path_for_save(), blender::BKE_report(), BLENDER_ASSET_FILE_SUFFIX, blender::BLI_assert(), blender::BLI_dir_create_recursive(), blender::BLI_is_file(), blender::BLI_path_make_safe_filename(), blender::BLI_strncpy(), blender::blender::StringRefBase::data(), FILE_MAXFILE, blender::RPT_ERROR, blender::SEP, and blender::blender::StringRefBase::size().
Referenced by asset_blendfile_path_for_save(), and asset_edit_id_save_as().
| bool blender::bke::asset_edit_id_delete | ( | Main & | global_main, |
| ID & | id, | ||
| ReportList & | reports ) |
Definition at line 469 of file asset_edit.cc.
References asset_edit_id_delete(), asset_edit_id_is_writable(), blender::BKE_id_delete(), blender::BKE_report(), blender::BLI_delete(), and blender::RPT_ERROR.
Referenced by asset_edit_id_delete(), blender::ed::sculpt_paint::brush_asset_delete_exec(), and blender::ed::animrig::pose_asset_delete_exec().
Ensure a local copy of the asset and its direct and indirect dependencies exists. Dependencies where ID_TYPE_SUPPORTS_ASSET_EDITABLE() fails will not be made local and will be cleared.
Definition at line 582 of file asset_edit.cc.
References asset_edit_id_ensure_local(), asset_edit_id_find_local(), blender::BKE_library_foreach_ID_link(), blender::BKE_library_make_local(), blender::BKE_main_id_tag_all(), blender::BKE_main_library_weak_reference_add(), BLI_assert_unreachable, blender::BLI_ghash_free(), blender::BLI_ghash_insert(), blender::BLI_ghash_lookup(), blender::BLI_ghash_ptr_new_ex(), blender::BLI_ghashIterator_getValue(), BLI_SCOPED_DEFER, GHASH_ITER, blender::GS(), ID_IS_LINKED, blender::LibraryIDLinkCallbackData::id_pointer, blender::ID_TAG_PRE_EXISTING, ID_TYPE_SUPPORTS_ASSET_EDITABLE, blender::IDWALK_NOP, blender::IDWALK_RECURSE, blender::IDWALK_RET_NOP, blender::IDWALK_RET_STOP_RECURSION, blender::ID::name, and blender::ID::tag.
Referenced by asset_edit_id_ensure_local(), and blender::grease_pencil_object_material_ensure_from_brush_pinned().
Find a local copy of the asset.
Definition at line 573 of file asset_edit.cc.
References asset_edit_id_find_local(), asset_edit_id_is_editable(), blender::BKE_main_library_weak_reference_find(), and blender::Main::filepath.
Referenced by asset_edit_id_ensure_local(), asset_edit_id_find_local(), and blender::BKE_grease_pencil_object_material_alt_ensure_from_brush().
| ID * blender::bke::asset_edit_id_from_weak_reference | ( | Main & | global_main, |
| ID_Type | id_type, | ||
| const AssetWeakReference & | weak_ref ) |
Get datablock from weak reference, loading the blend file as needed.
Definition at line 483 of file asset_edit.cc.
References blender::AS_asset_full_path_explode_from_weak_ref(), asset_edit_id_from_weak_reference(), asset_link_id(), asset_name_in_library(), blender::BKE_libblock_find_name(), blender::BLI_assert(), FILE_MAX_LIBEXTRA, blender::Main::filepath, blender::Main::is_locked_for_linking, blender::Main::libraries, blender::bke::library::search_filepath_abs(), STREQ, and blender::which_libbase().
Referenced by asset_edit_id_from_weak_reference(), blender::BKE_paint_brush_from_essentials(), blender::BKE_paint_brush_set(), blender::ed::sculpt_paint::brush_asset_activate_exec(), blender::ed::sculpt_paint::brush_asset_save_as_exec(), blender::ed::asset_browser::AssetCatalogDropTarget::drop_assets_into_catalog(), blender::ed::asset::external_asset_rename_exec(), blender::ed::animrig::get_action_of_selected_asset(), blender::ed::sculpt_paint::greasepencil::EraseOperation::on_stroke_begin(), blender::paint_brush_update_from_asset_reference(), and blender::ed::asset::screenshot_preview_exec().
| bool blender::bke::asset_edit_id_is_editable | ( | const ID & | id | ) |
Asset editing operations.
Definition at line 563 of file asset_edit.cc.
References asset_edit_id_is_editable(), and blender::LIBRARY_ASSET_EDITABLE.
Referenced by asset_edit_id_find_local(), asset_edit_id_is_editable(), asset_edit_id_is_writable(), asset_edit_id_rename(), asset_edit_id_revert(), asset_edit_weak_reference_from_id(), blender::BKE_paint_brush_set(), blender::ed::sculpt_paint::brush_asset_revert_poll(), blender::ed::asset_browser::AssetCatalogDropTarget::drop_assets_into_catalog(), blender::ed::animrig::is_pose_asset_blend_editable(), and blender::paint_brush_update_from_asset_reference().
| bool blender::bke::asset_edit_id_is_writable | ( | const ID & | id | ) |
Definition at line 568 of file asset_edit.cc.
References asset_edit_id_is_editable(), asset_edit_id_is_writable(), and blender::LIBRARY_ASSET_FILE_WRITABLE.
Referenced by asset_edit_id_delete(), asset_edit_id_is_writable(), asset_edit_id_rename(), asset_edit_id_save(), blender::ed::sculpt_paint::brush_asset_delete_poll(), blender::ed::sculpt_paint::brush_asset_edit_metadata_poll(), blender::ed::sculpt_paint::brush_asset_save_poll(), blender::ed::asset_browser::AssetCatalogDropTarget::drop_assets_into_catalog(), blender::ed::animrig::is_pose_asset_blend_editable(), and blender::ed::asset::screenshot_preview_exec().
| bool blender::bke::asset_edit_id_rename | ( | Main & | global_main, |
| ID & | id, | ||
| StringRefNull | new_name, | ||
| const bUserAssetLibrary & | user_library, | ||
| ReportList & | reports ) |
Rename an external asset.
For non-brush assets, this also renames the .asset.blend file the asset is stored in. Brush assets have their own name-handling logic, and renaming their files can break the brush system.
Definition at line 382 of file asset_edit.cc.
References asset_edit_id_is_editable(), asset_edit_id_is_writable(), asset_edit_id_rename(), asset_edit_id_save(), asset_edit_id_save_as(), asset_edit_weak_reference_from_id(), blender::BKE_asset_weak_reference_foreach_main(), blender::BKE_id_rename(), blender::BKE_report(), blender::BKE_reportf(), blender::BLI_assert(), blender::BLI_delete_soft(), blender::StringRefNull::c_str(), blender::ID_BR, ID_IS_LINKED, blender::RenameExistingAlways, blender::result, blender::RPT_ERROR, blender::RPT_INFO, blender::RPT_WARNING, and blender::IDNewNameResult::UNCHANGED.
Referenced by asset_edit_id_rename(), and blender::ed::asset::external_asset_rename_exec().
| ID * blender::bke::asset_edit_id_revert | ( | Main & | global_main, |
| ID & | id, | ||
| ReportList & | reports ) |
Relink the asset from the library. This causes the ID to be re-allocated, so its address changes. Even in case of failure to reload the asset, id will be deleted.
Definition at line 460 of file asset_edit.cc.
References asset_edit_id_is_editable(), asset_edit_id_revert(), and asset_reload().
Referenced by asset_edit_id_revert(), and blender::ed::sculpt_paint::brush_asset_revert_exec().
| bool blender::bke::asset_edit_id_save | ( | Main & | global_main, |
| ID & | id, | ||
| ReportList & | reports ) |
Definition at line 345 of file asset_edit.cc.
References asset_edit_id_is_writable(), asset_edit_id_save(), asset_edit_weak_reference_from_id(), asset_name_in_library_set(), asset_write_in_library(), blender::BKE_asset_weak_reference_foreach_main(), blender::BKE_id_name(), blender::BKE_report(), and blender::RPT_ERROR.
Referenced by asset_edit_id_rename(), asset_edit_id_save(), blender::ed::sculpt_paint::brush_asset_edit_metadata_exec(), blender::ed::sculpt_paint::brush_asset_load_preview_exec(), blender::ed::sculpt_paint::brush_asset_save_exec(), blender::ed::asset_browser::AssetCatalogDropTarget::drop_assets_into_catalog(), blender::ed::animrig::pose_asset_modify_exec(), and blender::ed::asset::screenshot_preview_exec().
| std::optional< std::string > blender::bke::asset_edit_id_save_as | ( | Main & | global_main, |
| const ID & | id, | ||
| StringRefNull | name, | ||
| const bUserAssetLibrary & | user_library, | ||
| AssetWeakReference & | r_weak_ref, | ||
| ReportList & | reports ) |
Definition at line 319 of file asset_edit.cc.
References asset_blendfile_path_for_save(), asset_edit_id_save_as(), asset_weak_reference_for_user_library(), asset_write_in_library(), blender::BKE_report(), blender::BKE_reportf(), blender::StringRefNull::c_str(), blender::GS(), blender::RPT_ERROR, and blender::RPT_INFO.
Referenced by asset_edit_id_rename(), asset_edit_id_save_as(), blender::ed::sculpt_paint::brush_asset_save_as_exec(), and blender::ed::animrig::create_pose_asset_user_library().
| std::optional< AssetWeakReference > blender::bke::asset_edit_weak_reference_from_id | ( | const ID & | id | ) |
Get asset weak reference from ID.
Definition at line 524 of file asset_edit.cc.
References asset_edit_id_is_editable(), asset_edit_weak_reference_from_id(), blender::ASSET_LIBRARY_LOCAL, blender::AssetWeakReference::asset_library_type, asset_name_in_library(), asset_weak_reference_for_essentials(), asset_weak_reference_for_online_essentials(), asset_weak_reference_for_user_library(), blender::BKE_idtype_idcode_to_name(), blender::BKE_preferences_asset_library_containing_path(), blender::BLI_path_contains(), blender::BLI_sprintfN(), blender::GS(), blender::asset_system::online_essentials_cache_directory_path(), blender::AssetWeakReference::relative_asset_identifier, blender::bUserAssetLibrary::resolved_dirpath, and blender::U.
Referenced by asset_edit_id_rename(), asset_edit_id_save(), asset_edit_weak_reference_from_id(), blender::asset_reference_create_from_brush(), blender::BKE_paint_brush_set(), and blender::toolsystem_main_brush_binding_update_from_active().
|
static |
Definition at line 70 of file asset_edit.cc.
References asset_link_id(), asset_name_in_library_set(), blender::BKE_blendfile_link(), blender::BKE_blendfile_link_append_context_finalize(), blender::BKE_blendfile_link_append_context_flag_set(), blender::BKE_blendfile_link_append_context_free(), blender::BKE_blendfile_link_append_context_init_done(), blender::BKE_blendfile_link_append_context_item_add(), blender::BKE_blendfile_link_append_context_item_library_index_enable(), blender::BKE_blendfile_link_append_context_item_newid_get(), blender::BKE_blendfile_link_append_context_library_add(), blender::BKE_blendfile_link_append_context_new(), blender::BKE_preferences_asset_library_containing_path(), BLENDER_ASSET_FILE_SUFFIX, blender::BLI_assert(), blender::BLI_file_is_writable(), blender::BLO_LIBLINK_FORCE_INDIRECT, blender::LibraryLink_Params::bmain, blender::ID::lib, blender::LIBRARY_ASSET_EDITABLE, blender::LIBRARY_ASSET_FILE_WRITABLE, blender::LIBRARY_IS_ASSET_EDIT_FILE, blender::ID::name, blender::Library::runtime, STREQ, blender::bke::library::LibraryRuntime::tag, and blender::U.
Referenced by asset_edit_id_from_weak_reference(), asset_link_id(), and asset_reload().
|
static |
Definition at line 49 of file asset_edit.cc.
References asset_name_in_library(), blender::BKE_id_name(), and ID_IS_LINKED.
Referenced by asset_edit_id_from_weak_reference(), asset_edit_weak_reference_from_id(), asset_name_in_library(), and asset_reload().
|
static |
Definition at line 59 of file asset_edit.cc.
References asset_name_in_library_set(), blender::BKE_main_library_weak_reference_add(), blender::BLI_assert(), blender::BLI_strncpy(), ID_IS_LINKED, MAX_ID_NAME, and blender::STRNCPY().
Referenced by asset_edit_id_save(), asset_link_id(), and asset_name_in_library_set().
|
static |
Definition at line 229 of file asset_edit.cc.
References asset_link_id(), asset_name_in_library(), asset_reload(), blender::BKE_id_delete(), blender::BLI_assert(), blender::DEG_relations_tag_update(), blender::GS(), and ID_IS_LINKED.
Referenced by asset_edit_id_revert(), and asset_reload().
|
static |
Definition at line 120 of file asset_edit.cc.
References asset_root_path_for_save(), blender::BKE_idtype_get_info_from_idcode(), blender::BLI_assert(), blender::BLI_path_normalize(), blender::BLI_path_slash_native(), blender::BLI_path_slash_rstrip(), blender::BLI_toupper_ascii(), FILE_MAX, blender::IDTypeInfo::name_plural, blender::bUserAssetLibrary::resolved_dirpath, blender::SEP, and blender::STRNCPY().
Referenced by asset_blendfile_path_for_save(), and asset_root_path_for_save().
|
static |
Definition at line 299 of file asset_edit.cc.
References blender::ASSET_LIBRARY_ESSENTIALS, blender::AssetWeakReference::asset_library_type, asset_weak_reference_for_essentials(), blender::BKE_idtype_idcode_to_name(), blender::BKE_idtype_idcode_to_name_plural(), blender::BLI_assert(), blender::BLI_path_basename(), blender::BLI_path_contains(), blender::BLI_path_is_abs_from_cwd(), blender::BLI_path_is_rel(), blender::BLI_sprintfN(), blender::asset_system::online_essentials_cache_directory_path(), and blender::AssetWeakReference::relative_asset_identifier.
Referenced by asset_edit_weak_reference_from_id(), and asset_weak_reference_for_essentials().
|
static |
Definition at line 274 of file asset_edit.cc.
References blender::ASSET_LIBRARY_ONLINE_ESSENTIALS, blender::AssetWeakReference::asset_library_type, asset_weak_reference_for_online_essentials(), blender::BKE_idtype_idcode_to_name(), blender::BLI_assert(), blender::BLI_path_contains(), blender::BLI_path_is_abs_from_cwd(), blender::BLI_path_is_rel(), blender::BLI_path_rel(), blender::BLI_path_slash_ensure(), blender::BLI_sprintfN(), FILE_MAX, FILE_MAXDIR, blender::asset_system::online_essentials_cache_directory_path(), blender::AssetWeakReference::relative_asset_identifier, and blender::STRNCPY().
Referenced by asset_edit_weak_reference_from_id(), and asset_weak_reference_for_online_essentials().
|
static |
Definition at line 248 of file asset_edit.cc.
References blender::ASSET_LIBRARY_CUSTOM, blender::AssetWeakReference::asset_library_identifier, blender::AssetWeakReference::asset_library_type, asset_weak_reference_for_user_library(), blender::BKE_idtype_idcode_to_name(), blender::BLI_path_rel(), blender::BLI_path_slash_ensure(), blender::BLI_sprintfN(), blender::BLI_strdup(), FILE_MAX, blender::bUserAssetLibrary::name, blender::AssetWeakReference::relative_asset_identifier, blender::bUserAssetLibrary::resolved_dirpath, and blender::STRNCPY().
Referenced by asset_edit_id_save_as(), asset_edit_weak_reference_from_id(), and asset_weak_reference_for_user_library().
|
static |
Definition at line 184 of file asset_edit.cc.
References blender::bke::blendfile::PartialWriteContext::ADD_DEPENDENCIES, asset_write_in_library(), blender::BKE_idtype_get_info_from_id(), blender::BKE_libblock_rename(), blender::BKE_packedfile_pack_all(), blender::BKE_reportf(), blender::BLI_assert(), blender::BLO_WRITE_PATH_REMAP_RELATIVE, blender::bke::blendfile::PartialWriteContext::bmain, blender::StringRefNull::c_str(), blender::G_FILE_ASSET_EDIT_FILE, blender::G_FILE_COMPRESS, blender::bke::blendfile::PartialWriteContext::id_add(), ID_IS_PACKED, blender::Main::is_asset_edit_file, blender::bke::blendfile::PartialWriteContext::MAKE_LOCAL, blender::IDTypeInfo::name, blender::RPT_ERROR, blender::SEP, blender::bke::blendfile::PartialWriteContext::SET_FAKE_USER, and blender::bke::blendfile::PartialWriteContext::write().
Referenced by asset_edit_id_save(), asset_edit_id_save_as(), and asset_write_in_library().
| std::optional< eCustomDataType > blender::bke::attr_type_to_custom_data_type | ( | AttrType | attr_type | ) |
Convert an attribute type to a legacy custom data type.
Definition at line 193 of file attribute_legacy_convert.cc.
References attr_type_to_custom_data_type(), Bool, blender::CD_PROP_BOOL, blender::CD_PROP_BYTE_COLOR, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT2, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT16_2D, blender::CD_PROP_INT32, blender::CD_PROP_INT32_2D, blender::CD_PROP_INT8, blender::CD_PROP_QUATERNION, blender::CD_PROP_STRING, ColorByte, ColorFloat, Float, Float2, Float3, Float4, Float4x4, Int16_2D, Int32, Int32_2D, Int8, Quaternion, and String.
Referenced by attr_type_to_custom_data_type(), blender::draw::pbvh::attribute_format(), blender::ed::space_node::attribute_search_exec_fn(), blender::ui::attribute_search_item_add(), blender::BKE_attribute_from_index(), blender::BKE_attribute_to_index(), blender::BKE_attributes_length(), blender::BM_mesh_copy_init_customdata_from_mesh_array(), blender::bm_to_mesh_copy_info_calc(), blender::ed::geometry::geometry_attribute_convert_invoke(), blender::ed::geometry::geometry_color_attribute_convert_invoke(), blender::get_mesh_to_bm_custom_data(), blender::bke::bake::serialize_attributes(), blender::um_arraystore_cd_create(), and blender::um_arraystore_cd_expand().
|
static |
Definition at line 953 of file geometry_fields.cc.
References attribute, attribute_data_matches_varray(), blender::CommonVArrayInfo::data, blender::CommonVArrayInfo::Span, and blender::CommonVArrayInfo::type.
Referenced by attribute_data_matches_varray(), and try_capture_fields_on_geometry().
|
static |
Definition at line 243 of file attribute_access.cc.
References attribute_data_type_complexity(), BLI_assert_unreachable, Bool, ColorByte, ColorFloat, Float, Float2, Float3, Float4, Float4x4, Int16_2D, Int32, Int32_2D, Int8, Quaternion, and String.
Referenced by attribute_data_type_complexity(), and attribute_data_type_highest_complexity().
Definition at line 283 of file attribute_access.cc.
References attribute_data_type_complexity(), attribute_data_type_highest_complexity(), and ColorFloat.
Referenced by blender::bke::GeometrySet::GatheredAttributes::add(), and attribute_data_type_highest_complexity().
| AttrDomain blender::bke::attribute_domain_highest_priority | ( | Span< AttrDomain > | domains | ) |
Domains with a higher "information density" have a higher priority, in order to choose a domain that will not lose data through domain conversion.
Definition at line 327 of file attribute_access.cc.
References attribute_domain_highest_priority(), attribute_domain_priority(), and Corner.
Referenced by blender::bke::GeometrySet::GatheredAttributes::add(), and attribute_domain_highest_priority().
|
static |
Definition at line 303 of file attribute_access.cc.
References attribute_domain_priority(), BLI_assert_unreachable, Corner, Curve, Edge, Face, Instance, Layer, and Point.
Referenced by attribute_domain_highest_priority(), and attribute_domain_priority().
|
inline |
Same as above but with a Set.
Definition at line 77 of file BKE_attribute_filters.hh.
References blender::bke::AttributeFilter::AllowSkip, attribute_filter_from_skip_ref(), blender::bke::AttributeFilterFromFunc< Fn >::AttributeFilterFromFunc(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), and blender::bke::AttributeFilter::Process.
Creates a simple AttributeFilter that skips allows the given attributes to be skipped, while all others should be processed.
Definition at line 66 of file BKE_attribute_filters.hh.
References blender::bke::AttributeFilter::AllowSkip, attribute_filter_from_skip_ref(), blender::bke::AttributeFilterFromFunc< Fn >::AttributeFilterFromFunc(), blender::Span< T >::contains(), and blender::bke::AttributeFilter::Process.
Referenced by blender::geometry::add_curves_on_mesh(), blender::ed::curves::pen_tool::add_single_point_and_curve(), attribute_filter_from_skip_ref(), attribute_filter_from_skip_ref(), blender::BKE_mesh_to_pointcloud(), blender::BKE_pointcloud_to_mesh(), blender::ed::curves::copy_data_to_geometry(), blender::ed::greasepencil::boolean::create_curves_from_segments(), blender::create_dashes(), blender::create_envelope_strokes(), blender::ed::curves::curves_draw_exec(), blender::ed::curves::pen_tool::extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), blender::ed::greasepencil::grease_pencil_primitive_init_curves(), blender::ed::greasepencil::grease_pencil_primitive_update_curves(), blender::ed::curves::pen_tool::insert_point_to_curve(), blender::geometry::join_curves_ranges(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), blender::geometry::remove_points_and_split(), and blender::ed::sculpt_paint::set_fill_attributes().
|
inline |
Same as above but with a Set.
Definition at line 52 of file BKE_attribute_filters.hh.
References blender::bke::AttributeFilter::AllowSkip, attribute_filter_with_skip_ref(), blender::bke::AttributeFilterFromFunc< Fn >::AttributeFilterFromFunc(), and blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as().
|
inline |
Combines an existing AttributeFilter and tags a few additional attributes that can/should be skipped.
Definition at line 39 of file BKE_attribute_filters.hh.
References blender::bke::AttributeFilter::AllowSkip, attribute_filter_with_skip_ref(), blender::bke::AttributeFilterFromFunc< Fn >::AttributeFilterFromFunc(), and blender::Span< T >::contains().
Referenced by attribute_filter_with_skip_ref(), attribute_filter_with_skip_ref(), blender::geometry::copy_and_reorder_mesh_edges(), blender::geometry::copy_and_reorder_mesh_verts(), blender::nodes::node_geo_duplicate_elements_cc::copy_curve_attributes_without_id(), blender::nodes::node_geo_duplicate_elements_cc::copy_edge_attributes_without_id(), blender::nodes::node_geo_duplicate_elements_cc::copy_face_attributes_without_id(), blender::geometry::create_merged_mesh(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_instances(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_CurvesGeometry(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_mesh(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_pointcloud(), blender::geometry::extract_instances(), blender::geometry::fillet_curves(), blender::geometry::filter_builtin_attributes(), blender::geometry::gather_vert_attributes(), blender::geometry::mesh_copy_selection(), blender::geometry::mesh_copy_selection_keep_verts(), blender::geometry::mesh_triangulate(), and blender::geometry::trim_curves().
| Attribute::DataVariant blender::bke::attribute_init_to_data | ( | const bke::AttrType | data_type, |
| const int64_t | domain_size, | ||
| const AttributeInit & | initializer, | ||
| const bool | require_array_data ) |
Definition at line 80 of file attribute_storage_access.cc.
References attribute_init_to_data(), attribute_type_to_cpp_type(), blender::BLI_assert(), BLI_assert_unreachable, blender::GVArrayCommon::common_info(), blender::bke::AttributeInit::Construct, blender::CommonVArrayInfo::data, blender::data, blender::bke::AttributeInit::DefaultValue, blender::bke::Attribute::ArrayData::from_constructed(), blender::bke::Attribute::ArrayData::from_default_value(), blender::bke::Attribute::ArrayData::from_uninitialized(), blender::bke::Attribute::ArrayData::from_value(), blender::bke::Attribute::SingleData::from_value(), blender::GPointer::GPointer(), blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr, blender::GVArrayCommon::index_range(), blender::bke::subdiv::init(), blender::GVArrayCommon::materialize_to_uninitialized(), blender::bke::AttributeInit::Shared, blender::CommonVArrayInfo::Single, blender::GVArrayCommon::size(), blender::bke::AttributeInit::type, blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), blender::bke::AttributeInit::Value, and blender::bke::AttributeInit::VArray.
Referenced by attribute_init_to_data(), blender::bke::curves::get_curves_accessor_functions(), blender::bke::greasepencil::get_grease_pencil_accessor_functions(), get_instances_accessor_functions(), get_mesh_accessor_functions(), and get_pointcloud_accessor_functions().
| bool blender::bke::attribute_is_builtin_on_component_type | ( | const GeometryComponent::Type | type, |
| StringRef | name ) |
Definition at line 675 of file geometry_set.cc.
References attribute_is_builtin_on_component_type(), BLI_assert_unreachable, blender::bke::GeometryComponent::create(), blender::bke::GeometryComponent::Curve, blender::bke::GeometryComponent::Edit, blender::bke::GeometryComponent::GreasePencil, blender::bke::GeometryComponent::Instance, blender::bke::GeometryComponent::Mesh, blender::bke::GeometryComponent::PointCloud, and blender::bke::GeometryComponent::Volume.
Referenced by attribute_is_builtin_on_component_type(), and blender::geometry::gather_attributes_to_propagate().
|
static |
Definition at line 915 of file geometry_fields.cc.
References attribute_kind_matches(), blender::bke::AttributeMetaData::data_type, and blender::bke::AttributeMetaData::domain.
Referenced by attribute_kind_matches(), and try_add_shared_field_attribute().
|
static |
Move generic attributes from CustomData to AttributeStorage. All other non-generic layers are left in CustomData.
Definition at line 131 of file attribute_legacy_convert.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), attribute, attribute_legacy_convert_customdata_to_storage(), custom_data_type_to_attr_type(), blender::CustomData_update_typemap(), blender::bke::Attribute::ArrayData::data, blender::data, blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), layer, blender::CustomData::layers, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default(), blender::MutableSpan< T >::MutableSpan(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop_default(), blender::Vector< T, InlineBufferCapacity, Allocator >::release(), blender::bke::Attribute::ArrayData::sharing_info, blender::bke::Attribute::ArrayData::size, storage, and blender::CustomData::totlayer.
Referenced by attribute_legacy_convert_customdata_to_storage(), curves_convert_customdata_to_storage(), grease_pencil_convert_customdata_to_storage(), mesh_convert_customdata_to_storage(), and pointcloud_convert_customdata_to_storage().
|
inline |
Checks if the attribute name has the .a_ prefix which indicates that it is an anonymous attribute. I.e. it is just internally used by Blender and the name should not be exposed to the user.
Use hash_to_anonymous_attribute_name to generate names for anonymous attributes.
Definition at line 24 of file BKE_anonymous_attribute_id.hh.
References attribute_name_is_anonymous(), and blender::blender::StringRefBase::startswith().
Referenced by attribute_name_is_anonymous(), blender::BKE_attribute_from_index(), blender::BKE_attribute_to_index(), blender::BKE_attributes_length(), blender::nodes::node_geo_attribute_capture_cc::clean_unused_attributes(), blender::bke::bake::RuntimeToBakeValue::convert(), blender::CustomData_number_of_anonymous_layers(), blender::io::usd::USDPointInstancerWriter::do_write(), blender::bke::ProcessAllAttributeExceptAnonymous::filter(), blender::nodes::NodeAttributeFilter::filter(), blender::geometry::gather_curve_attributes_to_interpolate(), blender::nodes::LazyFunctionForExtractingReferenceSet::gather_references_from_field(), blender::nodes::eval_log::GeometryInfoLog::GeometryInfoLog(), get_blender_uv_names(), blender::bke::AttributeAccessor::has_anonymous(), blender::bke::compare_geometry::ignored_attribute(), blender::io::csv::import_csv_as_pointcloud(), blender::geometry::interpolate_attribute_to_curves(), blender::io::ply::load_custom_attributes(), blender::io::ply::load_vertex_element(), mesh_ensure_default_color_attribute_on_add(), mesh_ensure_default_uv_attribute_on_add(), blender::draw::mesh_extract_uv_format_init(), blender::nodes::node_geo_input_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::bke::MutableAttributeAccessor::remove_anonymous(), blender::nodes::node_geo_remove_attribute_cc::remove_attributes(), and blender::bke::bake::serialize_attributes().
| bool blender::bke::attribute_reader_matches_array_state | ( | const ArrayState< T > & | array_state, |
| const AttributeReader< T > & | attr ) |
Definition at line 26 of file mesh_topology_state.cc.
References attribute_reader_matches_array_state(), blender::ArrayState< T >::is_empty(), blender::ArrayState< T >::same_as(), blender::bke::AttributeReader< T >::sharing_info, and blender::bke::AttributeReader< T >::varray.
Referenced by attribute_reader_matches_array_state(), and blender::bke::MeshTopologyState::same_topology_as().
| ArrayState< T > blender::bke::attribute_reader_to_array_state | ( | const AttributeReader< T > & | attr | ) |
Definition at line 17 of file mesh_topology_state.cc.
References attribute_reader_to_array_state(), blender::bke::AttributeReader< T >::sharing_info, and blender::bke::AttributeReader< T >::varray.
Referenced by attribute_reader_to_array_state(), and blender::bke::MeshTopologyState::MeshTopologyState().
| void blender::bke::attribute_storage_blend_write_prepare | ( | AttributeStorage & | data, |
| bool | use_5_0_compatibility, | ||
| FunctionRef< int(AttrDomain)> | get_domain_size, | ||
| AttributeStorage::BlendWriteData & | write_data ) |
Prepare an AttributeStorage struct embedded in another struct to be written. This is necessary because the AttributeStorage implementation doesn't use the DNA structs at runtime, they are created just for the writing process. Creating them mutates the struct, which must be done before writing the struct that embeds it.
| use_5_0_compatibility | If true, the attribute storage will be written in a way that is compatible with Blender 5.0. |
Definition at line 599 of file attribute_storage.cc.
References Array, attribute_storage_blend_write_prepare(), attribute_type_to_cpp_type(), blender::bke::AttributeStorage::BlendWriteData::attributes, blender::ResourceScope::construct(), blender::AttributeArray::data, blender::AttributeSingle::data, blender::bke::Attribute::data(), blender::data, blender::bke::Attribute::data_type(), blender::bke::Attribute::domain(), blender::bke::Attribute::ArrayData::from_value(), blender::BlendWriter::generated_pointer_tag(), get_domain_size(), blender::bke::Attribute::name(), blender::bke::AttributeStorage::BlendWriteData::scope, Single, blender::bke::Attribute::storage_type(), and blender::bke::AttributeStorage::BlendWriteData::writer.
Referenced by attribute_storage_blend_write_prepare(), blender::bke::CurvesGeometry::blend_write_prepare(), blender::grease_pencil_blend_write(), blender::mesh_blend_write(), and blender::pointcloud_blend_write().
| GAttributeReader blender::bke::attribute_to_reader | ( | const Attribute & | attribute, |
| const AttrDomain | domain, | ||
| const int64_t | domain_size ) |
Definition at line 21 of file attribute_storage_access.cc.
References Array, attribute, attribute_to_reader(), attribute_type_to_cpp_type(), BLI_assert_unreachable, blender::data, blender::GVArray::from_single_ref(), blender::GVArray::from_span(), blender::GSpan::GSpan(), and Single.
Referenced by attribute_to_reader(), blender::bke::curves::get_curves_accessor_functions(), blender::bke::greasepencil::get_grease_pencil_accessor_functions(), get_instances_accessor_functions(), get_mesh_accessor_functions(), and get_pointcloud_accessor_functions().
| GAttributeWriter blender::bke::attribute_to_writer | ( | void * | owner, |
| const Map< StringRef, AttrUpdateOnChange > & | changed_tags, | ||
| const int64_t | domain_size, | ||
| Attribute & | attribute ) |
Definition at line 44 of file attribute_storage_access.cc.
References Array, attribute, attribute_to_writer(), attribute_type_to_cpp_type(), blender::BLI_assert(), BLI_assert_unreachable, blender::data, blender::GVMutableArray::from_span(), blender::bke::Attribute::ArrayData::from_value(), blender::GMutableSpan::GMutableSpan(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), and Single.
Referenced by attribute_to_writer(), blender::bke::curves::get_curves_accessor_functions(), blender::bke::greasepencil::get_grease_pencil_accessor_functions(), get_instances_accessor_functions(), get_mesh_accessor_functions(), and get_pointcloud_accessor_functions().
Definition at line 44 of file attribute_access.cc.
References attribute_type_to_cpp_type(), BLI_assert_unreachable, Bool, ColorByte, ColorFloat, Float, Float2, Float3, Float4, Float4x4, blender::CPPType::get(), Int16_2D, Int32, Int32_2D, Int8, Quaternion, and String.
Referenced by adapt_domain_and_type_if_necessary(), blender::geometry::add_instance_attributes_to_single_geometry(), attribute_init_to_data(), attribute_storage_blend_write_prepare(), attribute_to_reader(), attribute_to_writer(), attribute_type_to_cpp_type(), blender::AttrSingleValueChecker::AttrSingleValueChecker(), blender::bm_to_mesh_copy_info_calc(), copy_attributes_group_to_group(), blender::ed::greasepencil::copy_layer_and_frames_to_target_object(), blender::bke::AttributeStorage::count_memory(), blender::bke::Attribute::data_for_write(), blender::nodes::node_geo_tool_selection_cc::EditSelectionFieldInput::EditSelectionFieldInput(), ensure_array_storage(), blender::geometry::fill_new_attribute(), blender::ed::geometry::geometry_attribute_add_exec(), blender::nodes::node_geo_tool_selection_cc::get_selection_field(), blender::bke::LegacyMeshInterpolator::LegacyMeshInterpolator(), blender::bke::AttributeAccessor::lookup_or_default(), mesh_calc_edges(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::ed::mesh::set_attribute::mesh_set_attribute_invoke(), blender::mesh_to_bm_copy_info_calc(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::geometry::prepare_attribute_fallbacks(), read_attr_data(), read_shared_array(), remove_invalid_edges(), remove_invalid_faces(), blender::geometry::reorder_attribute_domain(), blender::reorder_attribute_domain(), blender::geometry::reorder_attribute_groups(), blender::bke::AttributeStorage::resize(), blender::ed::geometry::rna_property_for_attribute_type_retrieve_value(), blender::bke::bake::BakeToRuntimeValue::scan(), blender::nodes::node_geo_tool_selection_cc::SculptSelectionFieldInput::SculptSelectionFieldInput(), blender::ed::curves::set_attribute_exec(), blender::ed::pointcloud::set_attribute_exec(), blender::shrink_attribute_storage(), blender::bke::attribute_math::to_static_type(), blender::geometry::try_join_single_value_attribute(), and write_shared_array().
|
static |
Definition at line 199 of file armature_deform.cc.
References b_bone_deform(), blender::BKE_pchan_bbone_deform_segment_index(), and blender::bke::PChanBoneT< PoseChannelT, BoneT >::pchan.
Referenced by b_bone_deform(), dist_bone_deform(), and pchan_bone_deform().
| void blender::bke::BKE_action_find_fcurves_with_bones | ( | bAction * | action, |
| animrig::slot_handle_t | slot_handle, | ||
| FoundFCurveCallback | callback ) |
Calls callback for every fcurve in an action slot that targets any bone.
| slot_handle | only FCurves from the given action slot are visited. |
Definition at line 21 of file action_bones.cc.
References BKE_action_find_fcurves_with_bones().
Referenced by BKE_action_find_fcurves_with_bones(), BKE_action_find_fcurves_with_bones(), blender::pose_backup_create(), and blender::poselib_keytag_pose().
| void blender::bke::BKE_action_find_fcurves_with_bones | ( | const bAction * | action, |
| animrig::slot_handle_t | slot_handle, | ||
| FoundFCurveCallbackConst | callback ) |
Definition at line 32 of file action_bones.cc.
References BKE_action_find_fcurves_with_bones(), blender::BLI_str_quoted_substr(), blender::animrig::fcurves_for_action_slot(), and MAXBONENAME.
| BoneNameSet blender::bke::BKE_armature_find_selected_bone_names | ( | const bArmature * | armature | ) |
Return a set of names of the selected bones.
Definition at line 53 of file armature_selection.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), BKE_armature_find_selected_bone_names(), and BKE_armature_find_selected_bones().
Referenced by BKE_armature_find_selected_bone_names().
| SelectedBonesResult blender::bke::BKE_armature_find_selected_bones | ( | const bArmature * | armature, |
| SelectedBoneCallback | callback ) |
Definition at line 42 of file armature_selection.cc.
References BKE_armature_find_selected_bones(), blender::bArmature::bonebase, and blender::result.
Referenced by BKE_armature_find_selected_bone_names(), BKE_armature_find_selected_bones(), blender::bke::tests::TEST_F(), blender::bke::tests::TEST_F(), and blender::bke::tests::TEST_F().
| BoneNameSet blender::bke::BKE_pose_channel_find_selected_names | ( | const Object * | object | ) |
Definition at line 63 of file armature_selection.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::BKE_armature_from_object(), BKE_pose_channel_find_selected_names(), blender::BLI_assert(), blender::animrig::bone_is_selected(), and blender::bPoseChannel::name.
Referenced by blender::BKE_pose_backup_create_selected_bones(), and BKE_pose_channel_find_selected_names().
|
static |
Definition at line 513 of file type_conversions.cc.
References bool_to_byte_color(), bool_to_color(), and blender::color::encode().
Referenced by bool_to_byte_color().
|
static |
Definition at line 509 of file type_conversions.cc.
References bool_to_color().
Referenced by bool_to_byte_color(), and bool_to_color().
|
static |
Definition at line 473 of file type_conversions.cc.
References bool_to_float(), and float.
Referenced by bool_to_float().
|
static |
Definition at line 497 of file type_conversions.cc.
References bool_to_float2().
Referenced by bool_to_float2().
|
static |
Definition at line 501 of file type_conversions.cc.
References bool_to_float3().
Referenced by bool_to_float3().
|
static |
Definition at line 505 of file type_conversions.cc.
References bool_to_float4().
Referenced by bool_to_float4().
|
static |
Definition at line 481 of file type_conversions.cc.
References bool_to_int().
Referenced by bool_to_int().
|
static |
Definition at line 489 of file type_conversions.cc.
References bool_to_int2().
Referenced by bool_to_int2().
|
static |
Definition at line 493 of file type_conversions.cc.
References bool_to_int3().
Referenced by bool_to_int3().
|
static |
Definition at line 477 of file type_conversions.cc.
References bool_to_int8().
Referenced by bool_to_int8().
|
static |
Definition at line 485 of file type_conversions.cc.
References bool_to_short2().
Referenced by bool_to_short2().
|
static |
Definition at line 2407 of file blenkernel/intern/sound.cc.
References bspline_interpolation().
Referenced by bspline_interpolation(), and blender::bke::bSoundFrequencySampler::sample().
|
static |
Definition at line 548 of file curve_to_mesh_convert.cc.
References blender::bke::CurvesGeometry::attributes(), blender::BLI_assert(), build_mesh_positions(), blender::array_utils::copy(), blender::CURVE_TYPE_NURBS, blender::GSpan::data(), evaluate_attribute(), blender::bke::CurvesGeometry::evaluated_normals(), blender::bke::CurvesGeometry::evaluated_positions(), blender::bke::CurvesGeometry::evaluated_tangents(), fill_mesh_positions(), blender::Span< T >::first(), foreach_curve_combination(), blender::VArrayCommon< T >::get_if_single(), blender::GVArrayCommon::get_internal_span(), blender::bke::CurvesGeometry::has_curve_with_type(), blender::bke::subdiv::init(), blender::Span< T >::is_empty(), blender::VArrayCommon< T >::is_empty(), blender::math::is_equal(), blender::GVArrayCommon::is_span(), blender::bke::AttributeAccessor::lookup(), blender::bke::CurvesInfo::main, blender::bke::CombinationInfo::main_cyclic, blender::bke::CombinationInfo::main_points, Point, blender::bke::CurvesGeometry::points_num(), blender::bke::CurvesInfo::profile, blender::bke::CombinationInfo::profile_points, blender::bke::GAttributeReader::sharing_info, blender::Span< T >::size(), blender::Span< T >::slice(), blender::GSpan::typed(), blender::bke::GAttributeReader::varray, and blender::bke::CombinationInfo::vert_range.
Referenced by build_mesh_positions(), and curve_to_mesh_sweep().
| void blender::bke::build_offsets | ( | MutableSpan< int > | offsets, |
| const CountFn & | count_fn ) |
Definition at line 682 of file curves_geometry.cc.
References build_offsets(), blender::MutableSpan< T >::drop_back(), blender::MutableSpan< T >::index_range(), and blender::MutableSpan< T >::last().
Referenced by build_offsets(), and calculate_evaluated_offsets().
|
static |
Definition at line 2668 of file blenkernel/intern/paint.cc.
References blender::bm, blender::SculptSession::bm, blender::BM_data_layer_ensure_named(), build_pbvh_for_dynamic_topology(), blender::CD_PROP_INT32, blender::bke::pbvh::Tree::from_bmesh(), blender::BMesh::pdata, blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, and blender::BMesh::vdata.
Referenced by build_pbvh_for_dynamic_topology(), and blender::bke::object::pbvh_ensure().
|
static |
Definition at line 2691 of file blenkernel/intern/paint.cc.
References blender::BKE_mesh_from_object(), blender::BKE_sculpt_sync_face_visibility_to_grids(), build_pbvh_from_ccg(), and blender::bke::pbvh::Tree::from_grids().
Referenced by build_pbvh_from_ccg(), and blender::bke::object::pbvh_ensure().
|
static |
Definition at line 2677 of file blenkernel/intern/paint.cc.
References blender::BKE_object_get_original_mesh(), blender::BKE_pbvh_vert_coords_apply(), build_pbvh_from_regular_mesh(), blender::check_sculpt_object_deformed(), and blender::bke::pbvh::Tree::from_mesh().
Referenced by build_pbvh_from_regular_mesh(), and blender::bke::object::pbvh_ensure().
|
static |
Definition at line 189 of file curve_to_mesh_convert.cc.
References build_point_matrix(), blender::math::cross(), blender::MatBase< float, 4, 4 >::identity(), blender::MatBase< T, NumCol, NumRow, Alignment >::location(), blender::math::normalize(), blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::z_axis().
Referenced by build_point_matrix(), build_point_matrix(), build_point_matrix_miter_scale(), and fill_mesh_positions().
|
static |
Definition at line 228 of file curve_to_mesh_convert.cc.
References build_point_matrix(), build_point_matrix_miter_scale(), blender::Span< T >::is_empty(), blender::math::scale(), and blender::Span< T >::size().
|
static |
Definition at line 202 of file curve_to_mesh_convert.cc.
References build_point_matrix(), build_point_matrix_miter_scale(), blender::math::dot(), blender::math::min(), blender::math::normalize(), blender::math::normalize_and_get_length(), scale(), blender::math::sqrt(), blender::MatBase< T, NumCol, NumRow, Alignment >::x_axis(), and blender::MatBase< T, NumCol, NumRow, Alignment >::y_axis().
Referenced by build_point_matrix(), and build_point_matrix_miter_scale().
|
static |
Definition at line 2180 of file mesh_legacy_convert.cc.
References build_socket_indices(), node, and blender::result.
Referenced by build_socket_indices(), and is_auto_smooth_node_tree().
|
static |
Definition at line 799 of file blenkernel/intern/mesh.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), build_vertex_groups_for_leaves(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::offset_indices::OffsetIndices< T >::is_empty(), blender::threading::parallel_for(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by build_vertex_groups_for_leaves(), and compute_local_mesh_groups().
|
static |
Indices into Instances::references_. Determines what data is instanced.
Definition at line 29 of file instances_attributes.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), builtin_attributes(), blender::bke::AttrBuiltinInfo::deletable, Float4x4, Instance, and Int32.
Referenced by builtin_attributes(), and get_instances_accessor_functions().
|
static |
Definition at line 778 of file mesh_attributes.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), Bool, builtin_attributes(), Corner, Edge, Face, Float3, Int32, Int32_2D, blender::math::max(), Point, position, and blender::bke::AttrBuiltinInfo::validator.
Referenced by builtin_attributes(), and get_mesh_accessor_functions().
|
static |
Definition at line 37 of file pointcloud_attributes.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), builtin_attributes(), Float, Float3, Point, and position.
Referenced by builtin_attributes(), and get_pointcloud_accessor_functions().
| BVHTreeFromMesh blender::bke::bvhtree_from_mesh_corner_tris_ex | ( | Span< float3 > | vert_positions, |
| OffsetIndices< int > | faces, | ||
| Span< int > | corner_verts, | ||
| Span< int3 > | corner_tris, | ||
| const IndexMask & | faces_mask, | ||
| bool | map_global_indices = true ) |
Builds a BVH-tree where nodes are the triangle faces (#Mesh::corner_tris()) of the given mesh.
| map_global_indices | Record and later return the indices from the full mesh rather than the index in the masked faces. |
Definition at line 562 of file bvhutils.cc.
References bvhtree_from_mesh_corner_tris_ex(), create_tree_from_tris(), and create_tris_tree_data().
Referenced by blender::BKE_mesh_remap_calc_loops_from_mesh(), bvhtree_from_mesh_corner_tris_ex(), blender::ed::transform::SnapTargetTreesEditMesh::corner_tris(), blender::bke::bvh::Tree::from_single_mesh(), and blender::bke::bvh::Tree::from_tris().
| BVHTreeFromMesh blender::bke::bvhtree_from_mesh_edges_ex | ( | Span< float3 > | vert_positions, |
| Span< int2 > | edges, | ||
| const IndexMask & | edges_mask ) |
Builds a BVH-tree where nodes are the given edges.
Definition at line 477 of file bvhutils.cc.
References bvhtree_from_mesh_edges_ex(), create_edges_tree_data(), and create_tree_from_edges().
Referenced by bvhtree_from_mesh_edges_ex(), blender::bke::bvh::Tree::from_edges(), and blender::ed::transform::SnapTargetTreesEditMesh::loose_edges().
| BVHTreeFromMesh blender::bke::bvhtree_from_mesh_verts_ex | ( | Span< float3 > | vert_positions, |
| const IndexMask & | verts_mask ) |
Builds a BVH-tree where nodes are the given vertices.
Definition at line 452 of file bvhutils.cc.
References bvhtree_from_mesh_verts_ex(), create_tree_from_verts(), and create_verts_tree_data().
Referenced by bvhtree_from_mesh_verts_ex(), blender::bke::bvh::Tree::from_points(), and blender::ed::transform::SnapTargetTreesEditMesh::loose_verts().
|
static |
Definition at line 431 of file bvhutils.cc.
References blender::BLI_bvhtree_new(), and bvhtree_new_common().
Referenced by bvhtree_new_common(), create_tree_from_edges(), create_tree_from_legacy_faces(), create_tree_from_tris(), create_tree_from_tris(), and create_tree_from_verts().
| float blender::bke::bvhtree_ray_tri_intersection | ( | const BVHTreeRay * | ray, |
| float | m_dist, | ||
| const float | v0[3], | ||
| const float | v1[3], | ||
| const float | v2[3] ) |
Math functions used by callbacks
Definition at line 30 of file bvhutils.cc.
References bvhtree_ray_tri_intersection(), blender::BVHTreeRay::direction, FLT_EPSILON, FLT_MAX, blender::BVHTreeRay::isect_precalc, blender::isect_ray_tri_epsilon_v3(), blender::isect_ray_tri_watertight_v3(), blender::BVHTreeRay::origin, and blender::v2.
Referenced by bvhtree_ray_tri_intersection(), blender::ed::transform::mesh_corner_tris_raycast_backface_culling_cb(), mesh_corner_tris_spherecast(), mesh_faces_spherecast(), and blender::py_bvhtree_raycast_cb().
| float blender::bke::bvhtree_sphereray_tri_intersection | ( | const BVHTreeRay * | ray, |
| float | radius, | ||
| float | m_dist, | ||
| const float | v0[3], | ||
| const float | v1[3], | ||
| const float | v2[3] ) |
Definition at line 51 of file bvhutils.cc.
References bvhtree_sphereray_tri_intersection(), blender::BVHTreeRay::direction, FLT_MAX, blender::isect_sweeping_sphere_tri_v3(), blender::madd_v3_v3v3fl(), blender::BVHTreeRay::origin, and blender::v2.
Referenced by bvhtree_sphereray_tri_intersection(), mesh_corner_tris_spherecast(), mesh_faces_spherecast(), and blender::py_bvhtree_raycast_cb().
|
static |
Definition at line 563 of file type_conversions.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, byte_color_to_bool(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by byte_color_to_bool().
|
static |
Definition at line 603 of file type_conversions.cc.
References byte_color_to_color(), and blender::color::decode().
Referenced by byte_color_to_color().
|
static |
Definition at line 567 of file type_conversions.cc.
References byte_color_to_float(), color_to_float(), and blender::color::decode().
Referenced by byte_color_to_float().
|
static |
Definition at line 591 of file type_conversions.cc.
References byte_color_to_float2(), color_to_float2(), and blender::color::decode().
Referenced by byte_color_to_float2().
|
static |
Definition at line 595 of file type_conversions.cc.
References byte_color_to_float3(), color_to_float3(), and blender::color::decode().
Referenced by byte_color_to_float3().
|
static |
Definition at line 599 of file type_conversions.cc.
References byte_color_to_float4(), color_to_float4(), and blender::color::decode().
Referenced by byte_color_to_float4().
|
static |
Definition at line 571 of file type_conversions.cc.
References byte_color_to_int(), color_to_int(), and blender::color::decode().
Referenced by byte_color_to_int().
|
static |
Definition at line 579 of file type_conversions.cc.
References byte_color_to_int2(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by byte_color_to_int2().
|
static |
Definition at line 583 of file type_conversions.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, byte_color_to_int3(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by byte_color_to_int3().
|
static |
Definition at line 587 of file type_conversions.cc.
References byte_color_to_int8(), color_to_int8(), and blender::color::decode().
Referenced by byte_color_to_int8().
|
static |
Definition at line 575 of file type_conversions.cc.
References byte_color_to_short2(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by byte_color_to_short2().
|
static |
Definition at line 679 of file mesh_data_update.cc.
References blender::BKE_editmesh_bmesh_get(), blender::BKE_editmesh_eval_orig_map_available(), blender::BKE_mesh_wrapper_from_editmesh(), blender::BKE_modifiers_findby_type(), blender::BLI_assert(), blender::bm, blender::BM_mesh_vert_coords_alloc(), cage_mesh_or_fallback(), blender::CD_ORIGINDEX, blender::CustomData_has_layer(), blender::bke::MeshRuntime::edit_data, blender::bke::MeshRuntime::edit_mesh, blender::eModifierType_Nodes, blender::bke::GeometryComponent::Mesh, blender::bke::MeshComponent::MeshComponent(), blender::Mesh::runtime, blender::BMesh::totvert, and UNUSED_VARS_NDEBUG.
Referenced by cage_mesh_or_fallback(), and editbmesh_calc_modifiers().
|
static |
Definition at line 310 of file mesh_remesh_voxel.cc.
References calc_edge_centers(), blender::Span< T >::index_range(), and blender::math::midpoint().
Referenced by calc_edge_centers().
|
static |
Definition at line 319 of file mesh_remesh_voxel.cc.
References calc_face_centers(), blender::bke::mesh::face_center_calc(), blender::offset_indices::OffsetIndices< T >::index_range(), and blender::Span< T >::slice().
Referenced by calc_face_centers().
|
static |
Definition at line 692 of file curves_geometry.cc.
References BLI_assert_unreachable, build_offsets(), blender::bke::curves::catmull_rom::calculate_evaluated_num(), blender::bke::curves::nurbs::calculate_evaluated_num(), calculate_evaluated_offsets(), blender::bke::curves::bezier::calculate_evaluated_offsets(), blender::CURVE_TYPE_BEZIER, blender::CURVE_TYPE_CATMULL_ROM, blender::CURVE_TYPE_NURBS, blender::CURVE_TYPE_POLY, blender::Default, blender::IndexRange::is_empty(), blender::Span< T >::is_empty(), blender::IndexRange::last(), blender::NURBS_KNOT_MODE_CUSTOM, blender::bke::curves::per_curve_point_offsets_range(), PRF_scope, blender::IndexRange::size(), blender::blender::Span< T >::slice(), blender::MutableSpan< T >::slice(), and blender::Span< T >::slice().
Referenced by calculate_evaluated_offsets(), and blender::bke::CurvesGeometry::evaluated_points_by_curve().
|
static |
Definition at line 327 of file curve_to_mesh_convert.cc.
References calculate_result_offsets(), blender::bke::CurvesGeometry::curves_num(), blender::bke::CurvesGeometry::evaluated_points_by_curve(), blender::bke::CurvesInfo::main, blender::threading::parallel_invoke(), blender::bke::CurvesInfo::profile, and blender::result.
Referenced by calculate_result_offsets(), and curve_to_mesh_sweep().
| std::array< int, CURVE_TYPES_NUM > blender::bke::calculate_type_counts | ( | const VArray< int8_t > & | types | ) |
Definition at line 328 of file curves_geometry.cc.
References calculate_type_counts(), blender::Core, blender::VArrayCommon< T >::get_if_single(), blender::VArrayCommon< T >::get_internal_span(), blender::VArrayCommon< T >::index_range(), blender::bke::subdiv::init(), blender::threading::parallel_reduce(), PRF_scope, blender::result, and blender::VArrayCommon< T >::size().
Referenced by calculate_type_counts(), blender::bke::CurvesGeometry::curve_type_counts(), and blender::bke::CurvesGeometry::update_curve_types().
|
static |
Definition at line 815 of file type_conversions.cc.
References call_convert_to_uninitialized_fn().
Referenced by call_convert_to_uninitialized_fn(), call_convert_to_uninitialized_fn(), and blender::bke::DataTypeConversions::convert_to_initialized_n().
|
static |
Definition at line 827 of file type_conversions.cc.
References call_convert_to_uninitialized_fn(), blender::IndexMask::IndexMask(), and blender::GVArrayCommon::size().
|
static |
Definition at line 5644 of file node.cc.
References can_read_node_type(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), ELEM, get_known_node_types_set(), node, NODE_CUSTOM, NODE_CUSTOM_GROUP, NODE_LEGACY_TYPE_GENERATION_START, node_type_find(), and blender::bke::bNodeType::storagename.
Referenced by can_read_node_type(), and node_tree_update_all_new().
|
static |
Definition at line 528 of file mesh_attributes.cc.
References BLI_assert_unreachable, can_simple_adapt_for_single(), Corner, Edge, Face, and Point.
Referenced by adapt_mesh_attribute_domain(), and can_simple_adapt_for_single().
|
static |
Definition at line 2396 of file blenkernel/intern/sound.cc.
References catmul_rom_interpolation().
Referenced by catmul_rom_interpolation(), and blender::bke::bSoundFrequencySampler::sample().
|
static |
Definition at line 21 of file instances_attributes.cc.
References changed_tags(), and tag_component_reference_index_changed().
Referenced by changed_tags(), and get_instances_accessor_functions().
|
static |
Definition at line 678 of file mesh_attributes.cc.
References changed_tags(), tag_custom_normals_changed(), tag_material_index_changed(), tag_positions_changed(), tag_sharpness_changed(), and tag_visibility_changed().
Referenced by changed_tags(), and get_mesh_accessor_functions().
|
static |
Definition at line 30 of file pointcloud_attributes.cc.
References changed_tags(), tag_position_changed(), and tag_radius_changed().
Referenced by changed_tags(), and get_pointcloud_accessor_functions().
|
static |
Definition at line 4716 of file node.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), check_link_selected_backward(), blender::bNodeLink::fromnode, and node.
Referenced by check_link_selected_backward(), and node_link_is_selected().
|
static |
Definition at line 4743 of file node.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), check_link_selected_forward(), node, and blender::bNodeLink::tonode.
Referenced by check_link_selected_forward(), and node_link_is_selected().
|
static |
Definition at line 518 of file type_conversions.cc.
References color_to_bool(), and blender::IMB_colormanagement_get_luminance().
Referenced by color_to_bool().
|
static |
Definition at line 558 of file type_conversions.cc.
References color_to_byte_color(), and blender::color::encode().
Referenced by color_to_byte_color().
|
static |
Definition at line 522 of file type_conversions.cc.
References color_to_float(), and blender::IMB_colormanagement_get_luminance().
Referenced by byte_color_to_float(), and color_to_float().
|
static |
Definition at line 546 of file type_conversions.cc.
References color_to_float2(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by byte_color_to_float2(), and color_to_float2().
|
static |
Definition at line 550 of file type_conversions.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, color_to_float3(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by byte_color_to_float3(), and color_to_float3().
|
static |
Definition at line 554 of file type_conversions.cc.
References color_to_float4().
Referenced by byte_color_to_float4(), and color_to_float4().
|
static |
Definition at line 526 of file type_conversions.cc.
References color_to_int(), and blender::IMB_colormanagement_get_luminance().
Referenced by byte_color_to_int(), color_to_int(), and color_to_int8().
|
static |
Definition at line 534 of file type_conversions.cc.
References color_to_int2(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by color_to_int2().
|
static |
Definition at line 538 of file type_conversions.cc.
References blender::ColorRGBA< ChannelStorageType, Space, Alpha >::b, color_to_int3(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by color_to_int3().
|
static |
Definition at line 542 of file type_conversions.cc.
References color_to_int(), color_to_int8(), and int_to_int8().
Referenced by byte_color_to_int8(), and color_to_int8().
|
static |
Definition at line 530 of file type_conversions.cc.
References color_to_short2(), blender::ColorRGBA< ChannelStorageType, Space, Alpha >::g, and blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r.
Referenced by color_to_short2().
|
static |
Definition at line 676 of file geometry_fields.cc.
References blender::bke::GeometryComponent::attribute_domain_size(), and component_is_available().
Referenced by component_is_available(), and blender::bke::SampleIndexFunction::find_source_component().
|
static |
Definition at line 866 of file blenkernel/intern/mesh.cc.
References build_vertex_groups_for_leaves(), blender::bke::pbvh::calc_face_bounds(), compute_local_mesh_groups(), Face, blender::array_utils::fill_index_range(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::bke::subdiv::init(), blender::offset_indices::OffsetIndices< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), blender::bounds::merge(), merge_bounds(), negative_bounds(), blender::threading::parallel_reduce(), partition_faces_recursively(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::offset_indices::OffsetIndices< T >::size(), and blender::Span< T >::slice().
Referenced by compute_local_mesh_groups(), and mesh_apply_spatial_organization().
|
static |
Definition at line 256 of file geometry_component_curves.cc.
References construct_curve_length_gvarray(), Curve, blender::VArray< T >::from_func(), and Point.
Referenced by construct_curve_length_gvarray(), and blender::bke::CurveLengthFieldInput::get_varray_for_context().
|
static |
Definition at line 78 of file instances.cc.
References blender::Collection::children, blender::CollectionChild::collection, convert_collection_to_instances(), blender::Collection::gobject, blender::MatBase< float, 4, 4 >::identity(), blender::Collection::instance_offset, and blender::CollectionObject::ob.
Referenced by convert_collection_to_instances(), and blender::bke::InstanceReference::to_geometry_set().
| void blender::bke::copy_attributes | ( | const AttributeAccessor | src_attributes, |
| AttrDomain | src_domain, | ||
| AttrDomain | dst_domain, | ||
| const AttributeFilter & | attribute_filter, | ||
| MutableAttributeAccessor | dst_attributes ) |
Definition at line 868 of file attribute_access.cc.
References blender::BLI_assert(), copy_attributes(), blender::Default, blender::bke::AttributeAccessor::domain_size(), gather_attributes(), blender::IndexMask::IndexMask(), and PRF_scope.
Referenced by blender::BKE_mesh_to_pointcloud(), blender::BKE_pointcloud_to_mesh(), blender::geometry::copy_and_reorder_mesh_edges(), blender::geometry::copy_and_reorder_mesh_faces(), blender::geometry::copy_and_reorder_mesh_verts(), copy_attributes(), blender::bke::curves::copy_only_curve_domain(), blender::nodes::node_geo_points_to_curves_cc::curve_from_points(), blender::nodes::node_geo_curve_to_points_cc::curves_to_points(), blender::ed::curves::pen_tool::extrude_curves(), gather_attributes(), gather_attributes_group_to_group(), blender::nodes::node_geo_curve_to_mesh_cc::grease_pencil_to_mesh(), blender::ed::curves::pen_tool::insert_point_to_curve(), blender::geometry::join_curves_ranges(), blender::nodes::node_geo_curve_to_points_cc::layer_pointclouds_to_instances(), blender::geometry::mesh_copy_selection_keep_edges(), blender::geometry::mesh_copy_selection_keep_verts(), and blender::nodes::node_geo_instance_on_points_cc::node_geo_exec().
| void blender::bke::copy_attributes_group_to_group | ( | AttributeAccessor | src_attributes, |
| AttrDomain | src_domain, | ||
| AttrDomain | dst_domain, | ||
| const AttributeFilter & | attribute_filter, | ||
| OffsetIndices< int > | src_offsets, | ||
| OffsetIndices< int > | dst_offsets, | ||
| const IndexMask & | selection, | ||
| MutableAttributeAccessor | dst_attributes ) |
Definition at line 896 of file attribute_access.cc.
References blender::bke::AttributeFilter::allow_skip(), attribute_type_to_cpp_type(), blender::bke::AttributeAccessor::contains(), copy_attributes_group_to_group(), blender::array_utils::copy_group_to_group(), blender::GMutableSpan::data(), blender::bke::AttributeIter::data_type, blender::Default, blender::bke::AttributeIter::domain, blender::CPPType::fill_construct_n(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), blender::GPointer::get(), get_default_for_fill(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, PRF_scope, blender::GMutableSpan::size(), blender::index_mask::IndexMask::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::bke::GSpanAttributeWriter::span, String, blender::offset_indices::OffsetIndices< T >::total_size(), and try_add_single_value_attribute().
Referenced by copy_attributes_group_to_group(), blender::geometry::fillet_curves(), blender::ed::sculpt_paint::greasepencil::get_single_stroke(), and blender::geometry::trim_curves().
|
static |
Definition at line 826 of file curve_to_mesh_convert.cc.
References BLI_assert_unreachable, copy_curve_domain_attribute_to_mesh(), Corner, Edge, blender::bke::ResultOffsets::edge, Face, blender::bke::ResultOffsets::face, blender::bke::ResultOffsets::loop, Point, T, blender::bke::attribute_math::to_static_type(), blender::GVArrayCommon::type(), and blender::bke::ResultOffsets::vert.
Referenced by copy_curve_domain_attribute_to_mesh(), and curve_to_mesh_sweep().
|
static |
Definition at line 1615 of file curves_geometry.cc.
References copy_curve_selection_custom_knots(), blender::IndexMask::from_intersection(), blender::array_utils::gather_group_to_group(), blender::offset_indices::gather_selected_offsets(), blender::bke::CurvesGeometry::nurbs_custom_knots_for_write(), blender::bke::CurvesGeometry::nurbs_custom_knots_update_size(), and blender::index_mask::IndexMask::size().
Referenced by copy_curve_selection_custom_knots(), and curves_copy_curve_selection().
|
static |
Definition at line 809 of file curve_to_mesh_convert.cc.
References copy_indices_to_offset_ranges(), blender::devirtualize_varray(), blender::Span< T >::index_range(), and blender::threading::parallel_for().
Referenced by copy_indices_to_offset_ranges().
|
static |
Definition at line 610 of file curve_to_mesh_convert.cc.
References copy_main_point_data_to_mesh_edges(), blender::MutableSpan< T >::fill(), blender::Span< T >::index_range(), and blender::MutableSpan< T >::slice().
Referenced by copy_main_point_data_to_mesh_edges().
|
static |
Definition at line 624 of file curve_to_mesh_convert.cc.
References copy_main_point_data_to_mesh_faces(), blender::MutableSpan< T >::fill(), and blender::MutableSpan< T >::slice().
Referenced by copy_main_point_data_to_mesh_faces().
|
static |
Definition at line 599 of file curve_to_mesh_convert.cc.
References copy_main_point_data_to_mesh_verts(), blender::MutableSpan< T >::fill(), blender::Span< T >::index_range(), and blender::MutableSpan< T >::slice().
Referenced by copy_main_point_data_to_mesh_verts().
|
static |
Definition at line 667 of file curve_to_mesh_convert.cc.
References copy_main_point_domain_attribute_to_mesh(), cpp_type_to_attribute_type(), evaluate_attribute(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::CurvesInfo::main, Point, blender::bke::GSpanAttributeWriter::span, T, blender::bke::attribute_math::to_static_type(), try_direct_evaluate_point_data(), try_sharing_point_data(), blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by copy_main_point_domain_attribute_to_mesh(), and curve_to_mesh_sweep().
|
static |
Definition at line 1486 of file curves_geometry.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), copy_point_selection_custom_knots(), blender::bke::curves::curve_to_point_selection(), blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), blender::Span< T >::first(), blender::index_mask::IndexMask::foreach_index(), blender::bke::curves::foreach_selected_point_ranges_per_curve(), blender::IndexRange::from_begin_size(), blender::IndexMask::from_intersection(), blender::bke::curves::nurbs::knots_num(), blender::Vector< T, InlineBufferCapacity, Allocator >::last(), blender::bke::CurvesGeometry::nurbs_custom_knots_for_write(), blender::bke::CurvesGeometry::nurbs_custom_knots_update_size(), blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::Span< T >::slice(), and blender::IndexRange::start().
Referenced by copy_point_selection_custom_knots().
|
static |
Definition at line 744 of file curve_to_mesh_convert.cc.
References copy_profile_point_data_to_mesh_edges(), blender::MutableSpan< T >::fill(), blender::Span< T >::index_range(), and blender::MutableSpan< T >::slice().
Referenced by copy_profile_point_data_to_mesh_edges().
|
static |
Definition at line 755 of file curve_to_mesh_convert.cc.
References copy_profile_point_data_to_mesh_faces().
Referenced by copy_profile_point_data_to_mesh_faces().
|
static |
Definition at line 731 of file curve_to_mesh_convert.cc.
References copy_profile_point_data_to_mesh_verts(), blender::Span< T >::index_range(), and blender::Span< T >::size().
Referenced by copy_profile_point_data_to_mesh_verts().
|
static |
Definition at line 768 of file curve_to_mesh_convert.cc.
References copy_profile_point_domain_attribute_to_mesh(), T, blender::bke::attribute_math::to_static_type(), and blender::GSpan::type().
Referenced by copy_profile_point_domain_attribute_to_mesh(), and curve_to_mesh_sweep().
Definition at line 80 of file attribute_access.cc.
References BLI_assert_unreachable, Bool, ColorByte, ColorFloat, cpp_type_to_attribute_type(), Float, Float2, Float3, Float4, Float4x4, Int16_2D, Int32, Int32_2D, Int8, blender::CPPType::is(), Quaternion, and String.
Referenced by blender::ed::sculpt_paint::color::active_color_attribute(), blender::ed::sculpt_paint::color::active_color_attribute_for_write(), blender::bke::MutableAttributeAccessor::add(), blender::BKE_mesh_to_pointcloud(), blender::BKE_pointcloud_to_mesh(), blender::bke::MutableAttributeAccessor::convert_or_add_for_write(), copy_main_point_domain_attribute_to_mesh(), cpp_type_to_attribute_type(), blender::ed::curves::set_selection_domain::curves_set_selection_domain_exec(), blender::data_transfer_layersmapping_add_item_attr(), blender::ed::greasepencil::ensure_selection_domain(), blender::draw::extract_attribute(), blender::draw::extract_attribute_subdiv(), gather_attributes(), blender::ed::geometry::geometry_color_attribute_duplicate_exec(), blender::bke::AttributeIter::get(), get_mutable_attribute(), get_varray_attribute(), blender::bke::AttributeFieldInput::get_varray_for_context(), blender::nodes::node_geo_tool_selection_cc::EditSelectionFieldInput::get_varray_for_context(), blender::nodes::node_geo_tool_selection_cc::SculptSelectionFieldInput::get_varray_for_context(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_main_items_and_geometry(), blender::io::csv::import_csv_as_pointcloud(), blender::geometry::interpolate_curves_with_samples(), blender::ed::mesh::join_normals(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write(), blender::nodes::node_geo_grid_to_points_cc::node_geo_exec(), blender::geometry::preprocess_meshes(), blender::geometry::retrieve_attribute_spans(), blender::geometry::retrieve_attribute_spans(), blender::ed::geometry::rna_property_for_attribute_type_set_value(), sample_corner_attributes(), sample_vertex_attributes(), blender::ed::sculpt_paint::select_grow::select_grow_modal(), blender::ed::sculpt_paint::undo::set_active_layer(), blender::ed::curves::set_attribute_invoke(), blender::ed::pointcloud::set_attribute_invoke(), blender::bke::compare_geometry::sort_domain_using_attributes(), blender::nodes::store_computed_output_attributes(), blender::nodes::node_geo_dual_mesh_cc::transfer_attributes(), try_add_shared_field_attribute(), try_capture_fields_on_geometry(), try_sharing_point_data(), blender::draw::pbvh::update_generic_attribute_grids(), blender::draw::pbvh::update_generic_attribute_mesh(), and blender::vertex_paint_from_weight().
| std::optional< eCustomDataType > blender::bke::cpp_type_to_custom_data_type | ( | const CPPType & | type | ) |
Definition at line 164 of file attribute_access.cc.
References blender::CD_PROP_BOOL, blender::CD_PROP_BYTE_COLOR, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT2, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT16_2D, blender::CD_PROP_INT32, blender::CD_PROP_INT32_2D, blender::CD_PROP_INT8, blender::CD_PROP_QUATERNION, blender::CD_PROP_STRING, cpp_type_to_custom_data_type(), and blender::CPPType::is().
Referenced by cpp_type_to_custom_data_type(), blender::bke::bake::serialize_field(), blender::bke::bake::serialize_list(), and blender::bke::bake::serialize_single_value().
|
static |
Definition at line 2261 of file mesh_legacy_convert.cc.
References angle(), blender::BKE_modifier_new(), blender::BKE_modifier_unique_name(), blender::BKE_modifiers_persistent_uid_init(), blender::bke::idprop::create(), create_auto_smooth_modifier(), blender::bke::idprop::create_group(), DATA_, blender::eModifierType_Nodes, blender::id_us_plus(), blender::IDP_AddToGroup(), STRNCPY_UTF8, and blender::nodes::Value.
Referenced by blender::BKE_main_mesh_legacy_convert_auto_smooth(), and create_auto_smooth_modifier().
|
static |
Definition at line 307 of file blender_project_config.cc.
References blender::BKE_blender_project_get(), blender::BKE_blender_project_init(), create_blender_project_from_toml(), project_asset_library_add(), project_schema_version, project_variable_add(), and toml_version.
Referenced by blender::BKE_blender_project_init_from_root_path(), and create_blender_project_from_toml().
|
static |
Definition at line 371 of file bvhutils.cc.
References create_edges_tree_data(), blender::data, mesh_edges_nearest_point(), and mesh_edges_spherecast().
Referenced by bvhtree_from_mesh_edges_ex(), create_edges_tree_data(), and create_edges_tree_data().
|
static |
Definition at line 384 of file bvhutils.cc.
References create_edges_tree_data(), and blender::data.
|
static |
Definition at line 630 of file type_conversions.cc.
References add_implicit_conversion(), and create_implicit_conversions().
Referenced by create_implicit_conversions(), and get_implicit_type_conversions().
|
static |
Definition at line 393 of file bvhutils.cc.
References create_legacy_faces_tree_data(), blender::data, mesh_faces_nearest_point(), and mesh_faces_spherecast().
Referenced by create_legacy_faces_tree_data().
|
static |
Definition at line 128 of file mesh_data_update.cc.
References blender::BKE_mesh_copy_for_eval(), blender::BKE_mesh_ensure_default_orig_index_customdata(), blender::BKE_mesh_from_bmesh_for_eval_nomain(), blender::bm, create_orco_mesh(), get_orco_coords(), blender::Span< T >::is_empty(), layer, and storage.
Referenced by create_orco_mesh(), editbmesh_calc_modifiers(), and mesh_calc_modifiers().
|
static |
Definition at line 2239 of file node.cc.
References blender::bke::idprop::create(), blender::bke::idprop::create_bool(), blender::bke::idprop::create_group(), create_socket_meta_data_properties(), blender::bNodeTreeInterfaceSocket::default_attribute_name, blender::bke::RuntimeNodeEnumItem::description, blender::bke::node_interface::get_socket_data_as(), blender::bke::RuntimeNodeEnumItem::identifier, blender::bNodeTreeInterfaceSocket::identifier, blender::IDP_AddToGroup(), blender::bke::RuntimeNodeEnumItem::name, node_socket_type_find(), blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, blender::bNodeTreeInterfaceSocket::socket_type, and blender::bke::bNodeSocketType::type.
Referenced by create_socket_meta_data_properties(), and node_create_asset_meta_data_properties().
|
static |
Definition at line 460 of file blender_project_config.cc.
References create_toml_from_blender_project(), blender::blender::StringRefBase::is_empty(), project_asset_libraries_to_toml(), project_schema_version, and project_variables_to_toml().
Referenced by blender::BKE_blender_project_config_file_write(), and create_toml_from_blender_project().
|
static |
Definition at line 459 of file bvhutils.cc.
References blender::BLI_bvhtree_balance(), blender::BLI_bvhtree_insert(), bvhtree_new_common(), blender::copy_v3_v3(), create_tree_from_edges(), blender::index_mask::IndexMask::foreach_index(), and blender::index_mask::IndexMask::size().
Referenced by bvhtree_from_mesh_edges_ex(), and create_tree_from_edges().
|
static |
Definition at line 485 of file bvhutils.cc.
References blender::BLI_bvhtree_balance(), blender::BLI_bvhtree_insert(), bvhtree_new_common(), blender::copy_v3_v3(), create_tree_from_legacy_faces(), blender::Span< T >::index_range(), blender::Span< T >::size(), and blender::v2.
Referenced by create_tree_from_legacy_faces().
|
static |
Definition at line 525 of file bvhutils.cc.
References blender::BLI_bvhtree_balance(), blender::BLI_bvhtree_insert(), bvhtree_new_common(), blender::copy_v3_v3(), create_tree_from_tris(), blender::bke::mesh::face_triangles_num(), blender::bke::mesh::face_triangles_range(), blender::index_mask::IndexMask::foreach_index(), blender::index_mask::IndexMask::foreach_index_optimized(), blender::index_mask::IndexMask::size(), and blender::offset_indices::OffsetIndices< T >::size().
|
static |
Definition at line 506 of file bvhutils.cc.
References blender::BLI_bvhtree_balance(), blender::BLI_bvhtree_insert(), bvhtree_new_common(), blender::copy_v3_v3(), create_tree_from_tris(), blender::Span< T >::index_range(), and blender::Span< T >::size().
Referenced by bvhtree_from_mesh_corner_tris_ex(), create_tree_from_tris(), and create_tree_from_tris().
|
static |
Definition at line 439 of file bvhutils.cc.
References blender::BLI_bvhtree_balance(), blender::BLI_bvhtree_insert(), bvhtree_new_common(), create_tree_from_verts(), blender::index_mask::IndexMask::foreach_index(), and blender::index_mask::IndexMask::size().
Referenced by bvhtree_from_mesh_verts_ex(), and create_tree_from_verts().
|
static |
Definition at line 406 of file bvhutils.cc.
References create_tris_tree_data(), blender::data, mesh_corner_tris_nearest_point(), and mesh_corner_tris_spherecast().
Referenced by bvhtree_from_mesh_corner_tris_ex(), create_tris_tree_data(), and create_tris_tree_data().
|
static |
Definition at line 421 of file bvhutils.cc.
References create_tris_tree_data(), and blender::data.
|
static |
Definition at line 351 of file bvhutils.cc.
References create_verts_tree_data(), blender::data, and mesh_verts_spherecast().
Referenced by bvhtree_from_mesh_verts_ex(), create_verts_tree_data(), and create_verts_tree_data().
|
static |
Definition at line 363 of file bvhutils.cc.
References create_verts_tree_data(), and blender::data.
Convert the old curve type to the new data type. Caller owns the returned pointer.
Definition at line 244 of file curve_legacy_convert.cc.
References blender::BKE_curve_nurbs_get_for_read(), and curve_legacy_to_curves().
Referenced by blender::ed::object::convert_curves_legacy_to_grease_pencil(), blender::ed::object::convert_font_to_curves(), blender::ed::object::convert_font_to_grease_pencil(), blender::nodes::node_geo_string_to_curves_cc::create_curve_instances(), blender::curve_calc_modifiers_post(), curve_legacy_to_curves(), curve_legacy_to_curves(), blender::io::alembic::ABCCurveWriter::do_write(), and blender::io::usd::USDCurvesWriter::do_write().
| Curves * blender::bke::curve_legacy_to_curves | ( | const Curve & | curve_legacy, |
| const ListBaseT< Nurb > & | nurbs_list ) |
Convert the old curve type to the new data type using a specific list of Nurb for the actual geometry data. Caller owns the returned pointer.
Definition at line 90 of file curve_legacy_convert.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Nurb::bezt, blender::Nurb::bp, blender::MutableSpan< T >::copy_from(), blender::CU_NURB_CYCLIC, Curve, curve_legacy_to_curves(), curve_type_from_legacy(), curves_new_nomain(), blender::bke::SpanAttributeWriter< T >::finish(), blender::Nurb::flagu, blender::bke::curves::foreach_curve_by_type(), blender::exec_mode::grain_size(), blender::BezTriple::h1, blender::BezTriple::h2, handle_type_from_legacy(), blender::Span< T >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), knots_mode_from_legacy(), blender::Nurb::knotsu, blender::MutableSpan< T >::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::Curve::mat, normal_mode_from_legacy(), blender::NURBS_KNOT_MODE_CUSTOM, blender::Nurb::orderu, blender::Nurb::pntsu, Point, blender::BezTriple::radius, blender::BPoint::radius, blender::Nurb::resolu, blender::IndexRange::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::MutableSpan< T >::slice(), blender::bke::SpanAttributeWriter< T >::span, blender::BezTriple::tilt, blender::BPoint::tilt, blender::Curve::totcol, blender::Curve::twist_mode, blender::Nurb::type, blender::BezTriple::vec, and blender::BPoint::vec.
|
static |
Definition at line 153 of file geometry_component_curves.cc.
References curve_normal_point_domain(), blender::bke::AttributeAccessor::lookup_or_default(), blender::threading::parallel_for(), and Point.
Referenced by curve_normal_point_domain(), and curve_normals_varray().
| VArray< float3 > blender::bke::curve_normals_varray | ( | const CurvesGeometry & | curves, |
| AttrDomain | domain ) |
Definition at line 228 of file geometry_component_curves.cc.
References Curve, curve_normal_point_domain(), curve_normals_varray(), blender::CURVE_TYPE_POLY, blender::VArray< T >::from_container(), blender::VArray< T >::from_span(), and Point.
Referenced by curve_normals_varray(), and blender::bke::NormalFieldInput::get_varray_for_context().
| Mesh * blender::bke::curve_to_mesh_sweep | ( | const CurvesGeometry & | main, |
| const CurvesGeometry & | profile, | ||
| const VArray< float > & | scales, | ||
| bool | fill_caps, | ||
| std::optional< float > | miter_limit_angle, | ||
| const bke::AttributeFilter & | attribute_filter = {} ) |
Extrude all splines in the profile curve along the path of every spline in the curve input. Transfer curve attributes to the mesh.
| miter_limit_angle | A corner's turn angle at which the miter scale stops growing. The profile is scaled by 1 / cos(turn_angle / 2) along the corner bisector to keep a constant visual width. This caps that factor at 1 / cos(miter_limit_angle / 2) so sharp angles don't produce unbounded spikes. |
Definition at line 889 of file curve_to_mesh_convert.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::ResultOffsets::any_single_point_main, blender::bke::ResultOffsets::any_single_point_profile, blender::bke::CurvesGeometry::attributes(), blender::BKE_mesh_new_nomain(), build_mesh_positions(), calculate_result_offsets(), blender::GVArrayCommon::common_info(), blender::bke::AttributeAccessor::contains(), copy_curve_domain_attribute_to_mesh(), copy_main_point_domain_attribute_to_mesh(), copy_profile_point_domain_attribute_to_mesh(), blender::math::cos(), Curve, curve_to_mesh_sweep(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, Edge, blender::bke::ResultOffsets::edge, blender::bke::CombinationInfo::edge_range, blender::bke::CurvesGeometry::ensure_can_interpolate_to_evaluated(), evaluate_attribute(), Face, blender::bke::ResultOffsets::face, blender::bke::CombinationInfo::face_range, fill_mesh_topology(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::AttributeAccessor::foreach_attribute(), foreach_curve_combination(), blender::bke::AttributeIter::get(), get_attribute_domain_for_mesh(), get_curves_info(), has_caps(), blender::Array< T, InlineBufferCapacity, Allocator >::last(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::ResultOffsets::loop, blender::bke::CombinationInfo::loop_range, main, blender::bke::CombinationInfo::main_cyclic, blender::bke::ResultOffsets::main_indices, blender::bke::CombinationInfo::main_points, blender::bke::CombinationInfo::main_segment_num, blender::bke::AttributeIter::name, Point, blender::bke::CombinationInfo::profile_cyclic, blender::bke::ResultOffsets::profile_indices, blender::bke::CombinationInfo::profile_points, blender::bke::CombinationInfo::profile_segment_num, should_add_attribute_to_mesh(), blender::CommonVArrayInfo::Single, blender::IndexRange::size(), blender::bke::GSpanAttributeWriter::span, blender::bke::SpanAttributeWriter< T >::span, blender::IndexRange::start(), blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), blender::bke::GAttributeReader::varray, blender::bke::ResultOffsets::vert, blender::bke::CombinationInfo::vert_range, and write_sharp_bezier_edges().
Referenced by blender::nodes::node_geo_curve_to_mesh_cc::curve_to_mesh(), curve_to_mesh_sweep(), and curve_to_wire_mesh().
| Mesh * blender::bke::curve_to_wire_mesh | ( | const CurvesGeometry & | curve, |
| const bke::AttributeFilter & | attribute_filter = {} ) |
Create a loose-edge mesh based on the evaluated path of the curve's splines. Transfer curve attributes to the mesh.
Definition at line 1099 of file curve_to_mesh_convert.cc.
References curve_to_mesh_sweep(), curve_to_wire_mesh(), and get_curve_single_vert().
Referenced by blender::ed::object::convert_curves_to_mesh(), blender::ed::object::convert_grease_pencil_to_mesh(), blender::nodes::node_geo_curve_to_mesh_cc::curve_to_mesh(), curve_to_wire_mesh(), blender::io::alembic::ABCCurveMeshWriter::get_export_mesh(), and blender::mesh_new_from_evaluated_curve_type_object().
|
static |
Definition at line 24 of file curve_legacy_convert.cc.
References BLI_assert_unreachable, blender::CU_BEZIER, blender::CU_NURBS, blender::CU_POLY, blender::CURVE_TYPE_BEZIER, curve_type_from_legacy(), blender::CURVE_TYPE_NURBS, and blender::CURVE_TYPE_POLY.
Referenced by curve_legacy_to_curves(), and curve_type_from_legacy().
Read-only, to avoid changing the storage or sharing of valid data.
Definition at line 294 of file curves_geometry.cc.
References curve_types_are_valid(), blender::VArrayCommon< T >::get_if_single(), blender::VArrayCommon< T >::get_internal_span(), blender::Span< T >::index_range(), blender::bke::subdiv::init(), is_valid_curve_type(), and blender::threading::parallel_reduce().
Referenced by blender::bke::CurvesGeometry::blend_read(), and curve_types_are_valid().
| void blender::bke::curves_convert_customdata_to_storage | ( | CurvesGeometry & | curves | ) |
See mesh_convert_customdata_to_storage.
Definition at line 238 of file attribute_legacy_convert.cc.
References attribute_legacy_convert_customdata_to_storage(), Curve, curves_convert_customdata_to_storage(), blender::CustomData_reset(), and Point.
Referenced by blender::blo_do_versions_500(), and curves_convert_customdata_to_storage().
| CurvesGeometry blender::bke::curves_copy_curve_selection | ( | const CurvesGeometry & | curves, |
| const IndexMask & | curves_to_copy, | ||
| const AttributeFilter & | attribute_filter ) |
Definition at line 1638 of file curves_geometry.cc.
References blender::bke::CurvesGeometry::attributes_for_write(), blender::BKE_defgroup_copy_list(), copy_curve_selection_custom_knots(), blender::Core, Curve, curves_copy_curve_selection(), blender::bke::CurvesGeometry::curves_num(), gather_attributes(), gather_attributes_group_to_group(), blender::offset_indices::gather_selected_offsets(), blender::bke::CurvesGeometry::offsets_for_write(), Point, PRF_scope, blender::bke::CurvesGeometry::remove_attributes_based_on_types(), blender::bke::CurvesGeometry::resize(), blender::index_mask::IndexMask::size(), blender::offset_indices::OffsetIndices< T >::total_size(), and blender::CurvesGeometry::vertex_group_names.
Referenced by curves_copy_curve_selection(), blender::duplicate_strokes(), blender::ed::sculpt_paint::CutOperationExecutor::execute(), blender::ed::sculpt_paint::DeleteOperationExecutor::execute(), blender::ed::sculpt_paint::DensitySubtractOperationExecutor::execute(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::grease_pencil_join_fills_exec(), blender::ed::greasepencil::grease_pencil_move_to_layer_exec(), blender::ed::greasepencil::grease_pencil_separate_layer(), blender::ed::greasepencil::grease_pencil_separate_material(), blender::modify_drawing(), blender::modify_drawing(), blender::modify_drawing(), blender::bke::CurvesGeometry::remove_curves(), blender::geometry::separate_curves_selection(), and blender::ed::sculpt_paint::greasepencil::trim_stroke_ends().
Copy data from #src to #dst, except the geometry data in CurvesGeometry. Typically used to copy high-level parameters when a geometry-altering operation creates a new curves data-block.
Definition at line 319 of file blenkernel/intern/curves.cc.
References blender::BLI_strdup(), curves_copy_parameters(), blender::MEM_new_array_uninitialized(), blender::MutableSpan< T >::MutableSpan(), and blender::Span< T >::Span().
Referenced by blender::ed::object::convert_font_to_curves(), curves_copy_parameters(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_curve(), blender::geometry::execute_realize_curve_tasks(), blender::geometry::extract_curves(), blender::geometry::extract_curves_points(), blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_resample_cc::node_geo_exec(), blender::nodes::node_geo_curve_spline_type_cc::node_geo_exec(), blender::geometry::separate_geometry(), and blender::nodes::node_geo_curve_subdivide_cc::subdivide_curves().
| CurvesGeometry blender::bke::curves_copy_point_selection | ( | const CurvesGeometry & | curves, |
| const IndexMask & | points_to_copy, | ||
| const AttributeFilter & | attribute_filter ) |
Definition at line 1541 of file curves_geometry.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::BKE_defgroup_copy_list(), blender::Core, curves_copy_point_selection(), blender::bke::CurvesGeometry::curves_num(), blender::index_mask::IndexMask::foreach_index_optimized(), blender::IndexMask::from_predicate(), blender::array_utils::gather(), blender::bke::CurvesGeometry::offsets_for_write(), blender::threading::parallel_invoke(), PRF_scope, blender::index_mask::IndexMask::size(), and blender::CurvesGeometry::vertex_group_names.
Referenced by curves_copy_point_selection(), blender::ed::greasepencil::grease_pencil_separate_selected(), blender::ed::greasepencil::grease_pencil_stroke_simplify_exec(), blender::bke::CurvesGeometry::remove_points(), blender::geometry::separate_curves_selection(), and blender::simplify_drawing().
| CurvesGeometry blender::bke::curves_new_no_attributes | ( | int | point_num, |
| int | curve_num ) |
Definition at line 1826 of file curves_geometry.cc.
References curves_new_no_attributes().
Referenced by blender::nodes::node_geo_construct_curves_cc::create_curves_from_topology_info(), curves_new_no_attributes(), and blender::geometry::reorder_curves_geometry().
| Curves * blender::bke::curves_new_nomain | ( | CurvesGeometry | curves | ) |
Definition at line 312 of file blenkernel/intern/curves.cc.
References blender::BKE_id_new_nomain(), and curves_new_nomain().
| Curves * blender::bke::curves_new_nomain | ( | int | points_num, |
| int | curves_num ) |
Definition at line 293 of file blenkernel/intern/curves.cc.
References blender::BKE_id_new_nomain(), blender::BLI_assert(), and curves_new_nomain().
Referenced by blender::ed::sculpt_paint::greasepencil::add_strokes_to_drawing(), blender::ed::curves::append_primitive_curve(), blender::ed::sculpt_paint::greasepencil::append_stroke_to_multiframe_drawings(), blender::BKE_curves_data_update(), blender::ed::greasepencil::clipboard_paste_strokes_ex(), blender::create_array_copies(), blender::io::obj::CurveFromGeometry::create_curve(), blender::nodes::node_geo_construct_curves_cc::create_curves_from_topology_info(), blender::create_mirror_copies(), curve_legacy_to_curves(), blender::nodes::node_geo_points_to_curves_cc::curves_from_points(), curves_new_nomain(), curves_new_nomain(), curves_new_nomain_single(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_curves(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_curve(), blender::duplicate_strokes(), blender::nodes::node_geo_edge_paths_to_curves_cc::edge_paths_to_curves_convert(), blender::geometry::execute_realize_curve_tasks(), blender::geometry::extract_curves(), blender::nodes::node_geo_curve_trim_cc::geometry_set_curve_trim(), blender::ed::sculpt_paint::grease_pencil_apply_fill(), blender::ed::greasepencil::grease_pencil_copy_strokes_exec(), blender::ed::greasepencil::grease_pencil_join_fills_exec(), blender::ed::greasepencil::grease_pencil_move_to_layer_exec(), blender::ed::greasepencil::grease_pencil_outline_exec(), blender::ed::greasepencil::join_curves(), blender::geometry::join_curves(), blender::MOD_lineart_gpencil_generate_v3(), blender::modify_drawing(), blender::nodes::node_geo_curve_fillet_cc::node_geo_exec(), blender::nodes::node_geo_curve_resample_cc::node_geo_exec(), blender::nodes::node_geo_curve_spline_type_cc::node_geo_exec(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_geo_exec(), blender::nodes::node_geo_mesh_to_curve_cc::node_geo_exec(), blender::ed::sculpt_paint::greasepencil::outline_stroke(), blender::ed::greasepencil::paste_all_strokes_from_clipboard(), blender::geometry::reorder_curves(), blender::geometry::separate_geometry(), blender::nodes::node_geo_curve_subdivide_cc::subdivide_curves(), blender::ed::sculpt_paint::greasepencil::trim_stroke_ends(), and blender::bke::bake::try_load_curves().
Create a new curves data-block containing a single curve with the given length and type.
Definition at line 303 of file blenkernel/intern/curves.cc.
References curves_new_nomain(), and curves_new_nomain_single().
Referenced by blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_points(), blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_radius(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::create_bezier_segment_curve(), blender::nodes::node_geo_curve_primitive_line_cc::create_direction_line_curve(), blender::nodes::node_geo_curve_primitive_circle_cc::create_point_circle_curve(), blender::nodes::node_geo_curve_primitive_line_cc::create_point_line_curve(), blender::nodes::node_geo_curve_primitive_quadratic_bezier_cc::create_quadratic_bezier_curve(), blender::nodes::node_geo_curve_primitive_circle_cc::create_radius_circle_curve(), blender::nodes::node_geo_curve_primitive_spiral_cc::create_spiral_curve(), blender::nodes::node_geo_curve_primitive_star_cc::create_star_curve(), blender::nodes::node_geo_points_to_curves_cc::curve_from_points(), curves_new_nomain_single(), blender::geometry::extract_curves_points(), and blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_geo_exec().
| void blender::bke::curves_normals_point_domain_calc | ( | const CurvesGeometry & | curves, |
| MutableSpan< float3 > | normals ) |
Definition at line 412 of file blenkernel/intern/curves.cc.
References blender::fn::FieldEvaluator::add_with_destination(), curves_normals_point_domain_calc(), blender::fn::FieldEvaluator::evaluate(), blender::bke::NormalFieldInput::get_field(), and Point.
Referenced by curves_normals_point_domain_calc(), export_hair_curves(), and blender::ed::curves::point_normals_array_create().
| void blender::bke::curves_store_surface_in_geometry_bundle | ( | const Depsgraph & | depsgraph, |
| const Curves & | curves, | ||
| GeometrySet & | geometry ) |
Definition at line 336 of file blenkernel/intern/curves.cc.
References blender::nodes::Bundle::add(), blender::bke::GeometrySet::bundle_for_write(), curves_store_surface_in_geometry_bundle(), blender::DEG_get_evaluated(), and blender::nodes::BundleKey::from_ustr().
Referenced by blender::BKE_curves_data_update(), curves_store_surface_in_geometry_bundle(), and blender::ed::object::modifier_apply_obdata().
| std::optional< AttrType > blender::bke::custom_data_type_to_attr_type | ( | eCustomDataType | data_type | ) |
Convert a custom data type to an attribute type. May return std::nullopt if the custom data type isn't used at runtime, is not a generic type that can be stored as an attribute, or is only used for BMesh.
Definition at line 25 of file attribute_legacy_convert.cc.
References BLI_assert_unreachable, Bool, blender::CD_AUTO_FROM_NAME, blender::CD_BM_ELEM_PYPTR, blender::CD_CLOTH_ORCO, blender::CD_GRID_PAINT_MASK, blender::CD_MCOL, blender::CD_MDEFORMVERT, blender::CD_MDISPS, blender::CD_MFACE, blender::CD_MLOOPTANGENT, blender::CD_MTFACE, blender::CD_NORMAL, blender::CD_NUMTYPES, blender::CD_ORCO, blender::CD_ORIGINDEX, blender::CD_ORIGSPACE, blender::CD_ORIGSPACE_MLOOP, blender::CD_PROP_BOOL, blender::CD_PROP_BYTE_COLOR, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT2, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT16_2D, blender::CD_PROP_INT32, blender::CD_PROP_INT32_2D, blender::CD_PROP_INT8, blender::CD_PROP_QUATERNION, blender::CD_PROP_STRING, blender::CD_SHAPE_KEYINDEX, blender::CD_SHAPEKEY, blender::CD_TANGENT, blender::CD_TESSLOOPNORMAL, ColorByte, ColorFloat, custom_data_type_to_attr_type(), Float, Float2, Float3, Float4, Float4x4, Int16_2D, Int32, Int32_2D, Int8, Quaternion, and String.
Referenced by blender::add_bm_cd_to_mesh(), attribute_legacy_convert_customdata_to_storage(), blender::BKE_attribute_new(), blender::BM_data_layer_lookup(), custom_data_type_to_attr_type(), blender::data_transfer_layersmapping_add_item_attr(), blender::data_transfer_layersmapping_cdlayers(), blender::data_transfer_layersmapping_cdlayers_multisrc_to_dst(), blender::ed::geometry::geometry_attribute_add_exec(), blender::ed::geometry::geometry_attribute_convert_exec(), blender::ed::geometry::geometry_color_attribute_add_exec(), blender::ed::geometry::geometry_color_attribute_convert_exec(), blender::bke::bake::load_attributes(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), and blender::proj_paint_color_attribute_create().
| const CPPType * blender::bke::custom_data_type_to_cpp_type | ( | eCustomDataType | type | ) |
Definition at line 128 of file attribute_access.cc.
References blender::CD_PROP_BOOL, blender::CD_PROP_BYTE_COLOR, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT2, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT16_2D, blender::CD_PROP_INT32, blender::CD_PROP_INT32_2D, blender::CD_PROP_INT8, blender::CD_PROP_QUATERNION, blender::CD_PROP_STRING, custom_data_type_to_cpp_type(), and blender::CPPType::get().
Referenced by custom_data_type_to_cpp_type(), blender::bke::bake::deserialize_bake_item(), blender::bke::bake::load_attributes(), and blender::nodes::node_geo_input_named_attribute_cc::node_geo_exec().
| std::optional< eNodeSocketDatatype > blender::bke::custom_data_type_to_socket_type | ( | eCustomDataType | type | ) |
Definition at line 5935 of file node.cc.
References blender::CD_PROP_BOOL, blender::CD_PROP_BYTE_COLOR, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT2, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT32, blender::CD_PROP_INT8, blender::CD_PROP_QUATERNION, custom_data_type_to_socket_type(), blender::SOCK_BOOLEAN, blender::SOCK_FLOAT, blender::SOCK_INT, blender::SOCK_MATRIX, blender::SOCK_RGBA, blender::SOCK_ROTATION, and blender::SOCK_VECTOR.
Referenced by blender::nodes::DeclarationListBuilder::add_input(), blender::nodes::DeclarationListBuilder::add_output(), custom_data_type_to_socket_type(), blender::nodes::CaptureAttributeItemsAccessor::get_socket_type(), blender::nodes::RaycastSampleAttributeItemsAccessor::get_socket_type(), node_is_dangling_reroute(), and blender::version_dynamic_viewer_node_items().
| std::optional< VolumeGridType > blender::bke::custom_data_type_to_volume_grid_type | ( | eCustomDataType | type | ) |
Definition at line 5056 of file customdata.cc.
References blender::CD_PROP_BOOL, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT3, blender::CD_PROP_INT32, custom_data_type_to_volume_grid_type(), blender::VOLUME_GRID_BOOLEAN, blender::VOLUME_GRID_FLOAT, blender::VOLUME_GRID_INT, and blender::VOLUME_GRID_VECTOR_FLOAT.
Referenced by custom_data_type_to_volume_grid_type().
Definition at line 72 of file attribute_storage.cc.
References blender::CPPType::default_value(), default_value_for_type(), blender::GPointer::GPointer(), and blender::CPPType::is().
Referenced by default_value_for_type(), blender::bke::Attribute::ArrayData::from_default_value(), and blender::bke::Attribute::SingleData::from_default_value().
|
static |
Definition at line 2822 of file node.cc.
References blender::ResourceScope::add_destruct_call(), defer_free_node_type(), and blender::bke::bNodeType::free_self.
Referenced by defer_free_node_type(), and node_free_type().
|
static |
Definition at line 2833 of file node.cc.
References blender::ResourceScope::add_destruct_call(), defer_free_socket_type(), and blender::bke::bNodeSocketType::free_self.
Referenced by defer_free_socket_type(), and node_free_socket_type().
|
static |
Definition at line 2816 of file node.cc.
References blender::ResourceScope::add_destruct_call(), and defer_free_tree_type().
Referenced by defer_free_tree_type(), and ntree_free_type().
|
static |
Definition at line 1944 of file node.cc.
References blender::BLO_read_string(), BLO_read_struct, blender::bNodeSocket::default_attribute_name, direct_link_node_socket(), direct_link_node_socket_default_value(), direct_link_node_socket_storage(), blender::bNodeSocket::identifier, blender::bke::bNodeSocketRuntime::identifier_ustr, IDP_BlendDataRead, blender::bNodeSocket::link, node, blender::bNodeSocket::prop, blender::bNodeSocket::runtime, blender::bNodeSocket::typeinfo, and blender::UString::UString().
Referenced by direct_link_node_socket(), and node_tree_blend_read_data().
|
static |
Definition at line 1629 of file node.cc.
References BLI_assert_unreachable, blender::BLO_read_fileversion_get(), BLO_read_raw_address, BLO_read_struct, blender::copy_v3_v3(), blender::copy_v4_v4(), blender::bNodeSocket::default_value, direct_link_node_socket_default_value(), blender::bke::versioning_internal::direct_link_node_socket_legacy_data_version_do(), blender::bNodeSocketValueMenu::enum_items, blender::bke::versioning_internal::MIN_BLENDFILE_VERSION_FOR_MODERN_NODE_SOCKET_DEFAULT_VALUE_READING, blender::bNodeSocketValueMenu::runtime_flag, blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, blender::STRNCPY(), and blender::bNodeSocket::type.
Referenced by direct_link_node_socket(), and direct_link_node_socket_default_value().
|
static |
Definition at line 1907 of file node.cc.
References blender::BKE_image_format_blend_read_data(), BLI_assert_unreachable, BLO_read_struct, CMP_NODE_IMAGE, CMP_NODE_OUTPUT_FILE, CMP_NODE_R_LAYERS, direct_link_node_socket_storage(), blender::NodeImageMultiFileSocket::format, node, and blender::bNodeSocket::storage.
Referenced by direct_link_node_socket(), and direct_link_node_socket_storage().
|
static |
Definition at line 226 of file node_tree_zones.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), all_zone_input_node_types(), all_zone_output_node_types(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BLI_assert(), blender::bke::bNodeTreeZone::child_node_ids, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), blender::Span< T >::contains(), discover_tree_zones(), ELEM, find_zone_nodes(), get_direct_zone_relations(), blender::bits::has_common_set_bits(), blender::Span< T >::index_range(), blender::bke::bNodeTreeZone::input_node_id, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), node, blender::bke::bNodeTreeZone::output_node_id, blender::Span< T >::size(), update_zone_border_links(), update_zone_depths(), and update_zone_per_node().
Referenced by discover_tree_zones(), and get_tree_zones().
|
static |
Definition at line 215 of file armature_deform.cc.
References blender::Bone::arm_head, blender::Bone::arm_tail, b_bone_deform(), blender::bPoseChannel_Runtime::bbone_segments, blender::bke::PChanBoneT< PoseChannelT, BoneT >::bone, blender::Bone::dist, dist_bone_deform(), blender::distfactor_to_bone(), blender::bke::PChanBoneT< PoseChannelT, BoneT >::pchan, blender::Bone::rad_head, blender::Bone::rad_tail, blender::bPoseChannel::runtime, blender::Bone::segments, and blender::Bone::weight.
Referenced by armature_vert_task_with_mixer(), and dist_bone_deform().
|
static |
Definition at line 966 of file mesh_data_update.cc.
References blender::BKE_object_eval_assign_data(), editbmesh_build_data(), editbmesh_calc_modifiers(), blender::bke::ObjectRuntime::geometry_set_eval, blender::bke::GeometrySet::GeometrySet(), blender::bke::GeometrySet::get_mesh(), blender::bke::ObjectRuntime::last_data_mask, and blender::Object::runtime.
Referenced by editbmesh_build_data(), editbmesh_get_eval_cage(), and mesh_data_update().
|
static |
Definition at line 717 of file mesh_data_update.cc.
References add_orco_mesh(), ASSERT_IS_VALID_MESH_INPUT, ASSERT_IS_VALID_MESH_OUTPUT, blender::BKE_editmesh_bmesh_get_for_write(), blender::BKE_id_free(), blender::BKE_mesh_wrapper_ensure_mdata(), blender::BKE_mesh_wrapper_from_editmesh(), blender::BKE_mesh_wrapper_tag_positions_changed(), blender::BKE_modifier_calc_data_masks(), blender::BKE_modifier_deform_verts(), blender::BKE_modifier_deform_vertsEM(), blender::BKE_modifier_get_info(), blender::BKE_modifier_modify_mesh(), blender::BKE_modifiers_clear_errors(), blender::BKE_modifiers_get_cage_index(), blender::BKE_modifiers_get_virtual_modifierlist(), blender::BLI_assert(), blender::BLI_linklist_free(), blender::bm, cage_mesh_or_fallback(), blender::CD_MASK_BAREMESH, CD_MASK_ORCO, CD_MASK_ORIGINDEX, CD_MASK_ORIGSPACE_MLOOP, blender::CD_ORCO, blender::CD_ORIGINDEX, blender::CD_ORIGSPACE_MLOOP, blender::CD_SET_DEFAULT, create_orco_mesh(), blender::CustomData_add_layer(), blender::CustomData_get_layer(), blender::CustomData_has_layer(), blender::CustomData_MeshMasks_update(), blender::DAG_EVAL_RENDER, blender::Object::data, blender::ModifierTypeInfo::deform_verts_EM, blender::DEG_get_mode(), blender::BMesh::edata, blender::bke::MeshRuntime::edit_mesh, editbmesh_calc_modifiers(), editbmesh_modifier_is_enabled(), blender::eModifierMode_Editmode, blender::eModifierMode_Realtime, blender::bke::GeometrySet::from_mesh(), geometry_mesh_edit_hints_ensure(), blender::bke::GeometrySet::get_component_ptr(), blender::bke::GeometrySet::get_mesh(), blender::bke::GeometrySet::get_mesh_for_write(), blender::Mesh::key, blender::CDMaskLink::mask, blender::bke::GeometryComponent::Mesh, blender::bke::MeshEditHints::mesh_cage, mesh_eval_assign_key(), mesh_init_origspace(), mesh_set_only_copy(), mesh_wrapper_vert_coords_ensure_for_write(), blender::bke::MeshComponent::MeshComponent(), blender::MOD_APPLY_ORCO, blender::MOD_APPLY_RENDER, blender::MOD_APPLY_USECACHE, blender::Object::modifier_flag, modifier_modify_mesh_and_geometry_set(), blender::CDMaskLink::next, blender::ModifierData::next, blender::OB_MODIFIER_FLAG_ADD_REST_POSITION, blender::OnlyDeform, blender::BMesh::pdata, blender::ModifierTypeInfo::required_data_mask, blender::Mesh::runtime, set_rest_position(), blender::ModifierData::type, blender::ModifierTypeInfo::type, and blender::CustomData_MeshMasks::vmask.
Referenced by editbmesh_build_data(), and editbmesh_calc_modifiers().
| const Mesh * blender::bke::editbmesh_get_eval_cage | ( | Depsgraph * | depsgraph, |
| const Scene * | scene, | ||
| Object * | obedit, | ||
| const CustomData_MeshMasks * | dataMask ) |
Definition at line 1141 of file mesh_data_update.cc.
References blender::BKE_object_get_editmesh_eval_cage(), blender::CustomData_MeshMasks_are_matching(), editbmesh_build_data(), editbmesh_get_eval_cage(), blender::bke::ObjectRuntime::last_data_mask, object_get_datamask(), and blender::Object::runtime.
Referenced by blender::BKE_crazyspace_get_mapped_editverts(), blender::BKE_editmesh_vert_coords_alloc(), editbmesh_get_eval_cage(), and editbmesh_get_eval_cage_from_orig().
| const Mesh * blender::bke::editbmesh_get_eval_cage_from_orig | ( | Depsgraph * | depsgraph, |
| const Scene * | scene, | ||
| Object * | obedit, | ||
| const CustomData_MeshMasks * | dataMask ) |
Definition at line 1164 of file mesh_data_update.cc.
References blender::BLI_assert(), blender::DEG_get_evaluated(), editbmesh_get_eval_cage(), editbmesh_get_eval_cage_from_orig(), blender::Object::id, blender::ID_TAG_COPIED_ON_EVAL, and blender::ID::tag.
Referenced by editbmesh_get_eval_cage_from_orig(), blender::mesh_foreachScreenEdge(), blender::mesh_foreachScreenEdge_clip_bb_segment(), blender::mesh_foreachScreenFace(), and blender::mesh_foreachScreenVert().
| bool blender::bke::editbmesh_modifier_is_enabled | ( | const Scene * | scene, |
| const Object * | ob, | ||
| ModifierData * | md, | ||
| bool | has_prev_mesh ) |
Definition at line 642 of file mesh_data_update.cc.
References blender::BKE_modifier_get_info(), blender::BKE_modifier_is_enabled(), blender::BKE_modifier_set_error(), editbmesh_modifier_is_enabled(), blender::eModifierMode_Editmode, blender::eModifierMode_Realtime, blender::eModifierTypeFlag_RequiresOriginalData, blender::ModifierTypeInfo::flags, and blender::ModifierData::type.
Referenced by blender::BKE_crazyspace_get_first_deform_matrices_editbmesh(), editbmesh_calc_modifiers(), and editbmesh_modifier_is_enabled().
|
static |
Definition at line 255 of file attribute_storage_access.cc.
References Array, blender::bke::Attribute::assign_data(), attribute_type_to_cpp_type(), blender::bke::Attribute::data(), blender::data, blender::bke::Attribute::data_type(), blender::bke::Attribute::domain(), ensure_array_storage(), blender::bke::Attribute::ArrayData::from_value(), Single, and blender::bke::Attribute::storage_type().
Referenced by ensure_array_storage(), and rename_attributes().
| std::string blender::bke::ensure_is_valid_project_variable_name | ( | StringRef | name | ) |
Turn the given string into a valid project variable name.
This is accomplished via simple substitution of non-allowed characters.
The resulting string will pass is_valid_project_variable_name() above.
Definition at line 375 of file blender_project.cc.
References ensure_is_valid_project_variable_name().
Referenced by ensure_is_valid_project_variable_name(), is_valid_project_variable_name(), blender::bke::BlenderProject::new_variable(), and blender::bke::BlenderProject::rename_variable().
| blender::bke::ENUM_OPERATORS | ( | ShaderNodeAncestorFlags | ) |
References ENUM_OPERATORS().
Referenced by ENUM_OPERATORS(), and ENUM_OPERATORS().
| blender::bke::ENUM_OPERATORS | ( | SoundTags | ) |
References ENUM_OPERATORS().
|
static |
Definition at line 457 of file curve_to_mesh_convert.cc.
References blender::CURVE_TYPE_POLY, blender::Vector< T, InlineBufferCapacity, Allocator >::data(), evaluate_attribute(), blender::GVArrayCommon::get_internal_span(), blender::GVArrayCommon::is_span(), blender::GVArrayCommon::materialize(), blender::Vector< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::CPPType::size, and blender::GVArrayCommon::type().
Referenced by build_mesh_positions(), copy_main_point_domain_attribute_to_mesh(), curve_to_mesh_sweep(), and evaluate_attribute().
|
static |
Definition at line 1053 of file curves_geometry.cc.
References blender::bke::EvalData::all_bezier_evaluated_offsets, blender::GMutableSpan::copy_from(), blender::CURVE_TYPE_BEZIER, blender::CURVE_TYPE_CATMULL_ROM, blender::CURVE_TYPE_NURBS, blender::CURVE_TYPE_POLY, blender::bke::EvalData::cyclic, evaluate_generic_data_for_curve(), blender::bke::curves::bezier::interpolate_to_evaluated(), blender::bke::curves::catmull_rom::interpolate_to_evaluated(), blender::bke::curves::nurbs::interpolate_to_evaluated(), blender::bke::EvalData::nurbs_basis_cache, blender::bke::EvalData::nurbs_orders, blender::bke::EvalData::nurbs_weights, blender::bke::curves::per_curve_point_offsets_range(), blender::bke::EvalData::points_by_curve, blender::bke::EvalData::resolution, and blender::bke::EvalData::types.
Referenced by evaluate_generic_data_for_curve(), blender::bke::CurvesGeometry::evaluated_normals(), blender::bke::CurvesGeometry::interpolate_to_evaluated(), and blender::bke::CurvesGeometry::interpolate_to_evaluated().
|
static |
Definition at line 147 of file file_handler.cc.
References blender::Span< T >::drop_front(), extensions_common_prefix(), and blender::Span< T >::first().
Referenced by extensions_common_prefix(), extensions_group_is_collapsible(), and blender::bke::FileHandlerType::label_with_extensions().
|
static |
Definition at line 161 of file file_handler.cc.
References extensions_common_prefix(), and extensions_group_is_collapsible().
Referenced by extensions_group_is_collapsible(), and blender::bke::FileHandlerType::label_with_extensions().
| void blender::bke::file_handler_add | ( | std::unique_ptr< FileHandlerType > | file_handler | ) |
Adds a new file_handler to the file_handlers list, also loads all the file extensions from the formatted FileHandlerType.file_extensions_str string to FileHandlerType.file_extensions list.
The new file_handler is expected to have a unique FileHandlerType.idname.
Load all extensions from the string list into the list.
Definition at line 44 of file file_handler.cc.
References blender::BLI_assert(), blender::BLI_strchr_or_end(), file_handler_add(), file_handler_find(), and file_handlers_vector().
Referenced by file_handler_add(), and blender::bke::tests::file_handler_add_test().
| FileHandlerType * blender::bke::file_handler_find | ( | StringRef | idname | ) |
Returns a file_handler that have a specific idname, otherwise return nullptr.
Definition at line 31 of file file_handler.cc.
References blender::begin(), file_handler_find(), and file_handlers().
Referenced by blender::blo_do_versions_403(), blender::ed::object::collection_exporter_add_exec(), blender::ed::object::collection_exporter_export(), blender::ed::object::collection_importer_add_ensure(), blender::ed::object::collection_importer_import_exec(), file_handler_add(), file_handler_find(), blender::ui::template_collection_exporters(), blender::ui::template_collection_importer(), blender::bke::tests::TEST_F(), and blender::bke::tests::TEST_F().
| void blender::bke::file_handler_remove | ( | FileHandlerType * | file_handler | ) |
Removes and frees a specific file_handler from the file_handlers list, the file_handler pointer will be not longer valid for use.
Definition at line 64 of file file_handler.cc.
References file_handler_remove(), and file_handlers_vector().
Referenced by file_handler_remove(), and blender::bke::tests::TEST_F().
| Span< std::unique_ptr< FileHandlerType > > blender::bke::file_handlers | ( | ) |
Return pointers to all registered file handlers.
Definition at line 26 of file file_handler.cc.
References file_handlers(), and file_handlers_vector().
Referenced by blender::ed::object::collection_exporter_menu_draw(), blender::ed::object::collection_importer_menu_draw(), blender::drop_import_file_poll_file_handlers(), blender::drop_import_file_tooltip(), blender::bke::tests::file_handler_add_test(), file_handler_find(), file_handlers(), file_handlers_poll_file_drop(), file_handlers_vector(), blender::bke::tests::TEST_F(), blender::bke::tests::TEST_F(), blender::ed::vse::test_single_file_handler_poll(), blender::wm_drop_import_file_exec(), and blender::wm_drop_import_file_invoke().
| Vector< FileHandlerType * > blender::bke::file_handlers_poll_file_drop | ( | const bContext * | C, |
| const Span< std::string > | paths ) |
Return a vector of file handlers that support any file path in paths and the call to poll_drop returns true. Caller must check if each file handler have a valid import_operator.
Definition at line 72 of file file_handler.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), blender::BLI_path_extension(), blender::BLI_strcaseeq(), C, blender::bke::FileHandlerType::file_extensions, file_handlers(), file_handlers_poll_file_drop(), blender::bke::FileHandlerType::poll_drop, and blender::result.
Referenced by blender::drop_import_file_poll_file_handlers(), file_handlers_poll_file_drop(), and blender::ed::vse::test_single_file_handler_poll().
|
static |
Definition at line 20 of file file_handler.cc.
References file_handlers(), and file_handlers_vector().
Referenced by file_handler_add(), file_handler_remove(), file_handlers(), and file_handlers_vector().
| void blender::bke::fill_attribute_range_default | ( | MutableAttributeAccessor | dst_attributes, |
| AttrDomain | domain, | ||
| const AttributeFilter & | attribute_filter, | ||
| IndexRange | range ) |
Definition at line 945 of file attribute_access.cc.
References blender::bke::AttributeFilter::allow_skip(), attribute, blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, blender::data, blender::bke::AttributeIter::data_type, blender::Default, blender::bke::AttributeIter::domain, blender::CPPType::fill_assign_n(), fill_attribute_range_default(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), blender::GPointer::get(), get_default_for_fill(), blender::IndexRange::is_empty(), blender::CPPType::is_equal(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeIter::name, PRF_scope, blender::CommonVArrayInfo::Single, String, blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by blender::ed::curves::add_curves(), blender::geometry::add_curves_on_mesh(), blender::ed::curves::pen_tool::add_single_point_and_curve(), blender::ed::curves::curves_draw_exec(), fill_attribute_range_default(), blender::ed::greasepencil::grease_pencil_primitive_init_curves(), blender::ed::greasepencil::grease_pencil_primitive_update_curves(), blender::mesh_add_edges(), blender::mesh_add_faces(), blender::mesh_add_loops(), blender::mesh_add_verts(), blender::pointcloud_resize(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_extension_sample(), blender::ed::sculpt_paint::greasepencil::PaintOperationExecutor::process_start_sample(), and blender::ed::sculpt_paint::set_fill_attributes().
|
static |
Definition at line 257 of file curve_to_mesh_convert.cc.
References build_point_matrix(), fill_mesh_positions(), blender::Span< T >::first(), blender::Span< T >::index_range(), blender::Span< T >::size(), and blender::math::transform_point().
Referenced by build_mesh_positions(), and fill_mesh_positions().
|
static |
Definition at line 45 of file curve_to_mesh_convert.cc.
References fill_mesh_topology(), has_caps(), blender::IndexRange::IndexRange(), blender::bke::curves::segments_num(), and segments_num_no_duplicate_edge().
Referenced by curve_to_mesh_sweep(), and fill_mesh_topology().
|
static |
Definition at line 270 of file attribute_storage_access.cc.
References find_attr_or_group(), find_vertex_group(), and storage.
Referenced by find_attr_or_group(), and rename_attributes().
|
static |
Definition at line 395 of file mesh_validate.cc.
References blender::bke::ErrorMessages::add(), find_duplicate_faces(), blender::index_mask::IndexMask::foreach_index(), and blender::offset_indices::OffsetIndices< T >::size().
| IndexMask blender::bke::find_duplicate_faces | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| const IndexMask & | mask, | ||
| IndexMaskMemory & | memory, | ||
| MutableSpan< int > | r_originals = {} ) |
Find faces that use the same vertices as another face, in either winding direction. For every group of duplicates, the face that comes first in the mask isn't a part of the result. The faces must not contain the same vertex more than once.
| r_originals | Optional array with an element for every face, where the face that each duplicate face duplicates is stored. |
Definition at line 305 of file mesh_validate.cc.
References blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::offset_indices::build_groups_from_indices(), find_duplicate_faces(), blender::exec_mode::grain_size(), blender::array_utils::group_ids_to_indices(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::threading::parallel_for(), sign(), blender::offset_indices::OffsetIndices< T >::size(), blender::Span< T >::size(), and blender::Span< T >::slice().
Referenced by find_duplicate_faces(), find_duplicate_faces(), mesh_validate_impl(), and blender::geometry::weld_face_find_doubles().
|
static |
Definition at line 89 of file mesh_validate.cc.
References blender::IndexRange::contains(), find_edges_bad_verts(), blender::IndexMask::from_predicate(), blender::if(), and blender::Span< T >::index_range().
Referenced by find_edges_bad_verts(), and mesh_validate_impl().
|
static |
Definition at line 119 of file mesh_validate.cc.
References blender::bke::ErrorMessages::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), find_edges_duplicates(), blender::IndexMask::from_bits(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of(), and blender::Span< T >::size().
Referenced by find_edges_duplicates(), and mesh_validate_impl().
|
static |
Definition at line 269 of file mesh_validate.cc.
References blender::bke::ErrorMessages::add(), blender::IndexRange::contains(), blender::bke::mesh::face_corner_next(), find_faces_bad_edges(), blender::IndexMask::from_predicate(), blender::exec_mode::grain_size(), and blender::index_mask::IndexMask::is_empty().
Referenced by find_faces_bad_edges(), and mesh_validate_impl().
|
static |
Definition at line 140 of file mesh_validate.cc.
References blender::bke::ErrorMessages::add(), find_faces_bad_offsets(), blender::Span< T >::first(), blender::IndexMask::from_batch_predicate(), blender::IndexMask::IndexMask(), blender::IndexRange::IndexRange(), blender::Span< T >::last(), and blender::OffsetSpan< T, BaseT >::offset().
Referenced by find_faces_bad_offsets(), and mesh_validate_impl().
|
static |
Definition at line 186 of file mesh_validate.cc.
References blender::bke::ErrorMessages::add(), blender::IndexRange::contains(), find_faces_bad_verts(), blender::IndexMask::from_predicate(), blender::exec_mode::grain_size(), and blender::Span< T >::slice().
Referenced by find_faces_bad_verts(), and mesh_validate_impl().
|
static |
Definition at line 211 of file mesh_validate.cc.
References blender::bke::ErrorMessages::add(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), find_faces_duplicate_verts(), blender::IndexMask::from_predicate(), blender::exec_mode::grain_size(), and blender::Span< T >::slice().
Referenced by find_faces_duplicate_verts(), mesh_find_faces_duplicate_verts(), and mesh_validate_impl().
|
static |
Definition at line 237 of file mesh_validate.cc.
References blender::bke::ErrorMessages::add(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bke::mesh::face_corner_next(), find_faces_missing_edges(), blender::IndexMask::from_predicate(), blender::exec_mode::grain_size(), blender::OrderedEdge::v_high, and blender::OrderedEdge::v_low.
Referenced by find_faces_missing_edges(), and mesh_validate_impl().
|
static |
Definition at line 385 of file mesh_remesh_voxel.cc.
References find_nearest_edges(), blender::MutableSpan< T >::index_range(), and blender::threading::parallel_for().
Referenced by find_nearest_edges(), and mesh_remesh_reproject_attributes().
|
static |
Definition at line 357 of file mesh_remesh_voxel.cc.
References find_nearest_faces(), blender::offset_indices::OffsetIndices< T >::index_range(), and blender::threading::parallel_for().
Referenced by find_nearest_faces(), and mesh_remesh_reproject_attributes().
|
static |
Definition at line 329 of file mesh_remesh_voxel.cc.
References blender::BLI_assert(), blender::bke::bvh::Tree::closest_point(), find_nearest_tris(), blender::Span< T >::index_range(), and blender::MutableSpan< T >::is_empty().
Referenced by find_nearest_tris().
|
static |
Definition at line 344 of file mesh_remesh_voxel.cc.
References find_nearest_tris_parallel(), blender::MutableSpan< T >::index_range(), and blender::threading::parallel_for().
Referenced by find_nearest_tris_parallel(), and mesh_remesh_reproject_attributes().
|
static |
Definition at line 244 of file attribute_storage_access.cc.
References find_vertex_group().
Referenced by find_attr_or_group(), and find_vertex_group().
|
static |
Definition at line 34 of file node_tree_zones.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), all_zone_types(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), blender::Vector< T, InlineBufferCapacity, Allocator >::extend(), find_zone_nodes(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_default(), node, and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by discover_tree_zones(), and find_zone_nodes().
|
static |
Definition at line 22 of file mesh_flip_faces.cc.
References blender::data, flip_corner_data(), blender::index_mask::IndexMask::foreach_index(), and blender::exec_mode::grain_size().
Referenced by flip_corner_data(), and flip_custom_data_type().
|
static |
Definition at line 31 of file mesh_flip_faces.cc.
References blender::BLI_assert(), blender::CustomData_get_layer_n_for_write(), blender::CustomData_number_of_layers(), blender::CustomData_sizeof(), blender::data, flip_corner_data(), flip_custom_data_type(), blender::IndexRange::IndexRange(), blender::MutableSpan< T >::MutableSpan(), T, and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by flip_custom_data_type(), and mesh_flip_faces().
|
static |
Definition at line 128 of file type_conversions.cc.
References float2_to_bool(), and blender::math::is_zero().
Referenced by float2_to_bool().
|
static |
Definition at line 140 of file type_conversions.cc.
References blender::color::encode(), float2_to_byte_color(), and float2_to_color().
Referenced by float2_to_byte_color().
|
static |
Definition at line 136 of file type_conversions.cc.
References float2_to_color().
Referenced by float2_to_byte_color(), and float2_to_color().
Definition at line 108 of file type_conversions.cc.
References float2_to_float().
Referenced by float2_to_float(), int2_to_float(), and short2_to_float().
Definition at line 100 of file type_conversions.cc.
References float2_to_float3().
Referenced by float2_to_float3().
Definition at line 104 of file type_conversions.cc.
References float2_to_float4().
Referenced by float2_to_float4().
|
static |
Definition at line 112 of file type_conversions.cc.
References float2_to_int().
Referenced by float2_to_int().
Definition at line 120 of file type_conversions.cc.
References float2_to_int2().
Referenced by float2_to_int2().
Definition at line 124 of file type_conversions.cc.
References float2_to_int3().
Referenced by float2_to_int3().
Definition at line 132 of file type_conversions.cc.
References float2_to_int8(), and float_to_int8().
Referenced by float2_to_int8().
|
static |
Definition at line 144 of file type_conversions.cc.
References float2_to_quaternion(), and blender::math::to_quaternion().
Referenced by float2_to_quaternion().
Definition at line 116 of file type_conversions.cc.
References float2_to_short2().
Referenced by float2_to_short2().
|
static |
Definition at line 149 of file type_conversions.cc.
References float3_to_bool(), and blender::math::is_zero().
Referenced by float3_to_bool().
|
static |
Definition at line 189 of file type_conversions.cc.
References blender::color::encode(), float3_to_byte_color(), and float3_to_color().
Referenced by float3_to_byte_color().
|
static |
Definition at line 185 of file type_conversions.cc.
References float3_to_color().
Referenced by float3_to_byte_color(), and float3_to_color().
Definition at line 157 of file type_conversions.cc.
References float3_to_float().
Referenced by float3_to_float(), and int3_to_float().
Definition at line 177 of file type_conversions.cc.
References float3_to_float2().
Referenced by float3_to_float2().
Definition at line 181 of file type_conversions.cc.
References float3_to_float4().
Referenced by float3_to_float4().
|
static |
Definition at line 161 of file type_conversions.cc.
References float3_to_int().
Referenced by float3_to_int(), and int3_to_int().
Definition at line 169 of file type_conversions.cc.
References float3_to_int2().
Referenced by float3_to_int2().
Definition at line 173 of file type_conversions.cc.
References float3_to_int3().
Referenced by float3_to_int3().
Definition at line 153 of file type_conversions.cc.
References float3_to_int8(), and float_to_int8().
Referenced by float3_to_int8().
|
static |
Definition at line 193 of file type_conversions.cc.
References float3_to_quaternion(), and blender::math::to_quaternion().
Referenced by float3_to_quaternion().
Definition at line 165 of file type_conversions.cc.
References float3_to_short2().
Referenced by float3_to_short2().
|
static |
Definition at line 198 of file type_conversions.cc.
References float4_to_bool(), and blender::math::is_zero().
Referenced by float4_to_bool().
|
static |
Definition at line 238 of file type_conversions.cc.
References blender::color::encode(), float4_to_byte_color(), and float4_to_color().
Referenced by float4_to_byte_color().
|
static |
Definition at line 234 of file type_conversions.cc.
References float4_to_color().
Referenced by float4_to_byte_color(), and float4_to_color().
Definition at line 206 of file type_conversions.cc.
References float4_to_float().
Referenced by float4_to_float().
Definition at line 226 of file type_conversions.cc.
References float4_to_float2().
Referenced by float4_to_float2().
Definition at line 230 of file type_conversions.cc.
References float4_to_float3().
Referenced by float4_to_float3().
|
static |
Definition at line 210 of file type_conversions.cc.
References float4_to_int().
Referenced by float4_to_int().
Definition at line 218 of file type_conversions.cc.
References float4_to_int2().
Referenced by float4_to_int2().
Definition at line 222 of file type_conversions.cc.
References float4_to_int3().
Referenced by float4_to_int3().
Definition at line 202 of file type_conversions.cc.
References float4_to_int8(), and float_to_int8().
Referenced by float4_to_int8().
|
static |
Definition at line 242 of file type_conversions.cc.
References float4_to_quaternion().
Referenced by float4_to_quaternion().
Definition at line 214 of file type_conversions.cc.
References float4_to_short2().
Referenced by float4_to_short2().
|
static |
Definition at line 608 of file type_conversions.cc.
References float4x4_to_quaternion(), blender::math::normalize(), and blender::math::normalized_to_quaternion_safe().
Referenced by float4x4_to_quaternion().
|
static |
Definition at line 78 of file type_conversions.cc.
References float_to_bool().
Referenced by float_to_bool().
|
static |
Definition at line 91 of file type_conversions.cc.
References blender::color::encode(), float_to_byte_color(), and float_to_color().
Referenced by float_to_byte_color().
|
static |
Definition at line 87 of file type_conversions.cc.
References float_to_color().
Referenced by float_to_byte_color(), and float_to_color().
Definition at line 50 of file type_conversions.cc.
References float_to_float2().
Referenced by float_to_float2().
Definition at line 54 of file type_conversions.cc.
References float_to_float3().
Referenced by float_to_float3().
Definition at line 58 of file type_conversions.cc.
References float_to_float4().
Referenced by float_to_float4().
Definition at line 62 of file type_conversions.cc.
References float_to_int().
Referenced by float_to_int().
Definition at line 70 of file type_conversions.cc.
References float_to_int2().
Referenced by float_to_int2().
Definition at line 74 of file type_conversions.cc.
References float_to_int3().
Referenced by float_to_int3().
Definition at line 82 of file type_conversions.cc.
References float_to_int8().
Referenced by float2_to_int8(), float3_to_int8(), float4_to_int8(), and float_to_int8().
|
static |
Definition at line 95 of file type_conversions.cc.
References float_to_quaternion(), and blender::math::to_quaternion().
Referenced by float_to_quaternion().
Definition at line 66 of file type_conversions.cc.
References float_to_short2().
Referenced by float_to_short2().
|
static |
Definition at line 505 of file curve_to_mesh_convert.cc.
References blender::bke::ResultOffsets::edge, blender::bke::CurvesGeometry::evaluated_points_by_curve(), blender::bke::ResultOffsets::face, foreach_curve_combination(), blender::bke::ResultOffsets::loop, blender::bke::CurvesInfo::main, blender::threading::parallel_for(), blender::bke::CurvesInfo::profile, blender::bke::ResultOffsets::total, and blender::bke::ResultOffsets::vert.
Referenced by build_mesh_positions(), curve_to_mesh_sweep(), foreach_curve_combination(), and write_sharp_bezier_edges().
|
static |
Definition at line 755 of file mesh_attributes.cc.
References blender::bke::AttributeIter::accessor, Float, foreach_vertex_group(), blender::bke::AttributeIter::is_builtin, blender::bke::AttributeIter::is_stopped(), Point, and reader_for_vertex_group_index().
Referenced by foreach_vertex_group(), and get_mesh_accessor_functions().
|
static |
Definition at line 39 of file mesh_runtime.cc.
References blender::bke::MeshRuntime::batch_cache, blender::BKE_mesh_batch_cache_free(), and free_batch_cache().
Referenced by blender::BKE_mesh_runtime_clear_cache(), free_batch_cache(), and blender::bke::MeshRuntime::~MeshRuntime().
|
static |
Definition at line 47 of file mesh_runtime.cc.
References blender::bke::MeshRuntime::bvh_cache_corner_tris, blender::bke::MeshRuntime::bvh_cache_corner_tris_no_hidden, blender::bke::MeshRuntime::bvh_cache_edges, blender::bke::MeshRuntime::bvh_cache_faces, blender::bke::MeshRuntime::bvh_cache_loose_edges, blender::bke::MeshRuntime::bvh_cache_loose_edges_no_hidden, blender::bke::MeshRuntime::bvh_cache_loose_verts, blender::bke::MeshRuntime::bvh_cache_loose_verts_no_hidden, blender::bke::MeshRuntime::bvh_embree_edges_cache, blender::bke::MeshRuntime::bvh_embree_tris_cache, blender::bke::MeshRuntime::bvh_embree_verts_cache, and free_bvh_caches().
Referenced by blender::BKE_mesh_runtime_clear_geometry(), and free_bvh_caches().
|
static |
Definition at line 5205 of file node.cc.
References free_localized_node_groups(), blender::bNodeTree::id, blender::ID_TAG_LOCALIZED, node, node_tree_free_tree(), blender::bNodeTree::nodes, and blender::ID::tag.
Referenced by free_localized_node_groups(), and ntree_free_data().
|
static |
Definition at line 31 of file mesh_runtime.cc.
References blender::BKE_id_free(), free_mesh_eval(), and blender::bke::MeshRuntime::mesh_eval.
Referenced by blender::BKE_mesh_runtime_clear_cache(), free_mesh_eval(), and blender::bke::MeshRuntime::~MeshRuntime().
| void blender::bke::gather_attributes | ( | AttributeAccessor | src_attributes, |
| AttrDomain | src_domain, | ||
| AttrDomain | dst_domain, | ||
| const AttributeFilter & | attribute_filter, | ||
| const IndexMask & | selection, | ||
| MutableAttributeAccessor | dst_attributes ) |
Definition at line 708 of file attribute_access.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeFilter::allow_skip(), blender::GSpan::data(), blender::bke::AttributeIter::data_type, blender::Default, blender::bke::AttributeIter::domain, blender::bke::AttributeAccessor::domain_size(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::array_utils::gather(), gather_attributes(), blender::bke::AttributeIter::get(), blender::GVArrayCommon::get_internal_span(), blender::bke::subdiv::init(), blender::GVArrayCommon::is_span(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, PRF_scope, blender::bke::GAttributeReader::sharing_info, blender::index_mask::IndexMask::size(), blender::bke::GSpanAttributeWriter::span, String, try_add_single_value_attribute(), and blender::bke::GAttributeReader::varray.
Referenced by blender::BPy_GeometrySet_get_instances_pointcloud(), blender::build_concurrent(), blender::build_sequential(), blender::geometry::copy_and_mix_attributes(), blender::geometry::copy_and_reorder_curves(), blender::geometry::copy_and_reorder_instaces(), blender::geometry::copy_and_reorder_mesh_edges(), blender::geometry::copy_and_reorder_mesh_faces(), blender::geometry::copy_and_reorder_mesh_verts(), blender::geometry::copy_and_reorder_points(), copy_attributes(), blender::ed::curves::copy_data_to_geometry(), blender::ed::pointcloud::copy_selection(), blender::geometry::create_curve_from_vert_indices(), blender::ed::greasepencil::boolean::create_curves_from_segments(), blender::create_dashes(), blender::create_envelope_strokes(), blender::nodes::node_geo_points_to_curves_cc::curve_from_points(), curves_copy_curve_selection(), blender::nodes::node_geo_points_to_curves_cc::curves_from_points(), blender::geometry::extend_curves(), blender::geometry::extract_curves(), blender::geometry::extract_curves_points(), blender::geometry::extract_greasepencil_layer_curves(), blender::geometry::extract_greasepencil_layer_points(), blender::geometry::extract_greasepencil_layers(), blender::geometry::extract_instances(), blender::geometry::extract_pointcloud_points(), blender::ed::curves::pen_tool::extrude_curves(), blender::ed::greasepencil::extrude_grease_pencil_curves(), gather_attributes(), gather_attributes(), gather_attributes(), blender::geometry::gather_vert_attributes(), blender::ed::greasepencil::grease_pencil_separate_layer(), blender::ed::greasepencil::grease_pencil_separate_material(), blender::ed::greasepencil::grease_pencil_separate_selected(), blender::ed::curves::pen_tool::insert_point_to_curve(), blender::geometry::join_curves_ranges(), blender::geometry::mesh_copy_selection(), blender::geometry::mesh_copy_selection_keep_edges(), blender::geometry::mesh_copy_selection_keep_verts(), blender::geometry::mesh_faces_to_curves_convert(), mesh_remesh_reproject_attributes(), blender::bke::Instances::remove(), blender::geometry::remove_points_and_split(), blender::geometry::reorder_and_flip_curves(), blender::reorder_cyclic_curve_points(), blender::geometry::separate_grease_pencil_layer_selection(), and blender::geometry::separate_pointcloud_selection().
| void blender::bke::gather_attributes | ( | AttributeAccessor | src_attributes, |
| AttrDomain | src_domain, | ||
| AttrDomain | dst_domain, | ||
| const AttributeFilter & | attribute_filter, | ||
| Span< int > | indices, | ||
| MutableAttributeAccessor | dst_attributes ) |
Fill the destination attribute by gathering indexed values from src attributes.
Definition at line 749 of file attribute_access.cc.
References blender::bke::AttributeFilter::allow_skip(), copy_attributes(), blender::bke::AttributeIter::data_type, blender::Default, blender::bke::AttributeIter::domain, blender::bke::AttributeAccessor::domain_size(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::attribute_math::gather(), gather_attributes(), blender::bke::AttributeIter::get(), blender::IndexRange::IndexRange(), blender::array_utils::indices_are_range(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, PRF_scope, blender::bke::GSpanAttributeWriter::span, String, try_add_single_value_attribute(), and blender::bke::GAttributeReader::varray.
|
static |
Definition at line 443 of file mesh_remesh_voxel.cc.
References cpp_type_to_attribute_type(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::attribute_math::gather(), gather_attributes(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::GSpanAttributeWriter::span, and blender::GSpan::type().
| void blender::bke::gather_attributes_group_to_group | ( | AttributeAccessor | src_attributes, |
| AttrDomain | src_domain, | ||
| AttrDomain | dst_domain, | ||
| const AttributeFilter & | attribute_filter, | ||
| OffsetIndices< int > | src_offsets, | ||
| OffsetIndices< int > | dst_offsets, | ||
| const IndexMask & | selection, | ||
| MutableAttributeAccessor | dst_attributes ) |
Copy attribute values from groups defined by src_offsets to groups defined by dst_offsets. The group indices are gathered to the result by selection. The size of each source and result group must be the same.
Definition at line 789 of file attribute_access.cc.
References blender::bke::AttributeFilter::allow_skip(), copy_attributes(), blender::bke::AttributeIter::data_type, blender::Default, blender::bke::AttributeIter::domain, blender::bke::AttributeAccessor::domain_size(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), gather_attributes_group_to_group(), blender::bke::attribute_math::gather_group_to_group(), blender::bke::AttributeIter::get(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, PRF_scope, blender::index_mask::IndexMask::size(), blender::offset_indices::OffsetIndices< T >::size(), blender::bke::GSpanAttributeWriter::span, String, and try_add_single_value_attribute().
Referenced by curves_copy_curve_selection(), gather_attributes_group_to_group(), blender::geometry::mesh_copy_selection(), blender::geometry::mesh_copy_selection_keep_edges(), blender::geometry::mesh_copy_selection_keep_verts(), and blender::geometry::mesh_faces_to_curves_convert().
| void blender::bke::gather_attributes_to_groups | ( | AttributeAccessor | src_attributes, |
| AttrDomain | src_domain, | ||
| AttrDomain | dst_domain, | ||
| const AttributeFilter & | attribute_filter, | ||
| OffsetIndices< int > | dst_offsets, | ||
| const IndexMask & | src_selection, | ||
| MutableAttributeAccessor | dst_attributes ) |
Definition at line 833 of file attribute_access.cc.
References blender::bke::AttributeFilter::allow_skip(), blender::bke::AttributeIter::data_type, blender::Default, blender::bke::AttributeIter::domain, blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::foreach_attribute(), gather_attributes_to_groups(), blender::bke::attribute_math::gather_to_groups(), blender::bke::AttributeIter::get(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, PRF_scope, blender::bke::GSpanAttributeWriter::span, String, and try_add_single_value_attribute().
Referenced by blender::nodes::node_geo_duplicate_elements_cc::duplicate_instances(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_layers(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_CurvesGeometry(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_mesh(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_pointcloud(), and gather_attributes_to_groups().
|
static |
Definition at line 725 of file geometry_set.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), blender::bke::Instances::foreach_referenced_geometry(), gather_component_types_recursive(), blender::bke::GeometrySet::get_components(), and blender::bke::GeometrySet::get_instances().
Referenced by blender::bke::GeometrySet::gather_component_types(), and gather_component_types_recursive().
| void blender::bke::gather_deform_verts | ( | Span< MDeformVert > | src, |
| const IndexMask & | indices, | ||
| MutableSpan< MDeformVert > | dst ) |
Definition at line 1795 of file deform.cc.
References blender::Default, blender::index_mask::IndexMask::foreach_index(), gather_deform_verts(), blender::exec_mode::grain_size(), and PRF_scope.
| void blender::bke::gather_deform_verts | ( | Span< MDeformVert > | src, |
| Span< int > | indices, | ||
| const IndexMask & | dst_mask, | ||
| MutableSpan< MDeformVert > | dst ) |
Definition at line 1780 of file deform.cc.
References blender::Default, blender::index_mask::IndexMask::foreach_index(), gather_deform_verts(), blender::exec_mode::grain_size(), and PRF_scope.
| void blender::bke::gather_deform_verts | ( | Span< MDeformVert > | src, |
| Span< int > | indices, | ||
| MutableSpan< MDeformVert > | dst ) |
Definition at line 1774 of file deform.cc.
References gather_deform_verts(), and blender::Span< T >::size().
Referenced by gather_deform_verts(), gather_deform_verts(), gather_deform_verts(), blender::geometry::gather_vert_attributes(), blender::nodes::node_geo_extrude_mesh_cc::gather_vert_attributes(), blender::nodes::node_geo_extrude_mesh_cc::gather_vert_attributes(), blender::geometry::mix_vertex_groups(), and blender::geometry::propagate_vert_attributes().
Definition at line 446 of file instances.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), generate_unique_instance_ids(), blender::RandomNumberGenerator::get_int32(), blender::Span< T >::index_range(), blender::IndexRange::IndexRange(), instance_index, INT32_MAX, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_cb(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::reserve(), blender::RandomNumberGenerator::seed_random(), and blender::Span< T >::size().
Referenced by generate_unique_instance_ids(), and blender::bke::Instances::unique_ids().
| std::optional< eNodeSocketDatatype > blender::bke::geo_nodes_base_cpp_type_to_socket_type | ( | const CPPType & | type | ) |
Definition at line 6008 of file node.cc.
References geo_nodes_base_cpp_type_to_socket_type(), blender::CPPType::is(), blender::CPPType::is_any(), blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, and blender::SOCK_VECTOR.
Referenced by geo_nodes_base_cpp_type_to_socket_type(), blender::nodes::node_geo_rasterize_points::node_declare(), blender::nodes::node_geo_list_get_item_cc::node_geo_exec(), node_is_dangling_reroute(), blender::nodes::socket_type_for_value_variant(), and blender::nodes::socket_type_info_by_static_type().
|
static |
Definition at line 257 of file mesh_data_update.cc.
References geometry_mesh_edit_hints_ensure(), and blender::bke::GeometryComponentEditData::mesh_edit_hints_.
Referenced by editbmesh_calc_modifiers(), geometry_mesh_edit_hints_ensure(), and mesh_calc_modifiers().
|
static |
Definition at line 303 of file armature_deform.cc.
References blender::ARM_DEF_ENVELOPE, blender::ARM_DEF_INVERT_VGROUP, blender::ARM_DEF_VGROUP, blender::bke::ArmatureDeformParams::armature, blender::bke::ArmatureDeformParams::armature_def_nr, blender::bke::ArmatureDeformParams::armature_to_target, blender::BKE_defgroup_name_index(), blender::BKE_object_supports_vertex_groups(), blender::BKE_pose_channel_find_name(), blender::BKE_pose_ensure_bone_indices(), blender::BONE_NO_DEFORM, blender::bPose::chanbase, blender::Object::data, blender::Bone::flag, get_armature_deform_params(), blender::math::invert(), blender::bke::ArmatureDeformParams::invert_vgroup, blender::Object::pose, blender::bke::ArmatureDeformParams::pose_channel_by_vertex_group, blender::bke::ArmatureDeformParams::pose_channels, blender::bke::ArmatureDeformParams::target_to_armature, blender::bke::ArmatureDeformParams::use_dverts, blender::bke::ArmatureDeformParams::use_envelope, blender::bke::ArmatureDeformParams::vert_coords, blender::bke::ArmatureDeformParams::vert_coords_prev, and blender::bke::ArmatureDeformParams::vert_deform_mats.
Referenced by armature_deform_coords(), armature_deform_editmesh(), and get_armature_deform_params().
|
static |
Definition at line 412 of file curve_to_mesh_convert.cc.
References get_attribute_domain_for_mesh(), blender::bke::AttributeAccessor::is_builtin(), blender::bke::AttributeAccessor::lookup_meta_data(), and Point.
Referenced by curve_to_mesh_sweep(), and get_attribute_domain_for_mesh().
|
static |
Definition at line 1577 of file blenkernel/intern/modifier.cc.
References get_current_time_in_seconds().
Referenced by get_current_time_in_seconds(), blender::bke::ScopedModifierTimer::ScopedModifierTimer(), and blender::bke::ScopedModifierTimer::~ScopedModifierTimer().
|
static |
Definition at line 1089 of file curve_to_mesh_convert.cc.
References blender::CURVE_TYPE_POLY, and get_curve_single_vert().
Referenced by curve_to_wire_mesh(), and get_curve_single_vert().
|
static |
Definition at line 294 of file curve_to_mesh_convert.cc.
References get_curves_info(), and main.
Referenced by curve_to_mesh_sweep(), and get_curves_info().
|
static |
Definition at line 267 of file attribute_legacy_convert.cc.
References BLI_assert_unreachable, Corner, Edge, Face, get_custom_data(), and Point.
Referenced by get_custom_data(), get_custom_data(), and blender::bke::LegacyMeshInterpolator::LegacyMeshInterpolator().
|
static |
Definition at line 284 of file attribute_legacy_convert.cc.
References get_custom_data().
|
static |
Definition at line 884 of file attribute_access.cc.
References blender::CPPType::default_value(), blender::bke::AttributeAccessor::get_builtin_default(), get_default_for_fill(), blender::GPointer::GPointer(), and blender::bke::AttributeAccessor::is_builtin().
Referenced by copy_attributes_group_to_group(), fill_attribute_range_default(), and get_default_for_fill().
|
static |
Definition at line 86 of file node_tree_zones.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::as_span(), b, blender::bke::ZoneRelation::child, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bits::foreach_1_index(), get_direct_zone_relations(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_try(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_range(), node, blender::bke::ZoneRelation::parent, and blender::Vector< T, InlineBufferCapacity, Allocator >::remove_and_reorder().
Referenced by discover_tree_zones(), and get_direct_zone_relations().
|
static |
Definition at line 289 of file attribute_legacy_convert.cc.
References BLI_assert_unreachable, Corner, Edge, Face, get_domain_size(), and Point.
Referenced by attribute_storage_blend_write_prepare(), get_domain_size(), get_domain_size(), get_mesh_accessor_functions(), and blender::bke::LegacyMeshInterpolator::LegacyMeshInterpolator().
|
static |
Definition at line 699 of file mesh_attributes.cc.
References Corner, Edge, Face, get_domain_size(), and Point.
|
static |
Definition at line 645 of file blenkernel/intern/mesh.cc.
References Corner, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, Float2, get_first_uv_map_name(), blender::bke::AttributeIter::name, and blender::bke::AttributeIter::stop().
Referenced by get_first_uv_map_name(), mesh_ensure_active_uv_map(), and mesh_ensure_default_uv_map().
| const DataTypeConversions & blender::bke::get_implicit_type_conversions | ( | ) |
Definition at line 792 of file type_conversions.cc.
References create_implicit_conversions(), and get_implicit_type_conversions().
Referenced by blender::nodes::GeometryNodesLazyFunctionBuilder::build(), blender::nodes::build_implicit_conversion_lazy_function(), blender::compositor::compute_preview_cpu(), blender::nodes::inverse_eval::convert_single_socket_value(), blender::nodes::node_geo_viewer_cc::draw_generic_value_log(), blender::compositor::ConversionOperation::execute(), blender::nodes::node_geo_get_bundle_item_cc::GetBundleItemOperation::execute(), blender::nodes::node_geo_separate_bundle_cc::SeparateBundleOperation::execute(), get_implicit_type_conversions(), blender::compositor::get_input_socket_value(), blender::nodes::implicitly_convert_socket_value(), blender::ed::mesh::set_attribute::mesh_set_attribute_exec(), blender::nodes::node_geo_sample_uv_surface_cc::node_geo_exec(), blender::nodes::node_geo_set_nurbs_order_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_tool_set_selection_cc::node_geo_exec(), node_socket_move_default_value(), blender::geometry::prepare_attribute_fallbacks(), blender::ed::curves::set_attribute_exec(), blender::ed::pointcloud::set_attribute_exec(), try_adapt_data_type(), blender::bke::detail::SocketValueVariantTypeInfo::try_convert_fn(), blender::nodes::eval_log::NodeTreeLog::try_convert_primitive_socket_value(), and blender::nodes::node_geo_evaluate_closure_cc::EvaluateClosureOperation::write_outputs().
|
staticconstexpr |
Definition at line 54 of file instances_attributes.cc.
References blender::bke::AttributeIter::accessor, array_storage_required(), blender::bke::Attribute::assign_data(), attribute, attribute_init_to_data(), blender::bke::Instances::attribute_storage(), attribute_to_reader(), attribute_to_writer(), builtin_attributes(), changed_tags(), blender::bke::AttributeInit::Construct, blender::data, blender::bke::Attribute::data_type(), blender::bke::AttrBuiltinInfo::default_value, blender::bke::AttrBuiltinInfo::domain, blender::bke::Attribute::domain(), get_instances_accessor_functions(), Instance, blender::bke::Instances::instances_num(), blender::bke::AttributeIter::is_builtin, blender::bke::AttributeIter::is_stopped(), rename_attributes(), storage, blender::bke::AttributeIter::storage_type, blender::bke::AttrBuiltinInfo::type, and blender::bke::AttrBuiltinInfo::validator.
Referenced by get_instances_accessor_functions(), and instance_attribute_accessor_functions().
|
static |
Common datatype priorities, works for compositor, shader and texture nodes alike defines priority of datatype connection based on output type (to): < 0: never connect these types. >= 0: priority of connection (higher values chosen first).
Definition at line 121 of file node_tree_update.cc.
References get_internal_link_type_priority(), blender::bke::bNodeSocketType::idname, blender::SOCK_BOOLEAN, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_INT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_VECTOR, and blender::bke::bNodeSocketType::type.
Referenced by get_internal_link_type_priority().
|
static |
Definition at line 741 of file mesh_validate.cc.
References blender::Span< T >::begin(), blender::Span< T >::end(), blender::IndexMask::from_predicate(), get_invalid_float_mask(), blender::Span< T >::size(), and blender::Span< T >::slice().
Referenced by get_invalid_float_mask(), and validate_float_attribute().
|
static |
Definition at line 5635 of file node.cc.
References get_known_node_types_set(), node_types_get(), and blender::result.
Referenced by can_read_node_type(), and get_known_node_types_set().
|
static |
Definition at line 831 of file mesh_attributes.cc.
References blender::bke::AttributeIter::accessor, adapt_mesh_attribute_domain(), array_storage_required(), blender::bke::Attribute::assign_data(), attribute_init_to_data(), attribute_to_reader(), attribute_to_writer(), blender::BKE_defgroup_name_index(), builtin_attributes(), changed_tags(), blender::bke::AttributeInit::Construct, Corner, blender::data, blender::bke::Attribute::data_type(), blender::bke::AttrBuiltinInfo::default_value, blender::bke::AttrBuiltinInfo::domain, blender::bke::Attribute::domain(), Edge, ELEM, Face, Float, foreach_vertex_group(), get_domain_size(), get_mesh_accessor_functions(), blender::bke::AttributeIter::is_builtin, blender::bke::AttributeIter::is_stopped(), Point, rename_attributes(), storage, blender::bke::AttributeIter::storage_type, try_delete_vertex_group(), try_get_vertex_group(), try_get_vertex_group_for_write(), blender::bke::AttrBuiltinInfo::type, and blender::bke::AttrBuiltinInfo::validator.
Referenced by get_mesh_accessor_functions(), and mesh_attribute_accessor_functions().
| GMutableSpan blender::bke::get_mutable_attribute | ( | AttributeStorage & | storage, |
| const AttrDomain | domain, | ||
| const CPPType & | cpp_type, | ||
| const StringRef | name, | ||
| const int64_t | domain_size, | ||
| const void * | custom_default_value ) |
Definition at line 188 of file attribute_storage_access.cc.
References blender::BLI_assert(), cpp_type_to_attribute_type(), blender::bke::Attribute::data_for_write(), blender::CPPType::default_value(), blender::bke::Attribute::ArrayData::from_value(), get_mutable_attribute(), blender::GMutableSpan::GMutableSpan(), and storage.
Referenced by blender::bke::CurvesGeometry::curve_types_for_write(), blender::bke::CurvesGeometry::cyclic_for_write(), blender::bke::greasepencil::Drawing::fill_colors_for_write(), get_mutable_attribute(), get_mutable_attribute(), blender::bke::CurvesGeometry::handle_positions_left_for_write(), blender::bke::CurvesGeometry::handle_positions_right_for_write(), blender::bke::CurvesGeometry::handle_types_left_for_write(), blender::bke::CurvesGeometry::handle_types_right_for_write(), blender::bke::CurvesGeometry::normal_mode_for_write(), blender::bke::CurvesGeometry::nurbs_knots_modes_for_write(), blender::bke::CurvesGeometry::nurbs_orders_for_write(), blender::bke::CurvesGeometry::nurbs_weights_for_write(), blender::bke::greasepencil::Drawing::opacities_for_write(), blender::bke::CurvesGeometry::positions_for_write(), blender::bke::greasepencil::Drawing::radii_for_write(), blender::bke::CurvesGeometry::radius_for_write(), blender::bke::Instances::reference_handles_for_write(), blender::bke::CurvesGeometry::resolution_for_write(), blender::bke::CurvesGeometry::surface_uv_coords_for_write(), blender::bke::CurvesGeometry::tilt_for_write(), blender::bke::Instances::transforms_for_write(), and blender::bke::greasepencil::Drawing::vertex_colors_for_write().
|
inline |
Definition at line 91 of file attribute_storage_access.hh.
References blender::CPPType::get(), get_mutable_attribute(), storage, T, and blender::GMutableSpan::typed().
|
static |
Definition at line 5853 of file node.cc.
References blender::BLI_assert(), blender::RandomNumberGenerator::from_random_seed(), blender::RandomNumberGenerator::get_int32(), get_next_auto_legacy_type(), and NODE_LEGACY_TYPE_GENERATION_START.
Referenced by get_next_auto_legacy_type(), and node_type_base().
|
static |
Definition at line 2773 of file node.cc.
References get_node_tree_type_map().
Referenced by get_node_tree_type_map(), node_system_exit(), node_tree_type_add(), node_tree_type_find(), node_tree_type_find_builtin(), node_tree_type_free_link(), and node_tree_types_get().
|
static |
Definition at line 2785 of file node.cc.
References get_node_type_alias_map().
Referenced by get_node_type_alias_map(), node_register_alias(), node_system_exit(), and node_type_find_alias().
|
static |
Definition at line 2779 of file node.cc.
References get_node_type_map().
Referenced by get_node_type_map(), node_register_type(), node_system_exit(), node_type_find(), node_types_get(), and node_unregister_type().
|
static |
Definition at line 92 of file mesh_data_update.cc.
References blender::BKE_key_from_object(), blender::BKE_keyblock_find_by_index(), blender::BKE_mesh_orco_verts_get(), blender::BKE_modifiers_findby_type(), blender::bm, blender::BM_mesh_vert_coords_alloc(), blender::CD_CLOTH_ORCO, blender::CD_ORCO, blender::KeyBlock::data, blender::eModifierType_Cloth, get_orco_coords(), blender::ClothSimSettings::shapekey_rest, blender::ClothModifierData::sim_parms, storage, and blender::KeyBlock::totelem.
Referenced by add_orco_mesh(), create_orco_mesh(), and get_orco_coords().
|
staticconstexpr |
Definition at line 60 of file pointcloud_attributes.cc.
References blender::bke::AttributeIter::accessor, array_storage_required(), blender::bke::Attribute::assign_data(), attribute, attribute_init_to_data(), blender::PointCloud::attribute_storage, attribute_to_reader(), attribute_to_writer(), builtin_attributes(), changed_tags(), blender::bke::AttributeInit::Construct, blender::data, blender::bke::Attribute::data_type(), blender::bke::AttrBuiltinInfo::default_value, blender::bke::AttrBuiltinInfo::domain, blender::bke::Attribute::domain(), get_pointcloud_accessor_functions(), blender::bke::AttributeIter::is_builtin, blender::bke::AttributeIter::is_stopped(), Point, rename_attributes(), storage, blender::bke::AttributeIter::storage_type, blender::PointCloud::totpoint, blender::bke::AttrBuiltinInfo::type, and blender::bke::AttrBuiltinInfo::validator.
Referenced by get_pointcloud_accessor_functions(), and pointcloud_attribute_accessor_functions().
|
static |
Definition at line 536 of file geometry_fields.cc.
References get_random_id_attribute_name(), Instance, and Point.
Referenced by get_random_id_attribute_name(), and blender::bke::IDAttributeFieldInput::get_varray_for_context().
|
static |
Definition at line 2791 of file node.cc.
References get_socket_type_map().
Referenced by get_socket_type_map(), node_register_socket_type(), node_socket_type_find(), node_socket_types_get(), node_system_exit(), and node_unregister_socket_type().
|
staticnodiscard |
Definition at line 4494 of file node.cc.
References blender::bNodeSocket::default_value, blender::bke::bNodeSocketType::get_base_cpp_value, get_socket_value(), blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, blender::bNodeSocket::type, and blender::bNodeSocket::typeinfo.
Referenced by get_socket_value(), and node_socket_move_default_value().
| std::optional< GSpan > blender::bke::get_span_attribute | ( | const AttributeStorage & | storage, |
| const AttrDomain | domain, | ||
| const CPPType & | cpp_type, | ||
| const StringRef | name, | ||
| const int64_t | domain_size ) |
Definition at line 167 of file attribute_storage_access.cc.
References blender::BLI_assert(), blender::bke::Attribute::data(), blender::bke::Attribute::domain(), get_span_attribute(), blender::GSpan::GSpan(), blender::CPPType::size, storage, and UNUSED_VARS_NDEBUG.
Referenced by get_span_attribute(), get_span_attribute(), blender::bke::CurvesGeometry::handle_positions_left(), blender::bke::CurvesGeometry::handle_positions_right(), blender::bke::CurvesGeometry::nurbs_weights(), blender::bke::CurvesGeometry::positions(), blender::bke::Instances::reference_handles(), blender::bke::CurvesGeometry::surface_uv_coords(), and blender::bke::Instances::transforms().
|
inline |
Definition at line 70 of file attribute_storage_access.hh.
References blender::CPPType::get(), get_span_attribute(), storage, and T.
Definition at line 534 of file instances.cc.
References get_transform_position().
Referenced by get_transform_position().
| const bNodeTreeZones * blender::bke::get_tree_zones | ( | const bNodeTree & | tree | ) |
Definition at line 380 of file node_tree_zones.cc.
References discover_tree_zones(), blender::CacheMutex::ensure(), get_tree_zones(), blender::bke::bNodeTreeRuntime::last_valid_zones, blender::bNodeTree::runtime, blender::bke::bNodeTreeRuntime::tree_zones, and blender::bke::bNodeTreeRuntime::tree_zones_cache_mutex.
Referenced by get_tree_zones().
| GVArray blender::bke::get_varray_attribute | ( | const AttributeStorage & | storage, |
| AttrDomain | domain, | ||
| const CPPType & | cpp_type, | ||
| StringRef | name, | ||
| int64_t | domain_size, | ||
| const void * | default_value ) |
Definition at line 131 of file attribute_storage_access.cc.
References Array, cpp_type_to_attribute_type(), blender::bke::Attribute::data(), blender::data, blender::bke::Attribute::data_type(), blender::bke::Attribute::domain(), blender::GVArray::from_single(), blender::GVArray::from_span(), get_varray_attribute(), Single, storage, and blender::bke::Attribute::storage_type().
Referenced by blender::bke::CurvesGeometry::curve_types(), blender::bke::CurvesGeometry::cyclic(), get_varray_attribute(), get_varray_attribute(), blender::bke::CurvesGeometry::handle_types_left(), blender::bke::CurvesGeometry::handle_types_right(), blender::bke::CurvesGeometry::normal_mode(), blender::bke::CurvesGeometry::nurbs_knots_modes(), blender::bke::CurvesGeometry::nurbs_orders(), blender::bke::CurvesGeometry::radius(), blender::bke::CurvesGeometry::resolution(), and blender::bke::CurvesGeometry::tilt().
|
inline |
Definition at line 52 of file attribute_storage_access.hh.
References blender::CPPType::get(), get_varray_attribute(), storage, T, and blender::GVArray::typed().
|
static |
Definition at line 522 of file node_tree_zones.cc.
References get_zone_types_vector().
Referenced by all_zone_types(), get_zone_types_vector(), and register_node_zone_type().
| void blender::bke::grease_pencil_convert_customdata_to_storage | ( | GreasePencil & | grease_pencil | ) |
See mesh_convert_customdata_to_storage.
Definition at line 258 of file attribute_legacy_convert.cc.
References attribute_legacy_convert_customdata_to_storage(), blender::CustomData_reset(), grease_pencil_convert_customdata_to_storage(), and Layer.
Referenced by blender::blo_do_versions_500(), and grease_pencil_convert_customdata_to_storage().
| std::optional< eNodeSocketDatatype > blender::bke::grid_type_to_socket_type | ( | VolumeGridType | type | ) |
Definition at line 6096 of file node.cc.
References grid_type_to_socket_type(), blender::SOCK_BOOLEAN, blender::SOCK_FLOAT, blender::SOCK_INT, blender::SOCK_VECTOR, blender::VOLUME_GRID_BOOLEAN, blender::VOLUME_GRID_FLOAT, blender::VOLUME_GRID_INT, and blender::VOLUME_GRID_VECTOR_FLOAT.
Referenced by blender::nodes::grid_data_type_socket_items_filter_fn(), grid_type_to_socket_type(), blender::nodes::node_geo_store_named_grid_cc::node_declare(), and node_is_dangling_reroute().
| void blender::bke::gtest_setup | ( | ) |
Definition at line 50 of file gtest_setup.cc.
References blender::BKE_appdir_init(), blender::BKE_brush_system_init(), blender::BKE_callback_global_init(), blender::BKE_cpp_types_init(), blender::BKE_icons_init(), blender::BKE_idtype_init(), blender::BKE_materials_init(), blender::BKE_modifier_init(), blender::BKE_particle_init_rng(), blender::BKE_shaderfx_init(), blender::BKE_sound_init_once(), blender::BKE_volumes_init(), blender::BLI_task_scheduler_init(), blender::BLI_threadapi_init(), CLG_init(), blender::DEG_register_node_types(), gtest_setup(), blender::IMB_cache_init(), blender::IMB_init(), blender::fftw::initialize_float(), blender::seq::modifiers_init(), blender::MOV_init(), node_system_init(), blender::RE_engines_init(), blender::RE_texture_rng_init(), blender::fn::multi_function::register_common_functions(), and blender::RNA_init().
Referenced by gtest_setup(), blender::bke::BlenderGTestBase::SetUpTestSuite(), blender::bke::tests::ArmatureDeformTest::SetUpTestSuite(), blender::bke::tests::SceneTest::SetUpTestSuite(), blender::ed::animation::tests::keyframes_paste::SetUpTestSuite(), blender::gpu::GPUTest::SetUpTestSuite(), and blender::io::ply::io_ply_import_gsplat::SetUpTestSuite().
| void blender::bke::gtest_teardown | ( | ) |
Definition at line 82 of file gtest_setup.cc.
References blender::BKE_appdir_exit(), blender::BKE_brush_system_exit(), blender::BKE_callback_global_finalize(), blender::BKE_icons_free(), blender::BKE_materials_exit(), blender::BKE_sound_exit_once(), blender::BLI_task_scheduler_exit(), blender::BLI_threadapi_exit(), CLG_exit(), gtest_teardown(), blender::IMB_cache_destruct(), blender::IMB_exit(), node_system_exit(), blender::RE_engines_exit(), blender::RE_texture_rng_exit(), and blender::RNA_exit().
Referenced by gtest_teardown(), blender::bke::BlenderGTestBase::TearDownTestSuite(), blender::bke::tests::ArmatureDeformTest::TearDownTestSuite(), blender::bke::tests::SceneTest::TearDownTestSuite(), blender::ed::animation::tests::keyframes_paste::TearDownTestSuite(), blender::gpu::GPUTest::TearDownTestSuite(), and blender::io::ply::io_ply_import_gsplat::TearDownTestSuite().
|
static |
Definition at line 38 of file curve_legacy_convert.cc.
References blender::BEZIER_HANDLE_ALIGN, blender::BEZIER_HANDLE_AUTO, blender::BEZIER_HANDLE_FREE, blender::BEZIER_HANDLE_VECTOR, BLI_assert_unreachable, handle_type_from_legacy(), blender::HD_ALIGN, blender::HD_ALIGN_DOUBLESIDE, blender::HD_AUTO, blender::HD_AUTO_ANIM, blender::HD_FREE, and blender::HD_VECT.
Referenced by curve_legacy_to_curves(), and handle_type_from_legacy().
|
inlinestatic |
Definition at line 38 of file curve_to_mesh_convert.cc.
References has_caps().
Referenced by curve_to_mesh_sweep(), fill_mesh_topology(), and has_caps().
|
inline |
Definition at line 15 of file BKE_anonymous_attribute_make.hh.
References hash, and hash_to_anonymous_attribute_name().
Referenced by blender::nodes::LazyFunctionForGeometryNode::anonymous_attribute_name_for_output(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_main_items_and_geometry(), hash_to_anonymous_attribute_name(), and blender::nodes::node_geo_bake_cc::LazyFunctionForBakeNode::make_attribute_field().
|
static |
Definition at line 973 of file geometry_fields.cc.
References blender::CPPType::default_value(), blender::CPPType::fill_construct_n(), blender::bke::AttributeAccessor::get_builtin_default(), initialize_new_data(), blender::bke::AttributeAccessor::is_builtin(), and blender::bke::AttributeAccessor::lookup().
Referenced by initialize_new_data(), and try_capture_fields_on_geometry().
| const AttributeAccessorFunctions & blender::bke::instance_attribute_accessor_functions | ( | ) |
Definition at line 220 of file instances_attributes.cc.
References get_instances_accessor_functions(), and instance_attribute_accessor_functions().
Referenced by blender::bke::Instances::attributes(), blender::bke::InstancesComponent::attributes(), blender::bke::Instances::attributes_for_write(), blender::bke::InstancesComponent::attributes_for_write(), and instance_attribute_accessor_functions().
Definition at line 544 of file instances.cc.
References blender::VArray< T >::from_derived_span(), instance_position_varray(), and blender::bke::Instances::transforms().
Referenced by blender::BPy_GeometrySet_get_instances_pointcloud(), blender::bke::AttributeFieldInput::get_varray_for_context(), and instance_position_varray().
| VMutableArray< float3 > blender::bke::instance_position_varray_for_write | ( | Instances & | instances | ) |
Definition at line 550 of file instances.cc.
References blender::VMutableArray< T >::from_derived_span(), instance_position_varray_for_write(), and blender::bke::Instances::transforms_for_write().
Referenced by instance_position_varray_for_write(), and blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec().
|
static |
Definition at line 338 of file type_conversions.cc.
References int2_to_bool(), and blender::math::is_zero().
Referenced by int2_to_bool().
|
static |
Definition at line 378 of file type_conversions.cc.
References blender::color::encode(), int2_to_byte_color(), and int2_to_color().
Referenced by int2_to_byte_color().
|
static |
Definition at line 374 of file type_conversions.cc.
References int2_to_color().
Referenced by int2_to_byte_color(), and int2_to_color().
Definition at line 362 of file type_conversions.cc.
References float2_to_float(), and int2_to_float().
Referenced by int2_to_float().
Definition at line 342 of file type_conversions.cc.
References int2_to_float2().
Referenced by int2_to_float2().
Definition at line 366 of file type_conversions.cc.
References int2_to_float3().
Referenced by int2_to_float3().
Definition at line 370 of file type_conversions.cc.
References int2_to_float4().
Referenced by int2_to_float4().
|
static |
Definition at line 346 of file type_conversions.cc.
References int2_to_int(), and blender::math::midpoint().
Referenced by int2_to_int(), and int2_to_int8().
Definition at line 350 of file type_conversions.cc.
References int2_to_int3().
Referenced by int2_to_int3().
Definition at line 358 of file type_conversions.cc.
References int2_to_int(), int2_to_int8(), and int_to_int8().
Referenced by int2_to_int8().
Definition at line 354 of file type_conversions.cc.
References int2_to_short2().
Referenced by int2_to_short2().
|
static |
Definition at line 383 of file type_conversions.cc.
References int3_to_bool(), and blender::math::is_zero().
Referenced by int3_to_bool().
|
static |
Definition at line 423 of file type_conversions.cc.
References blender::color::encode(), int3_to_byte_color(), and int3_to_color().
Referenced by int3_to_byte_color().
|
static |
Definition at line 419 of file type_conversions.cc.
References int3_to_color().
Referenced by int3_to_byte_color(), and int3_to_color().
Definition at line 407 of file type_conversions.cc.
References float3_to_float(), and int3_to_float().
Referenced by int3_to_float().
Definition at line 387 of file type_conversions.cc.
References int3_to_float2().
Referenced by int3_to_float2().
Definition at line 411 of file type_conversions.cc.
References int3_to_float3().
Referenced by int3_to_float3().
Definition at line 415 of file type_conversions.cc.
References int3_to_float4().
Referenced by int3_to_float4().
|
static |
Definition at line 391 of file type_conversions.cc.
References float3_to_int(), and int3_to_int().
Referenced by int3_to_int(), and int3_to_int8().
Definition at line 395 of file type_conversions.cc.
References int3_to_int2().
Referenced by int3_to_int2().
Definition at line 403 of file type_conversions.cc.
References int3_to_int(), int3_to_int8(), and int_to_int8().
Referenced by int3_to_int8().
Definition at line 399 of file type_conversions.cc.
References int3_to_short2().
Referenced by int3_to_short2().
|
static |
Definition at line 428 of file type_conversions.cc.
References int8_to_bool().
Referenced by int8_to_bool().
|
static |
Definition at line 468 of file type_conversions.cc.
References blender::color::encode(), int8_to_byte_color(), and int8_to_color().
Referenced by int8_to_byte_color().
|
static |
Definition at line 464 of file type_conversions.cc.
References int8_to_color().
Referenced by int8_to_byte_color(), and int8_to_color().
Definition at line 448 of file type_conversions.cc.
References float, and int8_to_float().
Referenced by int8_to_float().
Definition at line 452 of file type_conversions.cc.
References int8_to_float2().
Referenced by int8_to_float2().
Definition at line 456 of file type_conversions.cc.
References int8_to_float3().
Referenced by int8_to_float3().
Definition at line 460 of file type_conversions.cc.
References int8_to_float4().
Referenced by int8_to_float4().
|
static |
Definition at line 432 of file type_conversions.cc.
References int8_to_int().
Referenced by int8_to_int().
Definition at line 440 of file type_conversions.cc.
References int8_to_int2().
Referenced by int8_to_int2().
Definition at line 444 of file type_conversions.cc.
References int8_to_int3().
Referenced by int8_to_int3().
Definition at line 436 of file type_conversions.cc.
References int8_to_short2().
Referenced by int8_to_short2().
|
static |
Definition at line 247 of file type_conversions.cc.
References int_to_bool().
Referenced by int_to_bool().
|
static |
Definition at line 288 of file type_conversions.cc.
References blender::color::encode(), int_to_byte_color(), and int_to_color().
Referenced by int_to_byte_color().
|
static |
Definition at line 284 of file type_conversions.cc.
References int_to_color().
Referenced by int_to_byte_color(), and int_to_color().
Definition at line 268 of file type_conversions.cc.
References float, and int_to_float().
Referenced by int_to_float().
Definition at line 272 of file type_conversions.cc.
References int_to_float2().
Referenced by int_to_float2().
Definition at line 276 of file type_conversions.cc.
References int_to_float3().
Referenced by int_to_float3().
Definition at line 280 of file type_conversions.cc.
References int_to_float4().
Referenced by int_to_float4().
Definition at line 260 of file type_conversions.cc.
References int_to_int2().
Referenced by int_to_int2().
Definition at line 264 of file type_conversions.cc.
References int_to_int3().
Referenced by int_to_int3().
Definition at line 251 of file type_conversions.cc.
References int_to_int8().
Referenced by color_to_int8(), int2_to_int8(), int3_to_int8(), int_to_int8(), and short2_to_int8().
Definition at line 256 of file type_conversions.cc.
References int_to_short2().
Referenced by int_to_short2().
|
static |
Definition at line 2195 of file mesh_legacy_convert.cc.
References build_socket_indices(), Edge, Face, blender::GeometryNodeAssetTraits::flag, blender::GEO_NODE_ASSET_MODIFIER, blender::bNodeTree::geometry_node_asset_traits, is_auto_smooth_node_tree(), blender::bNodeTree::links, blender::NODE_BOOLEAN_MATH_AND, blender::NODE_COMPARE_LESS_EQUAL, blender::NTREE_GEOMETRY, storage, blender::bNodeTree::type, and blender::bNodeSocketValueBoolean::value.
Referenced by blender::BKE_main_mesh_legacy_convert_auto_smooth(), and is_auto_smooth_node_tree().
|
static |
Sockets with default_value data must be known built-in types, otherwise reading and writing data correctly cannot be guaranteed. Discard any socket with default_value data that has an unknown type.
Definition at line 1470 of file node.cc.
References is_node_socket_supported(), blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, and blender::bNodeSocket::type.
Referenced by is_node_socket_supported(), and remove_unsupported_sockets().
|
static |
Definition at line 220 of file node_tree_update.cc.
References blender::bke::bNodeTreeRuntime::changed_flag, is_tree_changed(), blender::NTREE_CHANGED_NOTHING, blender::bNodeTree::runtime, and blender::bNodeTree::tree_interface.
Referenced by is_tree_changed(), blender::bke::NodeTreeMainUpdater::update(), and blender::bke::NodeTreeMainUpdater::update_rooted().
|
static |
Definition at line 288 of file curves_geometry.cc.
References CURVE_TYPES_NUM, and is_valid_curve_type().
Referenced by curve_types_are_valid(), is_valid_curve_type(), and sanitize_curve_types().
| bool blender::bke::is_valid_project_variable_name | ( | StringRef | name | ) |
Return whether the given string is a valid project variable identifier or not.
For the moment we are very restrictive: only alphanumeric characters and underscores are allowed, and the first character must not be a digit. This is very similar to the identifier rules in some programming languages.
In the future we should likely expand this to allow more of unicode. But better to start restrictive and open up later than start super open and discover we need to make a breaking change by making it more restrictive.
Definition at line 370 of file blender_project.cc.
References ensure_is_valid_project_variable_name(), and is_valid_project_variable_name().
Referenced by blender::bke::TomlProjectVariable::from_toml(), and is_valid_project_variable_name().
|
static |
Definition at line 4157 of file node.cc.
References blender::bNodeLink::flag, blender::bNodeLink::fromnode, blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), iter_backwards_ex(), blender::bke::bNodeRuntime::iter_flag, blender::bNodeSocket::link, node, blender::NODE_LINK_VALID, blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), blender::Stack< T, InlineBufferCapacity, Allocator >::push(), blender::bNode::runtime, blender::bNodeLink::tonode, and zone_type_by_node_type().
Referenced by iter_backwards_ex(), and node_chain_iterator_backwards().
| KnotsMode blender::bke::knots_mode_from_legacy | ( | short | flag | ) |
Determine Curves knot mode from legacy flag.
Definition at line 71 of file curve_legacy_convert.cc.
References BLI_assert_unreachable, blender::CU_NURB_BEZIER, blender::CU_NURB_CUSTOM, blender::CU_NURB_ENDPOINT, knots_mode_from_legacy(), blender::NURBS_KNOT_MODE_BEZIER, blender::NURBS_KNOT_MODE_CUSTOM, blender::NURBS_KNOT_MODE_ENDPOINT, blender::NURBS_KNOT_MODE_ENDPOINT_BEZIER, and blender::NURBS_KNOT_MODE_NORMAL.
Referenced by curve_legacy_to_curves(), blender::io::obj::OBJLegacyCurve::get_knots_u(), and knots_mode_from_legacy().
|
static |
Definition at line 324 of file node.cc.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_PROCESS_IDSUPER, blender::data, blender::IDP_foreach_property(), blender::IDP_TYPE_FILTER_ID, blender::IDWALK_CB_USER, library_foreach_node_socket(), blender::bNodeSocket::prop, blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, blender::bNodeSocket::type, blender::bNodeSocketValueCollection::value, blender::bNodeSocketValueFont::value, blender::bNodeSocketValueImage::value, blender::bNodeSocketValueMask::value, blender::bNodeSocketValueMaterial::value, blender::bNodeSocketValueObject::value, blender::bNodeSocketValueScene::value, blender::bNodeSocketValueSound::value, blender::bNodeSocketValueText::value, and blender::bNodeSocketValueTexture::value.
Referenced by library_foreach_node_socket(), and node_node_foreach_id().
Definition at line 612 of file bvhutils.cc.
References Edge, Face, blender::bits::BitVector< InlineBufferCapacity, Allocator >::index_range(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), loose_edges_no_hidden_mask_get(), and blender::Span< T >::slice().
Referenced by loose_edges_no_hidden_mask_get().
Definition at line 577 of file bvhutils.cc.
References Edge, blender::bits::BitVector< InlineBufferCapacity, Allocator >::index_range(), blender::Span< T >::index_range(), blender::bke::AttributeAccessor::lookup_or_default(), loose_verts_no_hidden_mask_get(), and Point.
Referenced by loose_verts_no_hidden_mask_get().
|
static |
Definition at line 3078 of file node.cc.
References blender::BLI_uniquename_cb(), blender::blender::StringRefBase::copy_utf8_truncated(), make_socket(), MAX_NAME, node_socket_set_typeinfo(), node_socket_type_find(), blender::SOCK_COLLAPSED, blender::SOCK_CUSTOM, blender::SOCK_IN, STRNCPY_UTF8, and blender::UString::UString().
Referenced by make_socket(), and node_add_socket().
|
static |
Definition at line 1180 of file mesh_data_update.cc.
References make_vertexcos__mapFunc(), blender::bke::MappedUserData::vertex_visit, and blender::bke::MappedUserData::vertexcos.
Referenced by make_vertexcos__mapFunc(), and mesh_get_mapped_verts_coords().
|
static |
Set the sharp status for edges that correspond to control points with vector handles.
Definition at line 169 of file curve_to_mesh_convert.cc.
References blender::MutableSpan< T >::fill(), blender::IndexRange::IndexRange(), mark_bezier_vector_edges_sharp(), blender::bke::curves::bezier::point_is_sharp(), and blender::MutableSpan< T >::slice().
Referenced by mark_bezier_vector_edges_sharp(), and write_sharp_bezier_edges().
|
static |
Definition at line 709 of file blenkernel/intern/mesh.cc.
References b, blender::bounds::merge(), and merge_bounds().
Referenced by compute_local_mesh_groups(), merge_bounds(), and partition_faces_recursively().
| void blender::bke::mesh_apply_spatial_organization | ( | Mesh & | mesh | ) |
Definition at line 912 of file blenkernel/intern/mesh.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::GArray< Allocator >::as_span(), attribute, blender::BLI_assert(), blender::bke::NonContiguousGroup::children_offset, compute_local_mesh_groups(), blender::CPPType::copy_construct(), blender::GMutableSpan::copy_from(), blender::MutableSpan< T >::copy_from(), Corner, blender::bke::NonContiguousGroup::corner_count, blender::bke::AttributeIter::domain, Face, blender::bke::NonContiguousGroup::faces, blender::bke::AttributeAccessor::foreach_attribute(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), blender::Array< T, InlineBufferCapacity, Allocator >::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), mesh_apply_spatial_organization(), blender::bke::AttributeIter::name, node, blender::bke::NonContiguousGroup::parent, Point, blender::Vector< T, InlineBufferCapacity, Allocator >::reserve(), blender::bke::NonContiguousGroup::shared_verts, Single, blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::GMutableSpan::size(), blender::MutableSpan< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::bke::AttributeIter::storage_type, blender::MutableSpan< T >::take_front(), blender::GMutableSpan::type(), and blender::bke::NonContiguousGroup::unique_verts.
Referenced by mesh_apply_spatial_organization(), blender::mesh_reorder_vertices_spatial_exec(), blender::ed::object::quadriflow_end_job(), and blender::ed::object::voxel_remesh_exec().
| const AttributeAccessorFunctions & blender::bke::mesh_attribute_accessor_functions | ( | ) |
Definition at line 1018 of file mesh_attributes.cc.
References get_mesh_accessor_functions(), and mesh_attribute_accessor_functions().
Referenced by blender::bke::MeshComponent::attributes(), blender::bke::MeshComponent::attributes_for_write(), and mesh_attribute_accessor_functions().
|
static |
Definition at line 934 of file mesh_data_update.cc.
References blender::BKE_object_eval_assign_data(), blender::BKE_object_use_sculptsession(), blender::BKE_sculptsession_update_after_eval(), blender::Object::data, blender::DEG_is_active(), blender::bke::ObjectRuntime::geometry_set_eval, blender::bke::GeometrySet::GeometrySet(), blender::bke::GeometrySet::get_mesh(), blender::Mesh::id, blender::Mesh::key, blender::bke::ObjectRuntime::last_data_mask, blender::bke::ObjectRuntime::last_need_mapping, mesh_build_data(), mesh_build_extra_data(), mesh_calc_modifiers(), mesh_eval_assign_key(), blender::Object::mode, blender::Object::runtime, and blender::bke::ObjectRuntime::sculpt_session.
Referenced by mesh_build_data(), mesh_data_update(), and mesh_get_eval_deform().
|
static |
Definition at line 923 of file mesh_data_update.cc.
References blender::bke::shrinkwrap::boundary_cache_ensure(), blender::DAG_EVAL_NEED_SHRINKWRAP_BOUNDARY, blender::DEG_get_eval_flags_for_id(), blender::Object::id, and mesh_build_extra_data().
Referenced by mesh_build_data(), and mesh_build_extra_data().
| void blender::bke::mesh_calc_edges | ( | Mesh & | mesh, |
| bool | keep_existing_edges, | ||
| bool | select_new_edges ) |
Calculate edges from faces.
Definition at line 578 of file mesh_calc_edges.cc.
References blender::bke::AttributeFilter::default_filter(), and mesh_calc_edges().
Referenced by blender::BKE_mball_polygonize(), blender::geometry::create_cuboid_mesh(), blender::ed::sculpt_paint::trim::generate_geometry(), blender::io::fbx::import_meshes(), mesh_calc_edges(), mesh_calc_edges(), blender::mesh_nurbs_displist_to_mesh(), blender::geometry::mesh_triangulate(), mesh_validate_impl(), blender::io::alembic::read_mpolys(), and blender::io::stl::STLMeshHelper::to_mesh().
| void blender::bke::mesh_calc_edges | ( | Mesh & | mesh, |
| bool | keep_existing_edges, | ||
| bool | select_new_edges, | ||
| const AttributeFilter & | attribute_filter ) |
Definition at line 234 of file mesh_calc_edges.cc.
References blender::offset_indices::accumulate_counts_to_offsets(), blender::bke::MutableAttributeAccessor::add(), blender::bke::calc_edges::add_existing_edges_to_hash_maps(), blender::bke::calc_edges::add_face_edges_to_hash_maps(), blender::bke::AttributeFilter::allow_skip(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Array, blender::Array< T, InlineBufferCapacity, Allocator >::as_mutable_span(), blender::Array< T, InlineBufferCapacity, Allocator >::as_span(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::as_span(), attribute, attribute_type_to_cpp_type(), blender::BLI_assert(), blender::CD_ORIGINDEX, blender::bke::calc_edges::clear_hash_tables(), Corner, blender::CustomData_free(), blender::CustomData_get_layer_index(), blender::Array< T, InlineBufferCapacity, Allocator >::data(), blender::GMutableSpan::data(), blender::ImplicitSharedValue< T >::data, blender::MutableSpan< T >::data(), blender::offset_indices::OffsetIndices< T >::data(), blender::CPPType::default_value(), blender::IndexRange::drop_front(), Edge, blender::bke::calc_edges::edge_map_offsets(), blender::bke::calc_edges::edge_to_hash_map_i(), ELEM, blender::MutableSpan< T >::fill(), blender::CPPType::fill_construct_n(), blender::array_utils::fill_index_range(), blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_predicate(), blender::bke::Attribute::ArrayData::from_uninitialized(), blender::array_utils::gather(), blender::bke::calc_edges::get_parallel_maps_count(), blender::exec_mode::grain_size(), blender::Array< T, InlineBufferCapacity, Allocator >::index_range(), blender::Span< T >::index_range(), blender::implicit_sharing::info_for_mem_free(), blender::index_mask::IndexMask::is_empty(), blender::is_power_of_2_i(), layer, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::calc_edges::map_edge_to_span_index(), blender::bke::calc_edges::mask_first_distinct_edges(), blender::MEM_new_array_uninitialized(), mesh_calc_edges(), mesh_is_valid(), blender::IndexRange::one_after_last(), blender::threading::parallel_for_each(), blender::Array< T, InlineBufferCapacity, Allocator >::reinitialize(), blender::bke::MutableAttributeAccessor::remove(), blender::bke::calc_edges::reserve_hash_maps(), blender::array_utils::scatter(), blender::bke::calc_edges::serialize_and_initialize_deduplicated_edges(), Single, blender::Array< T, InlineBufferCapacity, Allocator >::size(), blender::GMutableSpan::size(), blender::index_mask::IndexMask::size(), blender::IndexRange::size(), blender::GMutableSpan::slice(), blender::MutableSpan< T >::slice(), blender::bke::SpanAttributeWriter< T >::span, blender::IndexRange::start(), String, blender::GMutableSpan::take_front(), blender::MutableSpan< T >::take_front(), blender::Span< T >::take_front(), blender::offset_indices::OffsetIndices< T >::total_size(), and blender::bke::calc_edges::update_edge_indices_in_face_loops().
|
static |
Definition at line 274 of file mesh_data_update.cc.
References add_orco_mesh(), ASSERT_IS_VALID_MESH_INPUT, ASSERT_IS_VALID_MESH_OUTPUT, blender::BKE_id_free(), blender::BKE_modifier_calc_data_masks(), blender::BKE_modifier_deform_verts(), blender::BKE_modifier_free_temporary_data(), blender::BKE_modifier_get_info(), blender::BKE_modifier_is_enabled(), blender::BKE_modifier_modify_mesh(), blender::BKE_modifier_set_error(), blender::BKE_modifier_supports_mapping(), blender::BKE_modifiers_clear_errors(), blender::BKE_modifiers_get_virtual_modifierlist(), blender::BKE_sculpt_multires_active(), blender::BLI_assert(), blender::BLI_linklist_free(), blender::SculptSession::bm, blender::CD_CLOTH_ORCO, blender::CD_CONSTRUCT, blender::CD_MASK_BAREMESH_ORIGINDEX, CD_MASK_CLOTH_ORCO, CD_MASK_ORCO, CD_MASK_ORIGINDEX, CD_MASK_ORIGSPACE_MLOOP, blender::CD_ORCO, blender::CD_ORIGINDEX, blender::CD_ORIGSPACE_MLOOP, blender::CD_SET_DEFAULT, create_orco_mesh(), blender::CustomData_add_layer(), blender::CustomData_free_layers(), blender::CustomData_has_layer(), blender::CustomData_MeshMasks_update(), blender::DAG_EVAL_RENDER, blender::Object::data, blender::bke::MeshRuntime::deformed_only, blender::DEG_get_mode(), blender::CustomData_MeshMasks::emask, blender::eModifierMode_Realtime, blender::eModifierMode_Render, blender::eModifierType_Multires, blender::eModifierTypeFlag_RequiresOriginalData, blender::array_utils::fill_index_range(), blender::ModifierTypeInfo::flags, blender::CustomData_MeshMasks::fmask, blender::bke::GeometrySet::from_mesh(), geometry_mesh_edit_hints_ensure(), blender::bke::GeometrySet::get_component_for_write(), blender::bke::GeometrySet::get_component_ptr(), blender::bke::GeometrySet::get_mesh(), blender::bke::GeometrySet::get_mesh_for_write(), blender::bke::GeometrySet::has(), blender::CustomData_MeshMasks::lmask, blender::CDMaskLink::mask, blender::bke::GeometryComponent::Mesh, mesh_calc_modifiers(), blender::bke::MeshEditHints::mesh_deform, mesh_init_origspace(), mesh_set_only_copy(), blender::MOD_APPLY_ORCO, blender::MOD_APPLY_RENDER, blender::MOD_APPLY_USECACHE, blender::Object::mode, blender::Object::modifier_flag, modifier_modify_mesh_and_geometry_set(), blender::CDMaskLink::next, blender::ModifierData::next, blender::OB_MODE_SCULPT, blender::OB_MODIFIER_FLAG_ADD_REST_POSITION, blender::OnlyDeform, blender::CustomData_MeshMasks::pmask, ReadOnly, blender::ModifierTypeInfo::required_data_mask, blender::Mesh::runtime, blender::Object::runtime, blender::ToolSettings::sculpt, blender::SCULPT_ONLY_DEFORM, blender::bke::ObjectRuntime::sculpt_session, set_rest_position(), blender::Scene::toolsettings, blender::ModifierData::type, blender::ModifierTypeInfo::type, blender::Mesh::vert_data, and blender::CustomData_MeshMasks::vmask.
Referenced by mesh_build_data(), mesh_calc_modifiers(), mesh_create_eval_final(), mesh_create_eval_no_deform(), and mesh_create_eval_no_deform_render().
| void blender::bke::mesh_convert_customdata_to_storage | ( | Mesh & | mesh | ) |
Move generic attributes from CustomData to AttributeStorage (not including non-generic layer types). Use for versioning old files when the newer AttributeStorage format is used at runtime.
Definition at line 228 of file attribute_legacy_convert.cc.
References attribute_legacy_convert_customdata_to_storage(), Corner, Edge, Face, mesh_convert_customdata_to_storage(), and Point.
Referenced by blender::BKE_mesh_convert_mfaces_to_mpolys(), blender::BKE_mesh_do_versions_convert_mfaces_to_mpolys(), blender::blo_do_versions_501(), and mesh_convert_customdata_to_storage().
|
static |
Definition at line 115 of file bvhutils.cc.
References blender::closest_on_tri_to_point_v3(), blender::BVHTreeNearest::co, blender::copy_v3_v3(), blender::data, blender::BVHTreeNearest::dist_sq, blender::BVHTreeNearest::index, blender::len_squared_v3v3(), mesh_corner_tris_nearest_point(), blender::BVHTreeNearest::no, blender::normal_tri_v3(), and UNPACK3.
Referenced by create_tris_tree_data(), and mesh_corner_tris_nearest_point().
|
static |
Definition at line 184 of file bvhutils.cc.
References bvhtree_ray_tri_intersection(), bvhtree_sphereray_tri_intersection(), blender::BVHTreeRayHit::co, blender::data, blender::BVHTreeRay::direction, blender::BVHTreeRayHit::dist, blender::BVHTreeRayHit::index, blender::madd_v3_v3v3fl(), mesh_corner_tris_spherecast(), blender::BVHTreeRayHit::no, blender::normal_tri_v3(), blender::BVHTreeRay::origin, blender::BVHTreeRay::radius, and UNPACK3.
Referenced by create_tris_tree_data(), and mesh_corner_tris_spherecast().
| Mesh * blender::bke::mesh_create_eval_final | ( | Depsgraph * | depsgraph, |
| const Scene * | scene, | ||
| Object * | ob, | ||
| const CustomData_MeshMasks * | dataMask ) |
Definition at line 1108 of file mesh_data_update.cc.
References blender::bke::GeometrySet::ensure_owns_direct_data(), blender::bke::GeometrySet::get_component_for_write(), mesh_calc_modifiers(), and mesh_create_eval_final().
Referenced by blender::bvh_get_mesh(), mesh_create_eval_final(), blender::mesh_new_from_mesh_object_with_layers(), and blender::ed::object::object_force_modifier_update_for_bind().
| Mesh * blender::bke::mesh_create_eval_no_deform | ( | Depsgraph * | depsgraph, |
| const Scene * | scene, | ||
| Object * | ob, | ||
| const CustomData_MeshMasks * | dataMask ) |
Definition at line 1119 of file mesh_data_update.cc.
References blender::bke::GeometrySet::ensure_owns_direct_data(), blender::bke::GeometrySet::get_component_for_write(), mesh_calc_modifiers(), and mesh_create_eval_no_deform().
Referenced by blender::bvh_get_mesh(), and mesh_create_eval_no_deform().
| Mesh * blender::bke::mesh_create_eval_no_deform_render | ( | Depsgraph * | depsgraph, |
| const Scene * | scene, | ||
| Object * | ob, | ||
| const CustomData_MeshMasks * | dataMask ) |
Definition at line 1130 of file mesh_data_update.cc.
References blender::bke::GeometrySet::ensure_owns_direct_data(), blender::bke::GeometrySet::get_component_for_write(), mesh_calc_modifiers(), and mesh_create_eval_no_deform_render().
Referenced by blender::bvh_get_mesh(), and mesh_create_eval_no_deform_render().
| void blender::bke::mesh_custom_normals_to_generic | ( | Mesh & | mesh | ) |
Definition at line 2656 of file mesh_legacy_convert.cc.
References blender::CD_PROP_INT16_2D, blender::CustomData_add_layer_named_with_data(), blender::CustomData_free_layer(), blender::data, layer, mesh_custom_normals_to_generic(), and blender::ImplicitSharingInfo::remove_user_and_delete_if_last().
Referenced by blender::blo_do_versions_500(), and mesh_custom_normals_to_generic().
| void blender::bke::mesh_data_update | ( | Depsgraph & | depsgraph, |
| const Scene & | scene, | ||
| Object & | ob, | ||
| const CustomData_MeshMasks & | dataMask ) |
Definition at line 1031 of file mesh_data_update.cc.
References blender::BKE_object_free_derived_caches(), blender::BKE_sculptsession_update_before_eval(), blender::BLI_assert(), blender::Object::data, blender::DEG_is_active(), editbmesh_build_data(), blender::Object::id, blender::ID_TAG_COPIED_ON_EVAL, mesh_build_data(), mesh_data_update(), blender::OB_MESH, object_get_datamask(), blender::ID::tag, and blender::Object::type.
Referenced by blender::BKE_crazyspace_get_mapped_editverts(), blender::BKE_object_handle_data_update(), and mesh_data_update().
| void blender::bke::mesh_edge_hide_from_vert | ( | Span< int2 > | edges, |
| Span< bool > | hide_vert, | ||
| MutableSpan< bool > | hide_edge ) |
Calculate edge visibility based on vertex visibility, hides an edge when either of its vertices are hidden.
Definition at line 501 of file mesh_evaluate.cc.
References blender::Span< T >::index_range(), mesh_edge_hide_from_vert(), and blender::threading::parallel_for().
Referenced by blender::ed::sculpt_paint::hide::flush_edge_changes(), mesh_edge_hide_from_vert(), and mesh_hide_vert_flush().
|
static |
Callback to BVH-tree nearest point. The tree must have been built using #bvhtree_from_mesh_edges.
| userdata | Must be a #BVHMeshCallbackUserdata built from the same mesh as the tree. |
Definition at line 221 of file bvhutils.cc.
References blender::closest_to_line_segment_v3(), blender::BVHTreeNearest::co, blender::copy_v3_v3(), blender::data, blender::BVHTreeNearest::dist_sq, blender::BVHTreeNearest::index, blender::len_squared_v3v3(), mesh_edges_nearest_point(), blender::BVHTreeNearest::no, blender::normalize_v3(), and blender::sub_v3_v3v3().
Referenced by create_edges_tree_data(), and mesh_edges_nearest_point().
|
static |
Callback to BVH-tree ray-cast. The tree must have been built using bvhtree_from_mesh_edges.
| userdata | Must be a #BVHMeshCallbackUserdata built from the same mesh as the tree. |
Definition at line 294 of file bvhutils.cc.
References blender::add_v3_v3v3(), blender::BVHTreeRayHit::co, blender::copy_v3_v3(), blender::data, blender::BVHTreeRay::direction, blender::BVHTreeRayHit::dist, blender::dot_v3v3v3(), blender::equals_v3v3(), blender::BVHTreeRayHit::index, blender::isect_line_line_v3(), blender::len_squared_v3v3(), blender::len_v3v3(), blender::line_point_factor_v3(), mesh_edges_spherecast(), mesh_verts_spherecast_do(), blender::BVHTreeRay::origin, blender::BVHTreeRay::radius, blender::square_f(), and blender::v2.
Referenced by create_edges_tree_data(), and mesh_edges_spherecast().
| void blender::bke::mesh_ensure_active_uv_map | ( | Mesh & | mesh | ) |
Make sure that if there are any uv maps, the active one is set.
Definition at line 657 of file blenkernel/intern/mesh.cc.
References get_first_uv_map_name(), blender::blender::StringRefBase::is_empty(), and mesh_ensure_active_uv_map().
Referenced by blender::BKE_pointcloud_to_mesh(), blender::ed::object::convert_curves_to_mesh(), blender::ed::object::convert_grease_pencil_to_mesh(), blender::ed::object::convert_mball_to_mesh(), blender::ed::object::convert_mesh_to_mesh(), mesh_ensure_active_uv_map(), blender::ed::object::modifier_apply_obdata(), and blender::ed::object::object_data_convert_curve_to_mesh().
| void blender::bke::mesh_ensure_default_color_attribute_on_add | ( | Mesh & | mesh, |
| StringRef | name, | ||
| AttrDomain | domain, | ||
| bke::AttrType | data_type ) |
Set the default name when adding a color attribute if there is no default yet.
Definition at line 599 of file blenkernel/intern/mesh.cc.
References attribute_name_is_anonymous(), blender::BLI_strdupn(), blender::blender::StringRefBase::data(), blender::bke::mesh::is_color_attribute(), mesh_ensure_default_color_attribute_on_add(), and blender::blender::StringRefBase::size().
Referenced by mesh_ensure_default_color_attribute_on_add(), and blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec().
| void blender::bke::mesh_ensure_default_uv_attribute_on_add | ( | Mesh & | mesh, |
| StringRef | name, | ||
| AttrDomain | domain, | ||
| bke::AttrType | data_type ) |
Definition at line 616 of file blenkernel/intern/mesh.cc.
References attribute_name_is_anonymous(), blender::bke::mesh::is_uv_map(), and mesh_ensure_default_uv_attribute_on_add().
Referenced by mesh_ensure_default_uv_attribute_on_add(), and blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec().
| void blender::bke::mesh_ensure_default_uv_map | ( | Mesh & | mesh | ) |
Make sure that if there are any uv maps, the default one is set.
Definition at line 674 of file blenkernel/intern/mesh.cc.
References get_first_uv_map_name(), blender::blender::StringRefBase::is_empty(), and mesh_ensure_default_uv_map().
Referenced by mesh_ensure_default_uv_map().
| void blender::bke::mesh_ensure_required_data_layers | ( | Mesh & | mesh | ) |
Definition at line 633 of file blenkernel/intern/mesh.cc.
References blender::bke::MutableAttributeAccessor::add(), Corner, Edge, Float3, Int32, Int32_2D, mesh_ensure_required_data_layers(), and Point.
Referenced by blender::BKE_mesh_new_nomain(), blender::BKE_mesh_new_nomain_from_template_ex(), mesh_ensure_required_data_layers(), blender::ShapekeyTest::SetUp(), and blender::animrig::tests::TEST_F().
|
static |
Definition at line 266 of file mesh_data_update.cc.
References blender::BLI_assert(), blender::DEG_is_evaluated_id(), blender::Key::id, and mesh_eval_assign_key().
Referenced by editbmesh_calc_modifiers(), mesh_build_data(), and mesh_eval_assign_key().
| void blender::bke::mesh_face_hide_from_vert | ( | OffsetIndices< int > | faces, |
| Span< int > | corner_verts, | ||
| Span< bool > | hide_vert, | ||
| MutableSpan< bool > | hide_poly ) |
Definition at line 512 of file mesh_evaluate.cc.
References blender::offset_indices::OffsetIndices< T >::index_range(), mesh_face_hide_from_vert(), and blender::threading::parallel_for().
Referenced by blender::ed::sculpt_paint::hide::flush_face_changes(), mesh_face_hide_from_vert(), and mesh_hide_vert_flush().
|
static |
Callback to BVH-tree nearest point. The tree must have been built using #bvhtree_from_mesh_faces.
| userdata | Must be a #BVHMeshCallbackUserdata built from the same mesh as the tree. |
Definition at line 81 of file bvhutils.cc.
References blender::closest_on_tri_to_point_v3(), blender::BVHTreeNearest::co, blender::copy_v3_v3(), blender::data, blender::BVHTreeNearest::dist_sq, blender::BVHTreeNearest::index, blender::len_squared_v3v3(), mesh_faces_nearest_point(), blender::BVHTreeNearest::no, blender::normal_tri_v3(), blender::MFace::v1, blender::MFace::v2, blender::MFace::v3, and blender::MFace::v4.
Referenced by create_legacy_faces_tree_data(), and mesh_faces_nearest_point().
|
static |
Callback to BVH-tree ray-cast. The tree must have been built using bvhtree_from_mesh_faces.
| userdata | Must be a #BVHMeshCallbackUserdata built from the same mesh as the tree. |
Definition at line 146 of file bvhutils.cc.
References bvhtree_ray_tri_intersection(), bvhtree_sphereray_tri_intersection(), blender::BVHTreeRayHit::co, blender::data, blender::BVHTreeRay::direction, blender::BVHTreeRayHit::dist, blender::BVHTreeRayHit::index, blender::madd_v3_v3v3fl(), mesh_faces_spherecast(), blender::BVHTreeRayHit::no, blender::normal_tri_v3(), blender::BVHTreeRay::origin, blender::BVHTreeRay::radius, blender::MFace::v1, blender::MFace::v2, blender::MFace::v3, and blender::MFace::v4.
Referenced by create_legacy_faces_tree_data(), and mesh_faces_spherecast().
| IndexMask blender::bke::mesh_find_faces_duplicate_verts | ( | const Mesh & | mesh, |
| IndexMaskMemory & | memory ) |
Check whether faces contain duplicate vertex indices.
Definition at line 997 of file mesh_validate.cc.
References find_faces_duplicate_verts(), and mesh_find_faces_duplicate_verts().
Referenced by mesh_find_faces_duplicate_verts(), and blender::io::alembic::read_mpolys().
Definition at line 44 of file mesh_flip_faces.cc.
References attribute, b, blender::BKE_mesh_mdisp_flip(), blender::CD_GRID_PAINT_MASK, blender::CD_MDISPS, blender::CD_MLOOPTANGENT, blender::CD_ORIGSPACE_MLOOP, Corner, blender::CustomData_get_layer_for_write(), blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, ELEM, flip_custom_data_type(), blender::bke::AttributeAccessor::foreach_attribute(), blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::IndexRange::IndexRange(), blender::index_mask::IndexMask::is_empty(), blender::IndexRange::last(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), mesh_flip_faces(), blender::bke::AttributeIter::name, Single, blender::IndexRange::size(), blender::bke::AttributeIter::storage_type, String, T, and blender::bke::attribute_math::to_static_type().
Referenced by blender::ed::object::apply_objects_internal(), blender::BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), blender::geometry::execute_realize_mesh_tasks(), mesh_flip_faces(), and blender::nodes::node_geo_flip_faces_cc::node_geo_exec().
| void blender::bke::mesh_freestyle_marks_to_generic | ( | Mesh & | mesh | ) |
Definition at line 2431 of file mesh_legacy_convert.cc.
References blender::ImplicitSharingInfo::add_user(), Bool, blender::CustomData_free_layer(), blender::bke::Attribute::ArrayData::data, blender::data, Edge, Face, layer, mesh_freestyle_marks_to_generic(), blender::ImplicitSharingInfo::remove_user_and_delete_if_last(), blender::bke::Attribute::ArrayData::sharing_info, and blender::bke::Attribute::ArrayData::size.
Referenced by blender::blo_do_versions_502(), and mesh_freestyle_marks_to_generic().
| const Mesh * blender::bke::mesh_get_eval_deform | ( | Depsgraph * | depsgraph, |
| const Scene * | scene, | ||
| Object * | ob, | ||
| const CustomData_MeshMasks * | dataMask ) |
Definition at line 1065 of file mesh_data_update.cc.
References blender::BKE_object_get_mesh_deform_eval(), blender::BLI_assert(), BLI_assert_msg, blender::CustomData_MeshMasks_are_matching(), blender::CustomData_MeshMasks_update(), blender::Object::data, blender::DEG_is_evaluating(), blender::Object::id, blender::ID_TAG_COPIED_ON_EVAL, blender::bke::ObjectRuntime::last_data_mask, blender::bke::ObjectRuntime::last_need_mapping, mesh_build_data(), mesh_get_eval_deform(), object_get_datamask(), blender::Object::runtime, and blender::ID::tag.
Referenced by blender::BKE_multires_create_mesh(), blender::bpy_bmesh_from_object(), blender::bvh_get_mesh(), mesh_get_eval_deform(), blender::ed::object::modifier_skin_armature_create(), and blender::multires_reshape_create_subdiv().
| void blender::bke::mesh_get_mapped_verts_coords | ( | const Mesh * | mesh_eval, |
| MutableSpan< float3 > | r_cos ) |
Definition at line 1193 of file mesh_data_update.cc.
References blender::BKE_mesh_foreach_mapped_vert(), blender::BKE_mesh_wrapper_vert_coords(), blender::MutableSpan< T >::copy_from(), blender::bke::MeshRuntime::deformed_only, blender::MutableSpan< T >::fill(), make_vertexcos__mapFunc(), blender::MESH_FOREACH_NOP, mesh_get_mapped_verts_coords(), blender::bits::BitVector< InlineBufferCapacity, Allocator >::resize(), blender::Mesh::runtime, blender::MutableSpan< T >::size(), blender::bke::MappedUserData::vertex_visit, and blender::bke::MappedUserData::vertexcos.
Referenced by blender::BKE_crazyspace_get_mapped_editverts(), and mesh_get_mapped_verts_coords().
| void blender::bke::mesh_hide_face_flush | ( | Mesh & | mesh | ) |
Make vertex and edge visibility consistent with faces.
Definition at line 551 of file mesh_evaluate.cc.
References blender::bke::AttributeAccessor::contains(), blender::bke::MutableAttributeAccessor::convert_or_add_for_write_only_span(), Edge, Face, blender::VArrayCommon< T >::get_internal_single(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::VArrayCommon< T >::is_single(), blender::bke::AttributeAccessor::lookup_or_default(), blender::index_mask::masked_fill(), mesh_hide_face_flush(), blender::threading::parallel_for(), Point, blender::bke::MutableAttributeAccessor::remove(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by blender::BKE_pbvh_sync_visibility_from_verts(), blender::ed::sculpt_paint::hide::invert_visibility_mesh(), mesh_hide_face_flush(), blender::paintface_hide(), blender::paintface_reveal(), and blender::ed::sculpt_paint::hide::sync_all_from_faces().
| void blender::bke::mesh_hide_vert_flush | ( | Mesh & | mesh | ) |
Make edge and face visibility consistent with vertices.
Definition at line 526 of file mesh_evaluate.cc.
References blender::bke::MutableAttributeAccessor::convert_or_add_for_write_only_span(), Edge, Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::VArrayCommon< T >::get_internal_single(), blender::VArrayCommon< T >::is_single(), blender::bke::AttributeAccessor::lookup_or_default(), mesh_edge_hide_from_vert(), mesh_face_hide_from_vert(), mesh_hide_vert_flush(), Point, blender::bke::MutableAttributeAccessor::remove(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by blender::BKE_pbvh_sync_visibility_from_verts(), mesh_hide_vert_flush(), blender::ed::sculpt_paint::hide::mesh_show_all(), blender::paintvert_hide(), and blender::paintvert_reveal().
|
static |
Definition at line 1207 of file mesh_data_update.cc.
References blender::add_v2_v2v2(), blender::axis_dominant_v3_to_m3(), blender::BKE_mesh_tessface_clear(), blender::CD_ORIGSPACE_MLOOP, blender::copy_v2_v2(), blender::CustomData_get_layer_for_write(), ELEM, blender::bke::mesh::face_normal_calc(), FLT_MAX, blender::offset_indices::OffsetIndices< T >::index_range(), blender::invert_v2(), max, mesh_init_origspace(), min, blender::mul_v2_v2(), blender::mul_v3_m3v3(), blender::negate_v2_v2(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), scale(), blender::IndexRange::size(), blender::Span< T >::slice(), blender::IndexRange::start(), blender::sub_v2_v2v2(), translate(), and blender::OrigSpaceLoop::uv.
Referenced by editbmesh_calc_modifiers(), mesh_calc_modifiers(), and mesh_init_origspace().
Check whether the mesh upholds required invariants.
Definition at line 987 of file mesh_validate.cc.
References mesh_is_valid(), and mesh_validate_impl().
Referenced by blender::geometry::construct::build_output_mesh(), mesh_calc_edges(), mesh_is_valid(), and blender::geometry::mesh_triangulate().
| Mesh * blender::bke::mesh_new_no_attributes | ( | int | verts_num, |
| int | edges_num, | ||
| int | faces_num, | ||
| int | corners_num ) |
Create a mesh with no built-in attributes.
Definition at line 1413 of file blenkernel/intern/mesh.cc.
References blender::BKE_idtype_idcode_to_name(), blender::BKE_libblock_alloc(), blender::BKE_libblock_init_empty(), blender::BKE_mesh_face_offsets_ensure_alloc(), blender::ID_ME, blender::LIB_ID_CREATE_LOCALIZE, and mesh_new_no_attributes().
Referenced by blender::BKE_mesh_new_nomain(), blender::nodes::node_geo_points_to_vertices_cc::geometry_set_points_to_vertices(), blender::geometry::mesh_copy_selection(), blender::geometry::mesh_copy_selection_keep_edges(), blender::geometry::mesh_copy_selection_keep_verts(), mesh_new_no_attributes(), blender::geometry::mesh_triangulate(), blender::geometry::reorder_mesh(), blender::bke::bake::try_load_mesh(), and blender::undomesh_from_editmesh().
| VArray< float3 > blender::bke::mesh_normals_varray | ( | const Mesh & | mesh, |
| const IndexMask & | mask, | ||
| AttrDomain | domain, | ||
| bool | no_corner_normals = false, | ||
| bool | true_normals = false ) |
Definition at line 127 of file geometry_component_mesh.cc.
References Corner, Edge, Face, blender::VArray< T >::from_container(), blender::VArray< T >::from_span(), blender::math::interpolate(), mesh_normals_varray(), blender::math::normalize(), and Point.
Referenced by blender::bke::NormalFieldInput::get_varray_for_context(), and mesh_normals_varray().
Definition at line 504 of file mesh_remesh_voxel.cc.
References blender::Mesh::active_color_attribute, blender::bke::MutableAttributeAccessor::add(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::BKE_defgroup_copy_list(), blender::BKE_id_attributes_active_color_set(), blender::BKE_id_attributes_default_color_set(), blender::BLI_assert(), BLI_assert_unreachable, blender::GVArrayCommon::common_info(), Corner, blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::Mesh::default_color_attribute, blender::bke::AttributeIter::domain, Edge, blender::Mesh::edges_num, ELEM, Face, blender::Mesh::faces_num, find_nearest_edges(), find_nearest_faces(), find_nearest_tris_parallel(), blender::bke::AttributeAccessor::foreach_attribute(), gather_attributes(), blender::bke::AttributeIter::get(), blender::Mesh::id, blender::bke::subdiv::init(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), mesh_remesh_reproject_attributes(), blender::bke::AttributeIter::name, Point, sample_corner_attributes(), sample_vertex_attributes(), Single, blender::CommonVArrayInfo::Single, blender::Span< T >::size(), blender::bke::AttributeIter::storage_type, blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), and blender::Mesh::vertex_group_names.
Referenced by mesh_remesh_reproject_attributes(), blender::ed::object::quadriflow_start_job(), and blender::ed::object::voxel_remesh_exec().
| void blender::bke::mesh_remove_invalid_attribute_strings | ( | Mesh & | mesh | ) |
Remove strings referring to attributes if they no longer exist.
Definition at line 686 of file blenkernel/intern/mesh.cc.
References blender::bke::mesh::is_color_attribute(), blender::bke::mesh::is_uv_map(), blender::bke::AttributeAccessor::lookup_meta_data(), and mesh_remove_invalid_attribute_strings().
Referenced by mesh_remove_invalid_attribute_strings(), and blender::ed::object::modifier_apply_obdata().
| void blender::bke::mesh_sculpt_mask_to_generic | ( | Mesh & | mesh | ) |
Definition at line 2404 of file mesh_legacy_convert.cc.
References blender::CD_PROP_FLOAT, blender::CustomData_add_layer_named_with_data(), blender::CustomData_free_layer(), blender::data, layer, mesh_sculpt_mask_to_generic(), and blender::ImplicitSharingInfo::remove_user_and_delete_if_last().
Referenced by blender::blo_do_versions_500(), and mesh_sculpt_mask_to_generic().
| void blender::bke::mesh_select_edge_flush | ( | Mesh & | mesh | ) |
Make vertex and face selection consistent with edges.
Definition at line 677 of file mesh_evaluate.cc.
References blender::bke::MutableAttributeAccessor::convert_or_add_for_write_only_span(), blender::array_utils::copy(), Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexMask::from_bools(), blender::VArrayCommon< T >::get_internal_single(), blender::VArrayCommon< T >::index_range(), blender::VArrayCommon< T >::is_single(), blender::bke::AttributeAccessor::lookup_or_default(), mesh_select_edge_flush(), Point, blender::bke::MutableAttributeAccessor::remove(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by mesh_select_edge_flush(), and blender::nodes::node_geo_tool_set_selection_cc::node_geo_exec().
| void blender::bke::mesh_select_face_flush | ( | Mesh & | mesh | ) |
Make vertex and edge selection consistent with faces.
Definition at line 615 of file mesh_evaluate.cc.
References blender::bke::MutableAttributeAccessor::convert_or_add_for_write_only_span(), blender::array_utils::copy(), Edge, Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::VArrayCommon< T >::get_internal_single(), blender::VArrayCommon< T >::is_single(), blender::bke::AttributeAccessor::lookup_or_default(), mesh_select_face_flush(), Point, blender::bke::MutableAttributeAccessor::remove(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by mesh_select_face_flush(), blender::ed::sculpt_paint::mode_exit_generic(), blender::nodes::node_geo_tool_set_selection_cc::node_geo_exec(), blender::paint_weight_gradient_exec(), and blender::paintface_flush_flags().
| void blender::bke::mesh_select_vert_flush | ( | Mesh & | mesh | ) |
Make edge and face selection consistent with vertices.
Definition at line 641 of file mesh_evaluate.cc.
References blender::bke::MutableAttributeAccessor::convert_or_add_for_write_only_span(), blender::array_utils::copy(), Edge, Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexMask::from_bools(), blender::VArrayCommon< T >::get_internal_single(), blender::VArrayCommon< T >::index_range(), blender::VArrayCommon< T >::is_single(), blender::bke::AttributeAccessor::lookup_or_default(), mesh_select_vert_flush(), Point, blender::bke::MutableAttributeAccessor::remove(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by mesh_select_vert_flush(), blender::ed::sculpt_paint::mode_exit_generic(), blender::nodes::node_geo_tool_set_selection_cc::node_geo_exec(), and blender::paintvert_flush_flags().
| void blender::bke::mesh_set_custom_normals | ( | Mesh & | mesh, |
| MutableSpan< float3 > | corner_normals ) |
Higher level functions hiding most of the code needed around call to #normals_corner_custom_set().
| corner_normals | Is mutable because zero vectors are replaced with automatically computed normals. |
Definition at line 1694 of file mesh_normals.cc.
References blender::bke::mesh::mesh_set_custom_normals(), mesh_set_custom_normals(), and normalize_vecs().
Referenced by blender::io::fbx::import_meshes(), mesh_set_custom_normals(), blender::nodes::node_geo_set_mesh_normal_cc::node_geo_exec(), blender::io::alembic::process_loop_normals(), and blender::io::stl::STLMeshHelper::to_mesh().
| void blender::bke::mesh_set_custom_normals_from_verts | ( | Mesh & | mesh, |
| MutableSpan< float3 > | vert_normals ) |
Higher level functions hiding most of the code needed around call to #normals_corner_custom_set_from_verts().
| vert_normals | Is mutable because zero vectors are replaced with automatically computed normals. |
Definition at line 1705 of file mesh_normals.cc.
References blender::bke::mesh::mesh_set_custom_normals(), mesh_set_custom_normals_from_verts(), and normalize_vecs().
Referenced by blender::io::ply::convert_ply_to_mesh(), mesh_set_custom_normals_from_verts(), and blender::io::alembic::process_vertex_normals().
| void blender::bke::mesh_set_custom_normals_from_verts_normalized | ( | Mesh & | mesh, |
| MutableSpan< float3 > | vert_normals ) |
Definition at line 1711 of file mesh_normals.cc.
References blender::bke::mesh::mesh_set_custom_normals(), and mesh_set_custom_normals_from_verts_normalized().
Referenced by mesh_set_custom_normals_from_verts_normalized().
| void blender::bke::mesh_set_custom_normals_normalized | ( | Mesh & | mesh, |
| MutableSpan< float3 > | corner_normals ) |
Definition at line 1700 of file mesh_normals.cc.
References blender::bke::mesh::mesh_set_custom_normals(), and mesh_set_custom_normals_normalized().
Referenced by mesh_set_custom_normals_normalized(), blender::mesh_wrapper_ensure_subdivision(), blender::modify_mesh(), and blender::triangulate_mesh().
|
static |
Definition at line 77 of file mesh_data_update.cc.
References blender::CustomData_set_only_copy(), and mesh_set_only_copy().
Referenced by editbmesh_calc_modifiers(), mesh_calc_modifiers(), and mesh_set_only_copy().
| void blender::bke::mesh_sharp_edges_set_from_angle | ( | Mesh & | mesh, |
| float | angle, | ||
| bool | keep_sharp_edges = false ) |
Definition at line 1912 of file blenkernel/intern/mesh.cc.
References angle(), Edge, blender::bke::mesh::edges_sharp_from_angle_set(), Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), M_PI, mesh_sharp_edges_set_from_angle(), mesh_smooth_set(), blender::bke::MutableAttributeAccessor::remove(), and blender::bke::SpanAttributeWriter< T >::span.
Referenced by mesh_sharp_edges_set_from_angle(), and blender::ed::object::shade_smooth_exec().
| void blender::bke::mesh_skin_to_generic | ( | Mesh & | mesh | ) |
Definition at line 2493 of file mesh_legacy_convert.cc.
References blender::data, blender::Span< T >::index_range(), layer, blender::MEM_new_array_uninitialized(), mesh_skin_to_generic(), and blender::threading::parallel_for().
Referenced by mesh_skin_to_generic().
| void blender::bke::mesh_skin_to_legacy | ( | AttributeStorage::BlendWriteData & | attr_write_data, |
| CustomData & | vert_data, | ||
| Vector< CustomDataLayer, 16 > & | vert_layers, | ||
| int | verts_num ) |
Definition at line 2537 of file mesh_legacy_convert.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::ResourceScope::allocator(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), Array, blender::bke::AttributeStorage::BlendWriteData::attributes, b, Bool, blender::LinearAllocator< Allocator >::construct_array(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), blender::AttributeArray::data, blender::AttributeSingle::data, blender::bke::Attribute::data(), blender::MutableSpan< T >::data(), blender::bke::Attribute::data_type(), blender::bke::Attribute::domain(), Float2, blender::VArray< T >::from_single(), blender::VArray< T >::from_span(), layer, blender::CustomData::layers, blender::CustomData::maxlayer, mesh_skin_to_legacy(), blender::bke::Attribute::name(), blender::threading::parallel_for(), Point, blender::bke::AttributeStorage::BlendWriteData::scope, Single, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), Span< T >::Span(), blender::bke::Attribute::storage_type(), STREQ, blender::CustomData::totlayer, and blender::CustomDataLayer::type.
Referenced by blender::mesh_blend_write(), and mesh_skin_to_legacy().
Definition at line 1900 of file blenkernel/intern/mesh.cc.
References blender::bke::MutableAttributeAccessor::add(), Face, mesh_smooth_set(), and blender::bke::MutableAttributeAccessor::remove().
Referenced by blender::BLO_update_defaults_startup_blend(), blender::io::ply::convert_ply_to_mesh(), blender::nodes::node_geo_mesh_primitive_circle_cc::create_circle_mesh(), blender::geometry::create_cuboid_mesh(), blender::geometry::create_cylinder_or_cone_mesh(), blender::geometry::create_grid_mesh(), blender::geometry::create_uv_sphere_mesh(), blender::ed::sculpt_paint::trim::generate_geometry(), mesh_sharp_edges_set_from_angle(), mesh_smooth_set(), blender::modify_mesh(), blender::ed::object::quadriflow_start_job(), blender::ed::object::shade_auto_smooth_exec(), blender::ed::object::shade_smooth_exec(), blender::io::stl::STLMeshHelper::to_mesh(), and blender::ed::object::voxel_remesh_exec().
Definition at line 2091 of file blenkernel/intern/mesh.cc.
References blender::KeyBlock::data, mesh_transform(), blender::KeyBlock::totelem, transform_custom_normal_attribute(), and blender::math::transform_points().
Referenced by blender::ed::object::apply_objects_internal(), blender::geometry::execute_realize_mesh_tasks(), mesh_transform(), blender::geometry::transform_geometry(), and blender::geometry::transform_mesh().
Definition at line 2063 of file blenkernel/intern/mesh.cc.
References blender::KeyBlock::data, blender::math::is_zero(), mesh_translate(), blender::KeyBlock::totelem, and translate_positions().
Referenced by mesh_translate(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_geo_exec(), blender::ed::object::object_origin_set_exec(), and blender::geometry::translate_geometry().
| void blender::bke::mesh_uv_select_to_single_attribute | ( | Mesh & | mesh | ) |
Definition at line 2687 of file mesh_legacy_convert.cc.
References blender::CD_PROP_BOOL, blender::CD_PROP_FLOAT2, blender::CustomData_add_layer_named_with_data(), blender::CustomData_free_layer_named(), blender::CustomData_get_active_layer_name(), blender::CustomData_get_named_layer_index(), blender::offset_indices::OffsetIndices< T >::index_range(), blender::MEM_new_array_uninitialized(), mesh_uv_select_to_single_attribute(), blender::threading::parallel_for(), and STRNCPY_UTF8.
Referenced by mesh_uv_select_to_single_attribute().
| bool blender::bke::mesh_validate | ( | Mesh & | mesh, |
| bool | verbose = false, | ||
| bool | allow_missing_edges = false ) |
Check whether the mesh upholds required invariants and fix errors by removing invalid elements or correcting attribute values.
| allow_missing_edges | When true, faces with missing edges are not treated as errors. Missing edges are still computed, but no error is printed and the return value is not affected. Useful for importers that produce faces without edges. |
Definition at line 979 of file mesh_validate.cc.
References CLOG_INFO, blender::LOG, mesh_validate(), and mesh_validate_impl().
Referenced by blender::io::ply::convert_ply_to_mesh(), blender::io::obj::MeshFromGeometry::create_mesh(), blender::io::fbx::import_meshes(), mesh_validate(), blender::io::alembic::read_mpolys(), blender::io::stl::read_stl_file(), blender::io::alembic::AbcMeshReader::readObjectData(), and blender::io::alembic::AbcSubDReader::readObjectData().
|
static |
Definition at line 901 of file mesh_validate.cc.
References blender::DEG_id_tag_update(), find_duplicate_faces(), find_edges_bad_verts(), find_edges_duplicates(), find_faces_bad_edges(), find_faces_bad_offsets(), find_faces_bad_verts(), find_faces_duplicate_verts(), find_faces_missing_edges(), blender::IndexMask::from_difference(), blender::Mesh::id, blender::ID_RECALC_GEOMETRY_ALL_MODES, blender::index_mask::IndexMask::is_empty(), mesh_calc_edges(), mesh_validate_impl(), remove_invalid_edges(), remove_invalid_faces(), blender::index_mask::IndexMask::size(), validate_generic_attributes(), validate_material_indices(), validate_mdisps(), validate_selection_history(), and validate_vertex_groups().
Referenced by mesh_is_valid(), mesh_validate(), and mesh_validate_impl().
| bool blender::bke::mesh_validate_material_indices | ( | Mesh & | mesh | ) |
Check whether face material indices are valid, and correct them if not.
Definition at line 992 of file mesh_validate.cc.
References mesh_validate_material_indices(), and validate_material_indices().
Referenced by mesh_validate_material_indices().
Set mesh vertex normals to known-correct values, avoiding future lazy computation.
Definition at line 50 of file mesh_normals.cc.
References mesh_vert_normals_assign().
Referenced by blender::arrayModifier_doArray(), blender::BKE_mball_polygonize(), blender::geometry::create_uv_sphere_mesh(), mesh_vert_normals_assign(), mesh_vert_normals_assign(), and blender::io::alembic::read_mverts().
Set mesh vertex normals to known-correct values, avoiding future lazy computation.
Definition at line 56 of file mesh_normals.cc.
References mesh_vert_normals_assign().
|
static |
Callback to BVH-tree ray-cast. The tree must have been built using bvhtree_from_mesh_verts.
| userdata | Must be a #BVHMeshCallbackUserdata built from the same mesh as the tree. |
Definition at line 277 of file bvhutils.cc.
References blender::data, mesh_verts_spherecast(), mesh_verts_spherecast_do(), and blender::v.
Referenced by create_verts_tree_data(), and mesh_verts_spherecast().
|
static |
Definition at line 248 of file bvhutils.cc.
References blender::add_v3_v3v3(), blender::closest_to_line_segment_v3(), blender::BVHTreeRayHit::co, blender::copy_v3_v3(), blender::BVHTreeRay::direction, blender::BVHTreeRayHit::dist, blender::dot_v3v3v3(), blender::BVHTreeRayHit::index, blender::len_v3v3(), mesh_verts_spherecast_do(), blender::BVHTreeRay::origin, and blender::v.
Referenced by mesh_edges_spherecast(), mesh_verts_spherecast(), and mesh_verts_spherecast_do().
|
static |
Definition at line 662 of file mesh_data_update.cc.
References blender::BKE_editmesh_bmesh_get(), BLI_assert_unreachable, blender::BM_mesh_vert_coords_alloc(), blender::ME_WRAPPER_TYPE_BMESH, blender::ME_WRAPPER_TYPE_MDATA, blender::ME_WRAPPER_TYPE_SUBD, and mesh_wrapper_vert_coords_ensure_for_write().
Referenced by editbmesh_calc_modifiers(), and mesh_wrapper_vert_coords_ensure_for_write().
| MDeformVert blender::bke::mix_deform_verts | ( | const Span< MDeformVert > | src, |
| const Span< int > | indices, | ||
| const Span< float > | weights, | ||
| MDeformWeightSet & | dw_buffer ) |
Definition at line 1809 of file deform.cc.
References b, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::begin(), blender::BLI_assert(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear_and_keep_capacity(), blender::MDeformVert::dw, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::end(), blender::Span< T >::first(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of_or_add(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), blender::MEM_new_array_uninitialized(), mix_deform_verts(), blender::math::rcp(), blender::Span< T >::size(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), Span< T >::Span(), blender::MDeformVert::totweight, and blender::MDeformWeight::weight.
Referenced by mix_deform_verts(), blender::bke::subdiv::subdiv_mesh_vert_of_loose_edge_interpolate(), blender::bke::subdiv::subdiv_vert_data_interpolate(), blender::bke::subdiv::vert_interpolation_from_corner(), and blender::bke::subdiv::vert_interpolation_from_face().
|
static |
Modifies the given mesh and geometry set. The mesh is not passed as part of the mesh component in the geometry_set input, it is only passed in input_mesh and returned in the return value.
The purpose of the geometry set is to store all geometry components that are generated by modifiers to allow outputting non-mesh data from modifiers.
Definition at line 201 of file mesh_data_update.cc.
References ASSERT_IS_VALID_MESH_INPUT, ASSERT_IS_VALID_MESH_OUTPUT, blender::BKE_mesh_copy_parameters_for_eval(), blender::BKE_mesh_new_nomain(), blender::BKE_mesh_wrapper_ensure_mdata(), blender::BKE_modifier_get_info(), blender::BKE_modifier_modify_mesh(), blender::bke::GeometrySet::get_mesh(), blender::bke::GeometrySet::get_mesh_for_write(), blender::bke::GeometrySet::has_mesh(), blender::ME_WRAPPER_TYPE_MDATA, modifier_modify_mesh_and_geometry_set(), blender::ModifierTypeInfo::modify_geometry_set, blender::bke::GeometrySet::replace_mesh(), blender::result, and blender::ModifierData::type.
Referenced by editbmesh_calc_modifiers(), mesh_calc_modifiers(), and modifier_modify_mesh_and_geometry_set().
Definition at line 714 of file blenkernel/intern/mesh.cc.
References negative_bounds().
Referenced by compute_local_mesh_groups(), negative_bounds(), and partition_faces_recursively().
| bNodeLink & blender::bke::node_add_link | ( | bNodeTree & | ntree, |
| bNode & | fromnode, | ||
| bNodeSocket & | fromsock, | ||
| bNode & | tonode, | ||
| bNodeSocket & | tosock ) |
Also used via RNA API, so we check for proper input output direction.
Definition at line 4638 of file node.cc.
References blender::BKE_ntree_update_tag_link_added(), blender::BLI_addtail(), blender::BLI_assert(), blender::bNodeLink::fromnode, blender::bNodeLink::fromsock, blender::bNodeSocket::in_out, blender::bNodeTree::links, blender::bNodeLink::multi_input_sort_id, node_add_link(), node_count_links(), blender::SOCK_IN, blender::SOCK_OUT, blender::bNodeLink::tonode, and blender::bNodeLink::tosock.
Referenced by add_auto_smooth_node_tree(), blender::ed::space_node::add_existing_group_input_fn(), blender::ed::space_node::add_group_input_node_fn(), blender::ed::space_node::add_link_and_make_visible(), blender::add_realize_instances_before_socket(), blender::add_realize_node_tree(), blender::ed::space_node::add_reroute_exec(), blender::ed::space_node::add_reroute_node_fn(), blender::ambient_occlusion_node_relink(), blender::io::usd::append_node(), blender::BKE_linestyle_default_shader(), blender::blo_do_versions_300(), blender::change_input_socket_to_rotation_type(), blender::change_output_socket_to_rotation_type(), blender::ed::space_node::connect_nested_node_to_node(), blender::nodes::LinkSearchOpParams::connect_socket(), blender::displacement_node_insert(), blender::do_versions_material_convert_legacy_blend_mode(), blender::ED_node_texture_default(), blender::ed::curves::ensure_surface_deformation_node_exists(), blender::fix_geometry_nodes_object_info_scale(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), blender::nodes::tests::infer_switch_output_structure_with_field_condition(), blender::ed::space_node::initialize_compositor_sequencer_node_group(), blender::link_nodes(), blender::io::fbx::link_sockets(), blender::io::obj::link_sockets(), blender::eevee::LookdevWorld::LookdevWorld(), blender::material_default_gsplat_init(), blender::material_default_holdout_init(), blender::material_default_surface_init(), blender::material_default_volume_init(), blender::eevee::MaterialModule::MaterialModule(), node_add_link(), blender::ed::space_node::node_copy_local(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::node_gather_link_searches(), blender::nodes::node_geo_repeat_cc::repeat_output_node::node_gather_link_searches(), blender::nodes::node_geo_simulation_cc::sim_output_node::node_gather_link_searches(), blender::ed::space_node::node_insert_on_link_flags(), blender::ed::space_node::node_link_cancel(), blender::ed::space_node::node_socket_add_replace(), blender::nodes::node_tree_composit_default_init(), blender::nodes::node_tree_shader_default(), blender::ntree_shader_copy_branch(), blender::ntree_shader_implicit_closure_cast(), blender::ntree_shader_setup_custom_lighting_zone(), blender::ntree_shader_weight_tree_invert(), blender::ntree_weight_tree_merge_weight(), blender::bke::greasepencil::convert::offset_radius_node_tree_add(), blender::blender::operator!=(), blender::ed::space_node::prepare_viewlayer_update(), blender::proj_paint_add_slot(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::ed::space_node::search_link_ops_for_asset_metadata(), blender::ed::space_node::snode_autoconnect_input(), blender::square_roughness_node_insert(), blender::nodes::sync_sockets_closure(), blender::update_mapping_node_inputs_and_properties(), blender::update_math_node_single_operand_operators(), blender::update_noise_and_wave_distortion(), blender::update_vector_math_node_add_and_subtract_operators(), blender::update_vector_math_node_average_operator(), blender::update_vector_math_node_cross_product_operator(), blender::update_vector_math_node_normalize_operator(), blender::update_voronoi_node_coloring(), blender::update_voronoi_node_crackle(), blender::update_voronoi_node_square_distance(), blender::version_geometry_nodes_replace_transfer_attribute_node(), blender::version_node_socket_duplicate(), blender::version_principled_bsdf_specular_tint(), blender::version_principled_bsdf_subsurface(), blender::version_refraction_depth_to_thickness_value(), blender::version_replace_texcoord_normal_socket(), blender::versioning_eevee_material_blend_mode_settings(), blender::versioning_eevee_material_shadow_none(), blender::versioning_replace_musgrave_texture_node(), blender::versioning_replace_splitviewer(), blender::versioning_update_noise_texture_node(), and blender::ed::space_node::viewer_linking::view_socket().
| bNode * blender::bke::node_add_node | ( | const bContext * | C, |
| bNodeTree & | ntree, | ||
| UString | idname, | ||
| std::optional< int > | unique_identifier = std::nullopt ) |
Definition at line 4260 of file node.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BKE_ntree_update_tag_node_new(), blender::BLI_addtail(), C, blender::blender::StringRefBase::copy_utf8_truncated(), node, node_add_node(), node_set_typeinfo(), node_type_find(), node_unique_id(), blender::bNodeTree::nodes, blender::bke::bNodeTreeRuntime::nodes_by_id, blender::UString::ref(), and blender::bNodeTree::runtime.
Referenced by add_auto_smooth_node_tree(), blender::nodes::tests::add_field_boolean_node(), blender::ed::space_node::add_node(), blender::nodes::LinkSearchOpParams::add_node(), blender::nodes::tests::add_switch_node(), blender::change_input_socket_to_rotation_type(), blender::change_output_socket_to_rotation_type(), blender::bke::node_interface::create_proxy_const_input_node(), blender::bke::node_interface::create_proxy_converter_node(), blender::bke::node_interface::create_proxy_implicit_input_node(), blender::bke::node_interface::create_proxy_implicit_scene_frame_node(), blender::do_version_blur_node_options_to_inputs(), blender::do_version_bokeh_blur_pixel_size(), blender::do_version_composite_node_in_scene_tree(), blender::do_version_crop_node_options_to_inputs(), blender::do_version_displace_node_remove_xy_scale(), blender::do_version_normal_node_dot_product(), blender::do_version_replace_image_info_node_coordinates(), blender::do_version_sun_beams(), blender::do_version_translate_node_remove_relative(), blender::fix_geometry_nodes_object_info_scale(), blender::ed::space_node::initialize_compositor_sequencer_node_group(), node_add_node(), node_add_static_node(), blender::ed::space_node::node_group_make_from_node_declaration(), blender::ed::space_node::node_group_make_from_nodes(), blender::nodes::node_tree_composit_default_init(), blender::bke::greasepencil::convert::offset_radius_node_tree_add(), blender::blender::operator!=(), blender::ed::space_node::test_inline_shader_nodes_exec(), blender::versioning_eevee_material_blend_mode_settings(), and blender::versioning_eevee_material_shadow_none().
| bNodeSocket * blender::bke::node_add_socket | ( | bNodeTree & | ntree, |
| bNode & | node, | ||
| eNodeSocketInOut | in_out, | ||
| StringRefNull | idname, | ||
| StringRefNull | identifier, | ||
| StringRefNull | name ) |
Definition at line 3461 of file node.cc.
References blender::BKE_ntree_update_tag_socket_new(), blender::BLI_addtail(), blender::BLI_assert(), blender::BLI_remlink(), make_socket(), node, node_add_socket(), blender::SOCK_IN, and blender::SOCK_OUT.
Referenced by blender::nodes::decl::Custom::build(), blender::nodes::decl::Extend::build(), blender::nodes::decl::Geometry::build(), blender::nodes::decl::IDSocketDeclaration::build(), blender::nodes::decl::IntVector::build(), blender::nodes::decl::Shader::build(), blender::nodes::decl::Vector::build(), blender::do_version_replace_float_size_with_vector(), node_add_socket(), and node_add_static_socket().
|
static |
Definition at line 2562 of file node.cc.
References blender::bke::bNodeType::declare, blender::bke::bNodeType::inputs, node, blender::node_add_socket_from_template(), node_add_sockets_from_type(), blender::node_verify_sockets(), blender::bke::bNodeType::outputs, blender::SOCK_IN, blender::SOCK_OUT, and blender::bke::bNodeSocketTemplate::type.
Referenced by node_add_sockets_from_type(), and node_init().
Definition at line 4283 of file node.cc.
References C, CLOG_ERROR, blender::LOG, node_add_node(), node_add_static_node(), and node_types_get().
Referenced by blender::io::usd::add_input_named_attrib_node(), blender::add_node(), blender::io::fbx::add_node(), blender::io::obj::add_node(), blender::add_realize_instances_before_socket(), blender::add_realize_node_tree(), blender::ed::space_node::add_reroute_exec(), blender::ed::space_node::add_static_node(), blender::io::usd::append_node(), blender::BKE_linestyle_default_shader(), blender::ed::space_node::connect_copied_nodes_to_interface(), blender::ed::space_node::connect_nested_node_to_node(), blender::ed::space_node::connect_nodes_to_aovs(), blender::ed::space_node::create_proxy_converter_node(), blender::ed::space_node::create_proxy_input_node(), blender::default_paint_slot_color_get(), blender::displacement_node_insert(), blender::do_version_alpha_over_remove_premultiply(), blender::do_version_blur_defocus_nodes_remove_gamma(), blender::do_version_bright_contrast_remove_premultiplied(), blender::do_version_color_to_float_conversion(), blender::do_version_composite_viewer_remove_alpha(), blender::do_version_lift_gamma_gain_srgb_to_linear(), blender::do_version_map_value_node(), blender::do_version_material_remove_use_nodes(), blender::do_version_mix_color_use_alpha(), blender::do_version_scale_node_remove_translate(), blender::do_version_world_remove_use_nodes(), blender::do_versions_material_convert_legacy_blend_mode(), blender::io::usd::dome_light_to_world_material(), blender::ED_node_texture_default(), blender::ed::curves::ensure_surface_deformation_node_exists(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), blender::eevee::LookdevWorld::LookdevWorld(), blender::material_default_gsplat_init(), blender::material_default_holdout_init(), blender::material_default_surface_init(), blender::material_default_volume_init(), blender::eevee::MaterialModule::MaterialModule(), node_add_static_node(), blender::ed::space_node::node_socket_add_replace(), blender::nodes::node_tree_shader_default(), blender::ntree_shader_implicit_closure_cast(), blender::ntree_shader_setup_custom_lighting_zone(), blender::ntree_shader_weight_tree_invert(), blender::ntree_weight_tree_merge_weight(), blender::proj_paint_add_slot(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::ed::space_node::shader_preview_startjob(), blender::square_roughness_node_insert(), blender::update_mapping_node_inputs_and_properties(), blender::update_noise_and_wave_distortion(), blender::update_vector_math_node_add_and_subtract_operators(), blender::update_vector_math_node_average_operator(), blender::update_vector_math_node_cross_product_operator(), blender::update_vector_math_node_normalize_operator(), blender::update_voronoi_node_crackle(), blender::update_voronoi_node_square_distance(), blender::version_geometry_nodes_replace_transfer_attribute_node(), blender::version_principled_bsdf_specular_tint(), blender::version_principled_bsdf_subsurface(), blender::version_refraction_depth_to_thickness_value(), blender::version_replace_texcoord_normal_socket(), blender::versioning_replace_musgrave_texture_node(), blender::versioning_replace_splitviewer(), and blender::versioning_update_noise_texture_node().
| bNodeSocket * blender::bke::node_add_static_socket | ( | bNodeTree & | ntree, |
| bNode & | node, | ||
| eNodeSocketInOut | in_out, | ||
| int | type, | ||
| int | subtype, | ||
| StringRefNull | identifier, | ||
| StringRefNull | name ) |
Definition at line 3980 of file node.cc.
References CLOG_ERROR, blender::LOG, node, node_add_socket(), node_add_static_socket(), node_static_socket_type(), and blender::bNodeSocket::type.
Referenced by blender::nodes::decl::Bool::build(), blender::nodes::decl::Bundle::build(), blender::nodes::decl::Closure::build(), blender::nodes::decl::Color::build(), blender::nodes::decl::Float::build(), blender::nodes::decl::Int::build(), blender::nodes::decl::Matrix::build(), blender::nodes::decl::Menu::build(), blender::nodes::decl::Rotation::build(), blender::nodes::decl::String::build(), blender::do_version_alpha_over_node_options_to_inputs(), blender::do_version_anti_alias_node_options_to_inputs(), blender::do_version_bilateral_blur_node_options_to_inputs(), blender::do_version_blur_node_options_to_inputs(), blender::do_version_bokeh_blur_node_options_to_inputs(), blender::do_version_bokeh_image_node_options_to_inputs(), blender::do_version_box_mask_node_options_to_inputs(), blender::do_version_channel_matte_node_options_to_inputs(), blender::do_version_chroma_matte_node_options_to_inputs(), blender::do_version_color_balance_node_options_to_inputs(), blender::do_version_color_correction_node_options_to_inputs(), blender::do_version_color_matte_node_options_to_inputs(), blender::do_version_color_spill_node_options_to_inputs(), blender::do_version_crop_node_options_to_inputs(), blender::do_version_denoise_node_options_to_inputs(), blender::do_version_despeckle_node_options_to_inputs(), blender::do_version_difference_matte_node_options_to_inputs(), blender::do_version_dilate_node_options_to_inputs(), blender::do_version_directional_blur_node_options_to_inputs(), blender::do_version_distance_matte_node_options_to_inputs(), blender::do_version_ellipse_mask_node_options_to_inputs(), blender::do_version_flip_node_options_to_inputs(), blender::do_version_glare_node_star_45_option_to_input(), blender::do_version_hue_sat_node(), blender::do_version_id_mask_node_options_to_inputs(), blender::do_version_inpaint_node_options_to_inputs(), blender::do_version_invert_node_options_to_inputs(), blender::do_version_keying_node_options_to_inputs(), blender::do_version_keying_screen_node_options_to_inputs(), blender::do_version_kuwahara_node_options_to_inputs(), blender::do_version_lens_distortion_node_options_to_inputs(), blender::do_version_luminance_matte_node_options_to_inputs(), blender::do_version_mask_node_options_to_inputs(), blender::do_version_pixelate_node_options_to_inputs(), blender::do_version_plane_track_deform_node_options_to_inputs(), blender::do_version_split_node_options_to_inputs(), blender::do_version_split_node_rotation(), blender::do_version_stabilize_node_options_to_inputs(), blender::do_version_sun_beams_node_options_to_inputs(), blender::do_version_switch_node_options_to_inputs(), blender::do_version_time_curve_node_options_to_inputs(), blender::do_version_tone_map_node_options_to_inputs(), blender::do_version_vector_blur_node_options_to_inputs(), blender::do_version_z_combine_node_options_to_inputs(), blender::node_add_socket_from_template(), node_add_static_socket(), blender::ntree_shader_setup_custom_lighting_zone(), blender::ntreeCompositOutputFileAddSocket(), blender::version_geometry_nodes_set_position_node_offset(), blender::version_node_add_socket_if_not_exist(), blender::version_principled_bsdf_coat(), blender::version_principled_bsdf_emission(), blender::version_principled_bsdf_subsurface(), and blender::versioning_replace_splitviewer().
Definition at line 4883 of file node.cc.
References blender::BKE_ntree_update_tag_parent_change(), blender::BLI_assert(), node, node_attach_node(), and node_is_parent_and_child().
Referenced by blender::ed::space_node::add_reroute_exec(), blender::ed::space_node::NodeSetCopy::from_nodes(), blender::ed::space_node::node_attach_invoke(), node_attach_node(), blender::ed::space_node::node_duplicate_reparent_recursive(), blender::ed::space_node::node_join_attach_recursive(), blender::ed::space_node::node_parent_set_exec(), and blender::ed::transform::special_aftertrans_update__node().
|
static |
Definition at line 1988 of file node.cc.
References blender::BKE_curvemapping_blend_read(), blender::bke::bNodeType::blend_data_read_storage_content, BLO_read_raw_address, blender::BLO_read_string(), blender::BLO_read_struct_by_name_array(), BLO_read_struct_list, blender::NodeShaderScript::bytecode, CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_LEGACY, CMP_NODE_CURVE_RGB, CMP_NODE_CURVE_VEC_DEPRECATED, CMP_NODE_HUECORRECT, CMP_NODE_IMAGE, CMP_NODE_TIME, CMP_NODE_VIEWER, blender::NodeCryptomatte::entries, blender::NodeTexEnvironment::iuser, blender::NodeTexImage::iuser, blender::NodeCryptomatte_Runtime::layers, blender::NodeCryptomatte::matte_id, node, node_blend_read_data_storage(), node_type_find(), blender::NodeCryptomatte::runtime, blender::ImageUser::scene, SH_NODE_CURVE_FLOAT, SH_NODE_CURVE_RGB, SH_NODE_CURVE_VEC, SH_NODE_SCRIPT, SH_NODE_TEX_ENVIRONMENT, SH_NODE_TEX_IMAGE, blender::bke::bNodeType::storagename, TEX_NODE_CURVE_RGB, TEX_NODE_CURVE_TIME, TEX_NODE_IMAGE, and blender::UString::UString().
Referenced by node_blend_read_data_storage(), and node_tree_blend_read_data().
|
static |
Definition at line 1263 of file node.cc.
References blender::NodeGlare::angle, blender::BKE_curvemapping_curves_blend_write(), blender::bke::bNodeType::blend_write_storage_content, blender::NodeShaderScript::bytecode, blender::CD_PROP_FLOAT, CMP_NODE_CRYPTOMATTE, CMP_NODE_CRYPTOMATTE_LEGACY, CMP_NODE_CURVE_RGB, CMP_NODE_CURVE_VEC_DEPRECATED, CMP_NODE_GLARE, blender::CMP_NODE_GLARE_SIMPLE_STAR, blender::CMP_NODE_GLARE_STREAKS, CMP_NODE_HUECORRECT, CMP_NODE_TIME, ELEM, blender::NodeCryptomatte::entries, GEO_NODE_CAPTURE_ATTRIBUTE, GEO_NODE_VIEWER, blender::BlendWriter::is_undo(), blender::NodeCryptomatte::matte_id, node, node_blend_write_storage(), SH_NODE_CURVE_FLOAT, SH_NODE_CURVE_RGB, SH_NODE_CURVE_VEC, SH_NODE_SCRIPT, blender::SOCK_BOOLEAN, blender::SOCK_FLOAT, blender::SOCK_INT, blender::SOCK_MATRIX, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_VECTOR, socket_type_to_custom_data_type(), blender::NodeGlare::star_45, storage, blender::bke::bNodeType::storagename, blender::NodeGlare::streaks, TEX_NODE_CURVE_RGB, TEX_NODE_CURVE_TIME, blender::NodeGlare::type, blender::BlendWriter::write_string(), blender::BlendWriter::write_struct(), and blender::BlendWriter::write_struct_by_name().
Referenced by node_blend_write_storage(), and node_tree_blend_write().
| void blender::bke::node_chain_iterator | ( | const bNodeTree * | ntree, |
| const bNode * | node_start, | ||
| bool(* | callback )(bNode *, bNode *, void *, const bool), | ||
| void * | userdata, | ||
| bool | reversed ) |
Iterate over a chain of nodes, starting with node_start, executing callback for each node (which can return false to end iterator).
| reversed | for backwards iteration |
Definition at line 4125 of file node.cc.
References blender::bNodeLink::flag, blender::bNodeLink::fromnode, blender::bNodeTree::links, node_chain_iterator(), blender::NODE_LINK_VALID, and blender::bNodeLink::tonode.
Referenced by node_chain_iterator(), and blender::io::usd::world_material_to_dome_light().
| void blender::bke::node_chain_iterator_backwards | ( | const bNodeTree * | ntree, |
| bNode * | node_start, | ||
| bool(* | callback )(bNode *, bNode *, void *), | ||
| void * | userdata, | ||
| int | recursion_lvl ) |
Iterate over a chain of nodes, starting with node_start, executing callback for each node (which can return false to end iterator).
Faster than node_chain_iterator. Iter only once per node. Can be called recursively (using another node_chain_iteratorBackwards) by setting the recursion_lvl accordingly.
WARN: No node is guaranteed to be iterated as a to_node, since it could have been iterated earlier as a from_node.
Definition at line 4206 of file node.cc.
References blender::BLI_assert(), iter_backwards_ex(), node, node_chain_iterator_backwards(), and blender::bNodeTree::nodes.
Referenced by node_chain_iterator_backwards(), blender::ntree_shader_copy_branch(), blender::ntree_shader_pruned_unused(), and blender::ntree_shader_weight_tree_invert().
| void blender::bke::node_clear_active | ( | bNodeTree & | ntree | ) |
Definition at line 5477 of file node.cc.
References node, blender::NODE_ACTIVE, and node_clear_active().
Referenced by node_clear_active().
| NodeColorTag blender::bke::node_color_tag | ( | const bNode & | node | ) |
Definition at line 5788 of file node.cc.
References Attribute, Color, Converter, Distort, Filter, Geometry, Group, Input, Interface, Matte, node, NODE_CLASS_ATTRIBUTE, NODE_CLASS_CONVERTER, NODE_CLASS_DISTORT, NODE_CLASS_GEOMETRY, NODE_CLASS_GROUP, NODE_CLASS_INPUT, NODE_CLASS_INTERFACE, NODE_CLASS_LAYOUT, NODE_CLASS_MATTE, NODE_CLASS_OP_COLOR, NODE_CLASS_OP_FILTER, NODE_CLASS_OP_VECTOR, NODE_CLASS_OUTPUT, NODE_CLASS_PATTERN, NODE_CLASS_SCRIPT, NODE_CLASS_SHADER, NODE_CLASS_TEXTURE, node_color_tag(), None, Output, Pattern, Script, Shader, Texture, and Vector.
Referenced by node_color_tag(), blender::ed::space_node::node_group_make_from_node_declaration(), and node_is_dangling_reroute().
| bNode * blender::bke::node_copy_with_mapping | ( | bNodeTree * | dst_tree, |
| const bNode & | node_src, | ||
| int | flag, | ||
| std::optional< StringRefNull > | dst_unique_name, | ||
| std::optional< int > | dst_unique_identifier, | ||
| Map< const bNodeSocket *, bNodeSocket * > & | new_socket_map, | ||
| bool | allow_duplicate_names = false ) |
| dst_unique_name | The name of the copied node. This is expected to be unique in the destination tree if provided. If not provided, the src name is used and is made unique unless allow_duplicate_names is true. |
| dst_unique_identifier | Same ad dst_name, but for the identifier. |
Definition at line 4327 of file node.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BKE_ntree_update_tag_node_new(), blender::BLI_addtail(), blender::BLI_assert(), blender::bke::bNodeType::copyfunc, blender::bke::bNodeType::copyfunc_api, blender::bNode::id, blender::id_us_plus(), blender::bNode::identifier, blender::IDP_CopyProperty_ex(), blender::bNodeInternalLink::in, blender::bNode::inputs, blender::bke::bNodeRuntime::internal_links, blender::LIB_ID_CREATE_NO_MAIN, blender::LIB_ID_CREATE_NO_USER_REFCOUNT, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::bNode::name, node_copy_with_mapping(), node_socket_copy(), node_unique_id(), node_unique_name(), blender::bNodeTree::nodes, blender::bke::bNodeTreeRuntime::nodes_by_id, blender::bNodeInternalLink::out, blender::bNode::outputs, blender::bNode::panel_states_array, blender::bNode::prop, blender::RNA_pointer_create_discrete(), blender::bNode::runtime, blender::bNodeTree::runtime, STRNCPY_UTF8, blender::bNode::system_properties, and blender::bNode::typeinfo.
Referenced by blender::ed::space_node::NodeSetCopy::from_nodes(), blender::ed::space_node::node_copy_local(), node_copy_with_mapping(), blender::ed::space_node::node_duplicate_exec(), ntree_copy_data(), and blender::ntree_shader_copy_branch().
|
static |
Definition at line 4627 of file node.cc.
References ELEM, blender::bNodeLink::fromsock, blender::bNodeTree::links, node_count_links(), and blender::bNodeLink::tosock.
Referenced by node_add_link(), and node_count_links().
| int blender::bke::node_count_socket_links | ( | const bNodeTree & | ntree, |
| const bNodeSocket & | sock ) |
Definition at line 5434 of file node.cc.
References blender::bNodeLink::fromsock, blender::bNodeTree::links, node_count_socket_links(), and blender::bNodeLink::tosock.
Referenced by blender::blo_do_versions_250(), blender::link_nodes(), node_count_socket_links(), blender::ed::space_node::node_link_init(), and blender::ed::space_node::node_socket_add_replace().
| IDProperty * blender::bke::node_create_asset_meta_data_properties | ( | const bNodeTree & | node_tree | ) |
Update asset meta-data cache of data-block properties.
Definition at line 2415 of file node.cc.
References blender::bke::idprop::create(), blender::bke::idprop::create_bool(), blender::bke::idprop::create_group(), create_socket_meta_data_properties(), blender::IDP_AddToGroup(), blender::IDP_FreeProperty(), node_create_asset_meta_data_properties(), blender::NODE_INTERFACE_PANEL_DEFAULT_CLOSED, output, and blender::Panel.
Referenced by blender::ed::geometry::OperatorTypeData::from_group(), node_create_asset_meta_data_properties(), and node_update_asset_metadata().
If the node implements a declare function, this function makes sure that node->declaration is up to date. It is expected that the sockets of the node are up to date already.
Definition at line 5578 of file node.cc.
References node, node_declaration_ensure(), node_declaration_ensure_on_outdated_node(), and node_socket_declarations_update().
Referenced by blender::ed::space_node::get_main_socket(), node_declaration_ensure(), blender::ed::space_node::node_duplicate_exec(), node_is_dangling_reroute(), ntree_copy_data(), and blender::nodes::socket_items::try_add_item_via_extend_socket().
Just update node->declaration if necessary. This can also be called on nodes that may not be up to date (e.g. because the need versioning or are dynamic).
Definition at line 5558 of file node.cc.
References node, node_declaration_ensure_on_outdated_node(), and blender::nodes::update_node_declaration_and_sockets().
Referenced by node_declaration_ensure(), node_declaration_ensure_on_outdated_node(), node_is_dangling_reroute(), and blender::node_verify_sockets().
Definition at line 4891 of file node.cc.
References blender::BKE_ntree_update_tag_parent_change(), blender::BLI_assert(), node, and node_detach_node().
Referenced by blender::ed::transform::flushTransNodes(), blender::ed::space_node::NodeSetCopy::from_nodes(), blender::ed::space_node::node_attach_invoke(), blender::ed::space_node::node_copy_local(), node_detach_node(), blender::ed::space_node::node_detach_recursive(), blender::ed::space_node::node_duplicate_reparent_recursive(), blender::ed::space_node::node_join_attach_recursive(), blender::ed::space_node::node_parent_set_exec(), and node_unlink_attached().
Definition at line 5587 of file node.cc.
References node, and node_dimensions_get().
Referenced by node_dimensions_get().
| bNodeSocket * blender::bke::node_find_enabled_input_socket | ( | bNode & | node, |
| StringRef | name ) |
Definition at line 3068 of file node.cc.
References node, node_find_enabled_input_socket(), node_find_enabled_socket(), and blender::SOCK_IN.
Referenced by blender::nodes::node_geo_evaluate_closure_cc::EvaluateClosureOperation::add_missing_inputs_outputs_warnings(), blender::ed::space_node::attribute_search_exec_fn(), blender::ed::space_node::connect_nested_node_to_node(), blender::ed::space_node::grid_search_exec_fn(), blender::ed::space_node::layer_search_exec_fn(), blender::nodes::node_geo_evaluate_closure_cc::EvaluateClosureOperation::map_inputs(), node_find_enabled_input_socket(), node_is_dangling_reroute(), and blender::nodes::node_geo_evaluate_closure_cc::EvaluateClosureOperation::write_default_outputs().
| bNodeSocket * blender::bke::node_find_enabled_output_socket | ( | bNode & | node, |
| StringRef | name ) |
Definition at line 3073 of file node.cc.
References node, node_find_enabled_output_socket(), node_find_enabled_socket(), and blender::SOCK_OUT.
Referenced by blender::nodes::node_geo_evaluate_closure_cc::EvaluateClosureOperation::add_missing_inputs_outputs_warnings(), blender::ed::space_node::connect_nested_node_to_node(), node_find_enabled_output_socket(), node_is_dangling_reroute(), blender::nodes::node_geo_evaluate_closure_cc::EvaluateClosureOperation::set_reference_counts(), and blender::nodes::node_geo_evaluate_closure_cc::EvaluateClosureOperation::write_outputs().
| bNodeSocket * blender::bke::node_find_enabled_socket | ( | bNode & | node, |
| eNodeSocketInOut | in_out, | ||
| StringRef | name ) |
Definition at line 3055 of file node.cc.
References node, node_find_enabled_socket(), and blender::SOCK_IN.
Referenced by blender::nodes::LinkSearchOpParams::connect_available_socket(), node_find_enabled_input_socket(), node_find_enabled_output_socket(), node_find_enabled_socket(), node_is_dangling_reroute(), and blender::ed::space_node::search_link_ops_for_asset_metadata().
| const bNodeTreeInterfaceSocket * blender::bke::node_find_interface_input_by_identifier | ( | const bNodeTree & | ntree, |
| StringRef | identifier ) |
Try to find an input item with the given identifier in the entire node interface tree.
Definition at line 4079 of file node.cc.
References node_find_interface_input_by_identifier().
Referenced by blender::ed::space_node::connect_copied_nodes_to_external_sockets(), blender::ed::space_node::connect_group_node_to_external_sockets(), blender::getname_anim_fcurve(), and node_find_interface_input_by_identifier().
| const bNodeTreeInterfaceSocket * blender::bke::node_find_interface_output_by_identifier | ( | const bNodeTree & | ntree, |
| StringRef | identifier ) |
Try to find an output item with the given identifier in the entire node interface tree.
Definition at line 4091 of file node.cc.
References node_find_interface_output_by_identifier().
Referenced by blender::ed::space_node::connect_copied_nodes_to_external_sockets(), and node_find_interface_output_by_identifier().
| bNode & blender::bke::node_find_node | ( | bNodeTree & | ntree, |
| bNodeSocket & | socket ) |
Find the node that contains the given socket. This uses the node topology cache, meaning subsequent access after changing the node tree will be more expensive, but amortized over time, the cost is constant.
Definition at line 4053 of file node.cc.
References node_find_node().
Referenced by blender::ui::context_copy_to_selected_list(), blender::getname_anim_fcurve(), node_find_node(), and node_find_node().
| const bNode & blender::bke::node_find_node | ( | const bNodeTree & | ntree, |
| const bNodeSocket & | socket ) |
Definition at line 4059 of file node.cc.
References node_find_node().
| bNode * blender::bke::node_find_node_by_name | ( | bNodeTree & | ntree, |
| StringRefNull | name ) |
Finds a node based on its name.
Definition at line 4047 of file node.cc.
References blender::BLI_findstring(), blender::StringRefNull::c_str(), node_find_node_by_name(), blender::bNodeTree::nodes, and offsetof.
Referenced by blender::ed::space_node::compute_context_for_tree_path(), blender::ed::space_node::connect_nested_node_to_node(), blender::ED_preview_world_simple_set_rgb(), blender::ed::space_node::ensure_nodetree_previews(), blender::ed::space_node::get_compute_context_hash_for_node_editor(), blender::ed::space_node::node_default_group_width_set_exec(), node_find_node_by_name(), blender::io::usd::USDPointInstancerReader::set_collection(), and blender::skip_fcurve_selected_data().
| bNode * blender::bke::node_find_node_try | ( | bNodeTree & | ntree, |
| bNodeSocket & | socket ) |
Finds a node based on given socket, returning null in the case where the socket is not part of the node tree.
Definition at line 4065 of file node.cc.
References blender::bNodeSocket::in_out, node, node_find_node_try(), and blender::SOCK_IN.
Referenced by node_find_node_try().
Definition at line 4103 of file node.cc.
References node, node_find_root_parent(), and blender::bNode::parent.
Referenced by node_find_root_parent().
| bNodeSocket * blender::bke::node_find_socket | ( | bNode & | node, |
| eNodeSocketInOut | in_out, | ||
| UString | identifier ) |
Definition at line 3036 of file node.cc.
References node, node_find_socket(), and blender::SOCK_IN.
Referenced by add_auto_smooth_node_tree(), blender::ed::space_node::add_existing_group_input_fn(), blender::ed::space_node::add_group_input_node_fn(), blender::io::usd::add_input_named_attrib_node(), blender::io::usd::add_lessthan(), blender::io::usd::add_oneminus(), blender::io::usd::add_scale_bias(), blender::io::usd::add_scale_bias_adjust(), blender::ambient_occlusion_node_relink(), blender::io::usd::append_node(), blender::nodes::gizmos::apply_socket_callback(), blender::blender::BLI_listbase_find(), blender::blo_do_versions_300(), blender::BLO_update_defaults_startup_blend(), blender::nodes::gizmos::box_mask_refresh(), blender::change_input_socket_to_rotation_type(), blender::change_output_socket_to_rotation_type(), blender::clamp_subdivision_node_level_input(), blender::io::usd::configure_displacement(), blender::nodes::LinkSearchOpParams::connect_available_socket_by_identifier(), blender::ed::space_node::connect_node_to_surface_output(), blender::ed::space_node::connect_nodes_to_aovs(), blender::io::obj::copy_property_from_node(), blender::bke::node_interface::create_proxy_implicit_input_node(), blender::bke::node_interface::create_proxy_implicit_scene_frame_node(), blender::io::usd::create_transform2d_shader(), blender::io::usd::create_usd_preview_surface_material(), blender::nodes::gizmos::crop_refresh(), blender::default_paint_slot_color_get(), blender::displacement_node_insert(), blender::do_version_alpha_over_node_options_to_inputs(), blender::do_version_alpha_over_remove_premultiply(), blender::do_version_anti_alias_node_options_to_inputs(), blender::do_version_bilateral_blur_node_options_to_inputs(), blender::do_version_blur_defocus_nodes_remove_gamma(), blender::do_version_blur_menus_to_inputs(), blender::do_version_blur_node_options_to_inputs(), blender::do_version_bokeh_blur_node_options_to_inputs(), blender::do_version_bokeh_blur_pixel_size(), blender::do_version_bokeh_image_node_options_to_inputs(), blender::do_version_box_mask_menus_to_inputs(), blender::do_version_box_mask_node_options_to_inputs(), blender::do_version_bright_contrast_remove_premultiplied(), blender::do_version_bump_filter_width(), blender::do_version_channel_matte_menus_to_inputs(), blender::do_version_channel_matte_node_options_to_inputs(), blender::do_version_chroma_matte_node_options_to_inputs(), blender::do_version_color_balance_menus_to_inputs(), blender::do_version_color_balance_node_options_to_inputs(), blender::do_version_color_correction_node_options_to_inputs(), blender::do_version_color_matte_node_options_to_inputs(), blender::do_version_color_spill_menus_to_inputs(), blender::do_version_color_spill_node_options_to_inputs(), blender::do_version_color_to_float_conversion(), blender::do_version_composite_node_in_scene_tree(), blender::do_version_composite_viewer_remove_alpha(), blender::do_version_convert_alpha_menus_to_inputs(), blender::do_version_convert_to_generic_nodes(), blender::do_version_corner_pin_menus_to_inputs(), blender::do_version_crop_node_options_to_inputs(), blender::do_version_denoise_menus_to_inputs(), blender::do_version_denoise_node_options_to_inputs(), blender::do_version_despeckle_node_options_to_inputs(), blender::do_version_difference_matte_node_options_to_inputs(), blender::do_version_dilate_menus_to_inputs(), blender::do_version_dilate_node_options_to_inputs(), blender::do_version_directional_blur_node_options_to_inputs(), blender::do_version_displace_menus_to_inputs(), blender::do_version_displace_node_remove_xy_scale(), blender::do_version_distance_matte_menus_to_inputs(), blender::do_version_distance_matte_node_options_to_inputs(), blender::do_version_distribute_points_in_volume_options_to_inputs(), blender::do_version_double_edge_mask_options_to_inputs(), blender::do_version_ellipse_mask_menus_to_inputs(), blender::do_version_ellipse_mask_node_options_to_inputs(), blender::do_version_fill_curve_options_to_inputs(), blender::do_version_fillet_curve_options_to_inputs(), blender::do_version_filter_menus_to_inputs(), blender::do_version_flip_node_options_to_inputs(), blender::do_version_glare_menus_to_inputs(), blender::do_version_glare_node_star_45_option_to_input(), blender::do_version_hue_sat_node(), blender::do_version_id_mask_node_options_to_inputs(), blender::do_version_inpaint_node_options_to_inputs(), blender::do_version_invert_node_options_to_inputs(), blender::do_version_keying_menus_to_inputs(), blender::do_version_keying_node_options_to_inputs(), blender::do_version_keying_screen_node_options_to_inputs(), blender::do_version_kuwahara_menus_to_inputs(), blender::do_version_kuwahara_node_options_to_inputs(), blender::do_version_lens_distortion_menus_to_inputs(), blender::do_version_lens_distortion_node_options_to_inputs(), blender::do_version_levels_menus_to_inputs(), blender::do_version_lift_gamma_gain_srgb_to_linear(), blender::do_version_luminance_matte_node_options_to_inputs(), blender::do_version_map_uv_menus_to_inputs(), blender::do_version_map_value_node(), blender::do_version_mask_menus_to_inputs(), blender::do_version_mask_node_options_to_inputs(), blender::do_version_match_string_options_to_inputs(), blender::do_version_material_remove_use_nodes(), blender::do_version_merge_by_distance_options_to_inputs(), blender::do_version_merge_layers_options_to_inputs(), blender::do_version_mesh_to_volume_options_to_inputs(), blender::do_version_mix_color_use_alpha(), blender::do_version_mix_node_mix_mode_compositor(), blender::do_version_mix_node_mix_mode_geometry(), blender::do_version_movie_distortion_menus_to_inputs(), blender::do_version_new_glare_clamp_input(), blender::do_version_node_curve_to_mesh_scale_input(), blender::do_version_normal_node_dot_product(), blender::do_version_pixelate_node_options_to_inputs(), blender::do_version_plane_track_deform_node_options_to_inputs(), blender::do_version_points_to_volume_options_to_inputs(), blender::do_version_raycast_options_to_inputs(), blender::do_version_remove_attribute_options_to_inputs(), blender::do_version_replace_image_info_node_coordinates(), blender::do_version_resample_curve_options_to_inputs(), blender::do_version_rotate_menus_to_inputs(), blender::do_version_sample_grid_options_to_inputs(), blender::do_version_scale_elements_options_to_inputs(), blender::do_version_scale_menus_to_inputs(), blender::do_version_scale_node_remove_translate(), blender::do_version_set_alpha_menus_to_inputs(), blender::do_version_set_curve_normal_options_to_inputs(), blender::do_version_set_grease_pencil_colors_options_to_inputs(), blender::do_version_set_grease_pencil_depth_options_to_inputs(), blender::do_version_split_node_options_to_inputs(), blender::do_version_split_node_rotation(), blender::do_version_stabilize_2d_menus_to_inputs(), blender::do_version_stabilize_node_options_to_inputs(), blender::do_version_subdivision_surface_options_to_inputs(), blender::do_version_sun_beams(), blender::do_version_sun_beams_node_options_to_inputs(), blender::do_version_switch_node_options_to_inputs(), blender::do_version_texture_gradient_clamp(), blender::do_version_time_curve_node_options_to_inputs(), blender::do_version_tone_map_menus_to_inputs(), blender::do_version_tone_map_node_options_to_inputs(), blender::do_version_track_position_menus_to_inputs(), blender::do_version_transform_geometry_options_to_inputs(), blender::do_version_transform_menus_to_inputs(), blender::do_version_translate_menus_to_inputs(), blender::do_version_translate_node_remove_relative(), blender::do_version_triangulate_options_to_inputs(), blender::do_version_uv_pack_islands_options_to_inputs(), blender::do_version_uv_unwrap_options_to_inputs(), blender::do_version_vector_blur_node_options_to_inputs(), blender::do_version_volume_to_mesh_options_to_inputs(), blender::do_version_z_combine_node_options_to_inputs(), blender::do_versions_material_convert_legacy_blend_mode(), blender::io::usd::dome_light_to_world_material(), blender::ED_preview_world_simple_set_rgb(), blender::ed::curves::ensure_surface_deformation_node_exists(), blender::fix_geometry_nodes_object_info_scale(), blender::get_input_socket(), blender::nodes::gizmos::gizmo_input_image_log(), blender::nodes::gizmos::gizmo_node_box_mask_prop_matrix_get(), blender::nodes::gizmos::gizmo_node_box_mask_prop_matrix_set(), blender::nodes::gizmos::gizmo_node_split_prop_matrix_get(), blender::nodes::gizmos::gizmo_node_split_prop_matrix_set(), blender::nodes::gizmos::gizmo_node_transform_prop_matrix_get(), blender::nodes::gizmos::gizmo_node_transform_prop_matrix_set(), blender::nodes::gizmos::gizmo_node_translate_prop_offset_get(), blender::nodes::gizmos::gizmo_node_translate_prop_offset_set(), blender::nodes::gizmos::glare_refresh(), blender::nodes::node_fn_integer_math_cc::int_math_input_defaults(), blender::light_emission_node_to_energy(), blender::link_nodes(), blender::io::fbx::link_sockets(), blender::io::obj::link_sockets(), blender::eevee::LookdevWorld::LookdevWorld(), blender::material_default_gsplat_init(), blender::material_default_holdout_init(), blender::material_default_surface_init(), blender::material_default_volume_init(), blender::eevee::MaterialModule::MaterialModule(), blender::nodes::node_shader_math_cc::math_input_defaults(), blender::ed::space_node::node_add_collection_exec(), blender::ed::space_node::node_add_object_exec(), blender::ed::space_node::node_copy_local(), blender::nodes::node_composite_channel_key_cc::node_declare(), blender::nodes::node_shader_bsdf_principled_cc::node_declare(), node_find_socket(), node_find_socket(), blender::nodes::gizmos::node_input_from_rect(), blender::nodes::gizmos::node_input_to_rect(), blender::nodes::gizmos::node_scale_gizmo_scale_get(), blender::nodes::gizmos::node_scale_gizmo_scale_set(), blender::nodes::gizmos::node_scale_is_absolute(), blender::io::usd::node_search(), blender::nodes::node_shader_light_evaluation_cc::node_shader_update_light_evaluation(), blender::nodes::node_shader_mapping_cc::node_shader_update_mapping(), blender::nodes::node_shader_bsdf_metallic_cc::node_shader_update_metallic(), blender::nodes::node_shader_bsdf_principled_cc::node_shader_update_principled(), blender::nodes::node_shader_tex_sky_cc::node_shader_update_sky(), blender::nodes::node_shader_vector_math_cc::node_shader_update_vector_math(), blender::nodes::node_shader_vector_rotate_cc::node_shader_update_vector_rotate(), blender::node_tree_relink_with_socket_id_map(), blender::nodes::node_tree_shader_default(), blender::nodes::node_composite_relative_to_pixel_cc::node_update(), blender::bke::greasepencil::convert::offset_radius_node_tree_add(), blender::nodes::node_composite_filter_cc::SocketSearchOp::operator()(), blender::nodes::node_composite_glare_cc::SocketSearchOp::operator()(), blender::ed::space_node::prepare_viewlayer_update(), blender::io::usd::process_inputs(), blender::proj_paint_add_slot(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::remove_triangulate_node_min_size_input(), blender::ed::space_node::replace_interface_socket(), blender::nodes::gizmos::scale_refresh(), blender::io::usd::USDPointInstancerReader::set_collection(), blender::io::usd::USDMaterialReader::set_displacement_node_inputs(), blender::io::usd::USDMaterialReader::set_node_input(), blender::io::usd::USDMaterialReader::set_principled_node_inputs(), blender::io::obj::set_property_of_socket(), blender::io::fbx::set_socket_float(), blender::io::fbx::set_socket_rgb(), blender::io::fbx::set_socket_vector(), blender::ed::space_node::shader_preview_startjob(), blender::nodes::gizmos::show_glare_gizmo(), blender::nodes::gizmos::split_refresh(), blender::nodes::gizmos::transform_refresh(), blender::nodes::gizmos::translate_refresh(), blender::nodes::socket_items::try_add_item_via_extend_socket(), blender::update_mapping_node_inputs_and_properties(), blender::update_noise_and_wave_distortion(), blender::update_vector_math_node_add_and_subtract_operators(), blender::update_vector_math_node_average_operator(), blender::update_vector_math_node_cross_product_operator(), blender::update_vector_math_node_dot_product_operator(), blender::update_vector_math_node_normalize_operator(), blender::update_voronoi_node_coloring(), blender::update_voronoi_node_crackle(), blender::update_voronoi_node_square_distance(), blender::update_wave_node_directions_and_offset(), blender::nodes::BaseSocketDeclarationBuilder::usage_by_bool(), blender::nodes::BaseSocketDeclarationBuilder::usage_by_menu(), blender::nodes::node_shader_vector_math_cc::vector_math_input_defaults(), blender::version_geometry_nodes_extrude_smooth_propagation(), blender::version_geometry_nodes_replace_transfer_attribute_node(), blender::version_geometry_nodes_use_rotation_socket(), blender::version_mesh_crease_generic(), blender::version_node_add_socket_if_not_exist(), blender::version_node_socket_duplicate(), blender::version_principled_bsdf_coat(), blender::version_principled_bsdf_emission(), blender::version_principled_bsdf_sheen(), blender::version_principled_bsdf_specular_tint(), blender::version_principled_bsdf_subsurface(), blender::version_principled_transmission_roughness(), blender::version_refraction_depth_to_thickness_value(), blender::version_replace_texcoord_normal_socket(), blender::version_replace_velvet_sheen_node(), blender::version_string_to_curves_node_inputs(), blender::version_update_node_input(), blender::versioning_eevee_alpha_source_get(), blender::versioning_eevee_material_blend_mode_settings(), blender::versioning_eevee_material_shadow_none(), blender::versioning_replace_musgrave_texture_node(), blender::versioning_replace_splitviewer(), blender::versioning_update_noise_texture_node(), and blender::bke::forward_compat::write_legacy_properties().
| const bNodeSocket * blender::bke::node_find_socket | ( | const bNode & | node, |
| eNodeSocketInOut | in_out, | ||
| UString | identifier ) |
Definition at line 3047 of file node.cc.
References node, and node_find_socket().
|
static |
Definition at line 428 of file node.cc.
References BKE_LIB_FOREACHID_PROCESS_ID, BKE_LIB_FOREACHID_PROCESS_IDSUPER, blender::data, blender::bke::bNodeTreeRuntime::eval_dependencies, blender::bNodeTree::gpd, blender::IDWALK_CB_HASH_IGNORE, blender::IDWALK_CB_LOOPBACK, blender::IDWALK_CB_NEVER_SELF, blender::IDWALK_CB_READFILE_IGNORE, blender::IDWALK_CB_USER, node, node_foreach_id(), node_node_foreach_id(), blender::bNodeTree::owner_id, blender::bNodeTree::runtime, and blender::bNodeTree::tree_interface.
Referenced by node_foreach_id().
|
static |
Definition at line 452 of file node.cc.
References blender::BKE_bpath_foreach_path_fixed_process(), blender::NodeShaderScript::filepath, blender::NodeShaderTexIES::filepath, blender::NodeShaderScript::mode, blender::NodeShaderTexIES::mode, node, node_foreach_path(), blender::NODE_IES_EXTERNAL, blender::NODE_SCRIPT_EXTERNAL, blender::NTREE_GEOMETRY, blender::NTREE_SHADER, blender::PROP_FILEPATH, SH_NODE_SCRIPT, SH_NODE_TEX_IES, blender::SOCK_STRING, blender::bNodeSocketValueString::subtype, blender::bNodeTree::type, and blender::bNodeSocketValueString::value.
Referenced by node_foreach_path().
|
static |
Definition at line 500 of file node.cc.
References blender::BKE_colorband_foreach_working_space_color(), blender::NodeInputColor::color, blender::copy_v3_v3(), ELEM, FN_NODE_INPUT_COLOR, length(), node, node_foreach_working_space_color(), blender::math::normalize_and_get_length(), SH_NODE_NORMAL_MAP, SH_NODE_VALTORGB, SH_NODE_VECTOR_DISPLACEMENT, blender::SOCK_RGBA, blender::SOCK_VECTOR, STR_ELEM, STREQ, TEX_NODE_VALTORGB, blender::bke::bNodeSocketType::type, blender::bNodeSocketValueRGBA::value, and blender::bNodeSocketValueVector::value.
Referenced by node_foreach_working_space_color().
Free the node itself.
Definition at line 5073 of file node.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::as_span(), blender::BKE_ntree_update_tag_node_removed(), blender::BLI_remlink(), blender::bke::bNodeTreeRuntime::execdata, blender::IDP_FreeProperty_ex(), node, node_free_node(), node_rebuild_id_vector(), node_socket_free(), blender::bNodeTree::nodes, blender::bke::bNodeTreeRuntime::nodes_by_id, blender::NTREE_TEXTURE, blender::ntreeTexEndExecTree(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::pop(), blender::bNodeTree::runtime, and blender::bNodeTree::type.
Referenced by blender::ed::space_node::join_group_inputs(), node_free_node(), node_remove_node(), node_tree_free_local_node(), ntree_free_data(), blender::ntree_shader_pruned_unused(), and blender::version_node_remove().
|
static |
Definition at line 2984 of file node.cc.
References defer_free_socket_type(), G_MAIN, node_free_socket_type(), and update_typeinfo().
Referenced by node_free_socket_type(), node_system_exit(), and node_unregister_socket_type().
|
static |
Definition at line 2901 of file node.cc.
References defer_free_node_type(), G_MAIN, node_free_type(), blender::bke::bNodeType::static_declaration, and update_typeinfo().
Referenced by node_free_type(), node_system_exit(), and node_unregister_type().
Definition at line 5445 of file node.cc.
References node, blender::NODE_ACTIVE, and node_get_active().
Referenced by blender::nodes::gizmos::box_mask_refresh(), blender::nodes::gizmos::corner_pin_refresh(), blender::nodes::gizmos::crop_refresh(), blender::nodes::socket_items::ops::get_active_node_to_operate_on(), blender::nodes::gizmos::glare_refresh(), blender::ed::space_node::node_activate_viewer_exec(), blender::ed::space_node::node_active_link_viewer_exec(), blender::ed::space_node::node_comment_edit_invoke(), blender::ed::space_node::node_context(), blender::ed::space_node::node_copy_color_exec(), blender::ed::space_node::node_cryptomatte_add_socket_exec(), blender::ed::space_node::node_cryptomatte_remove_socket_exec(), node_get_active(), blender::node_get_active(), node_get_active_paint_canvas(), node_get_active_texture(), blender::ed::space_node::node_group_get_active(), blender::ed::space_node::node_join_nodes_exec(), blender::ed::space_node::node_parent_set_exec(), blender::ed::space_node::node_select_grouped_exec(), blender::ed::space_node::node_select_same_type_step_exec(), blender::ed::space_node::node_shader_script_update_exec(), blender::ed::space_node::node_shader_script_update_poll(), blender::ed::space_node::node_toggle_viewer_exec(), blender::nodes::gizmos::scale_refresh(), blender::nodes::gizmos::show_box_mask_gizmo(), blender::nodes::gizmos::show_corner_pin(), blender::nodes::gizmos::show_crop_gizmo(), blender::nodes::gizmos::show_ellipse_mask_gizmo(), blender::nodes::gizmos::show_glare_gizmo(), blender::nodes::gizmos::show_scale_gizmo(), blender::nodes::gizmos::show_split(), blender::nodes::gizmos::show_transform_gizmo(), blender::nodes::gizmos::show_translate_gizmo(), blender::nodes::gizmos::split_refresh(), blender::nodes::gizmos::transform_refresh(), blender::nodes::gizmos::translate_refresh(), and blender::nodes::gizmos::viewer_poll().
Definition at line 504 of file node_shader_util.cc.
References blender::NODE_ACTIVE_PAINT_CANVAS, node_get_active(), and node_get_active_paint_canvas().
Referenced by blender::BKE_texpaint_slot_refresh_cache(), node_get_active_paint_canvas(), and node_is_dangling_reroute().
Two active flags, ID nodes have special flag for buttons display.
Definition at line 499 of file node_shader_util.cc.
References blender::NODE_ACTIVE_TEXTURE, node_get_active(), and node_get_active_texture().
Referenced by blender::ED_object_assign_active_image(), blender::ED_object_get_active_image(), and node_get_active_texture().
| bool blender::bke::node_group_poll | ( | const bNodeTree * | nodetree, |
| const bNodeTree * | grouptree, | ||
| const char ** | r_disabled_hint ) |
Definition at line 180 of file node_common.cc.
References node, RPT_, and blender::bNodeTree::type.
Referenced by blender::ed::space_node::node_group_add_poll(), blender::node_group_poll_instance(), and blender::ed::space_node::ui_node_link_items().
|
static |
Definition at line 5607 of file node.cc.
References hash, node_hash_int_str(), and str.
Referenced by node_hash_int_str(), and node_instance_key().
|
static |
Definition at line 601 of file node_tree_zones.cc.
References node_ids_to_vector(), and blender::Vector< T, InlineBufferCapacity, Allocator >::size().
Referenced by blender::bke::bNodeTreeZone::child_nodes(), node_ids_to_vector(), and blender::bke::bNodeTreeZones::nodes_outside_zones().
Definition at line 2590 of file node.cc.
References blender::BLI_assert(), C, CMP_NODE_R_LAYERS, DATA_, blender::bke::bNodeType::default_width, blender::bke::bNodeType::flag, blender::bke::bNodeType::height, blender::bNodeTree::id, blender::id_us_plus(), blender::bke::bNodeType::initfunc, blender::bke::bNodeType::initfunc_api, node, node_add_sockets_from_type(), blender::NODE_INIT, node_init(), blender::NODE_OPTIONS, blender::NODE_PREVIEW, blender::NODE_SELECT, node_unique_name(), NodeTypeUndefined, blender::RNA_pointer_create_discrete(), and blender::bke::bNodeType::ui_name.
Referenced by node_init(), and node_set_typeinfo().
| bNodeInstanceKey blender::bke::node_instance_key | ( | bNodeInstanceKey | parent_key, |
| const bNodeTree * | ntree, | ||
| const bNode * | node ) |
Definition at line 5621 of file node.cc.
References blender::bNodeTree::id, blender::ID::name, node, node_hash_int_str(), and node_instance_key().
Referenced by blender::bke::compositor::compute_viewer_compute_context_recursive(), blender::ED_node_tree_push(), node_instance_key(), and blender::ntree_exec_begin().
Definition at line 4812 of file node.cc.
References adjust_multi_input_indices_after_removed_link(), blender::Vector< T, InlineBufferCapacity, Allocator >::append_non_duplicates(), blender::BKE_ntree_update_tag_link_changed(), blender::bNodeLink::flag, blender::bNodeLink::fromnode, blender::bNodeLink::fromsock, blender::bNodeInternalLink::in, blender::bNodeSocket::link, blender::bNodeTree::links, node, node_internal_relink(), blender::NODE_LINK_MUTED, blender::NODE_LINK_VALID, node_remove_link(), and blender::bNodeInternalLink::out.
Referenced by blender::ed::space_node::detach_links_exec(), blender::localize(), blender::ed::space_node::node_delete_reconnect_exec(), and node_internal_relink().
Definition at line 801 of file node_common.cc.
References blender::Stack< T, InlineBufferCapacity, Allocator >::is_empty(), node, NODE_CLASS_OUTPUT, blender::NODE_DO_OUTPUT, blender::Stack< T, InlineBufferCapacity, Allocator >::pop(), and blender::Stack< T, InlineBufferCapacity, Allocator >::push().
Referenced by blender::ed::object::bake_object_check(), and node_is_dangling_reroute().
A dangling reroute node is a reroute node that does not have a "data source", i.e. no non-reroute node is connected to its input.
References custom_data_type_to_socket_type(), geo_nodes_base_cpp_type_to_socket_type(), grid_type_to_socket_type(), node, node_color_tag(), node_declaration_ensure(), node_declaration_ensure_on_outdated_node(), node_find_enabled_input_socket(), node_find_enabled_output_socket(), node_find_enabled_socket(), node_get_active_paint_canvas(), node_is_connected_to_output(), node_is_dangling_reroute(), node_label(), node_set_socket_availability(), node_socket_declarations_update(), node_socket_label(), node_socket_short_label(), node_socket_translation_context(), node_supports_active_flag(), node_type_base(), node_type_socket_templates(), NodeSocketTypeUndefined, NodeTreeTypeUndefined, NodeTypeUndefined, socket_type_to_custom_data_type(), socket_type_to_geo_nodes_base_cpp_type(), and socket_type_to_grid_type().
Referenced by node_is_dangling_reroute().
Definition at line 4115 of file node.cc.
References node_is_parent_and_child(), and blender::bNode::parent.
Referenced by blender::ed::space_node::can_attach_node_to_frame(), node_attach_node(), and node_is_parent_and_child().
| bool blender::bke::node_is_static_socket_type | ( | const bNodeSocketType & | stype | ) |
Definition at line 3483 of file node.cc.
References blender::bke::bNodeSocketType::ext_socket, node_is_static_socket_type(), blender::RNA_struct_is_a(), and blender::ExtensionRNA::srna.
Referenced by blender::composite_node_tree_socket_type_valid(), blender::geometry_node_tree_socket_type_valid(), blender::is_same_socket_base_type(), blender::bke::node_interface::socket_types::is_supported_socket_type(), node_is_static_socket_type(), blender::shader_node_tree_socket_type_valid(), blender::ed::space_node::socket_types_need_conversion(), and blender::texture_node_tree_socket_type_valid().
Definition at line 5732 of file node.cc.
References IFACE_, MAX_NAME, node, and node_label().
Referenced by blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_collapsed(), blender::ed::space_node::node_find_create_node_label(), blender::ed::space_node::node_find_update_fn(), blender::ed::space_node::node_group_make_from_node_declaration(), node_is_dangling_reroute(), node_label(), blender::ed::space_node::ui_node_sock_name(), and blender::ed::viewer_path::viewer_path_for_geometry_node().
| bool blender::bke::node_link_is_hidden | ( | const bNodeLink & | link | ) |
Definition at line 4711 of file node.cc.
References blender::bNodeLink::fromsock, node_link_is_hidden(), and blender::bNodeLink::tosock.
Referenced by blender::ed::space_node::find_internal_links(), blender::ed::space_node::get_internal_group_links(), blender::ed::space_node::get_socket_links(), blender::ed::space_node::node_draw_mute_line(), blender::ed::space_node::node_draw_nodetree(), node_link_is_hidden(), and blender::ed::space_node::node_link_is_hidden_or_dimmed().
| bool blender::bke::node_link_is_selected | ( | const bNodeLink & | link | ) |
Definition at line 4770 of file node.cc.
References blender::BLI_assert(), check_link_selected_backward(), check_link_selected_forward(), blender::bNodeLink::fromnode, node_link_is_selected(), blender::bNodeLink::tonode, and blender::bke::node_tree_runtime::topology_cache_is_available().
Referenced by blender::ed::space_node::node_draw_nodetree(), and node_link_is_selected().
Set the mute status of a single link.
Definition at line 4693 of file node.cc.
References blender::BKE_ntree_update_tag_link_mute(), blender::bNodeLink::flag, blender::NODE_LINK_MUTED, node_link_set_mute(), and SET_FLAG_FROM_TEST.
Referenced by blender::ed::space_node::add_reroute_exec(), blender::ed::space_node::mute_links_exec(), blender::ed::space_node::node_insert_on_link_flags(), blender::ed::space_node::node_link_cancel(), node_link_set_mute(), and blender::ed::space_node::pick_link().
| void blender::bke::node_modify_socket_type | ( | bNodeTree & | ntree, |
| bNode & | node, | ||
| bNodeSocket & | sock, | ||
| StringRefNull | idname ) |
Definition at line 3380 of file node.cc.
References blender::StringRefNull::c_str(), CLOG_ERROR, blender::blender::StringRefBase::copy_utf8_truncated(), blender::bNodeSocket::default_value, blender::bNodeSocket::idname, blender::LOG, node_modify_socket_type(), node_socket_free_default_value(), node_socket_set_typeinfo(), node_socket_type_find(), blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, blender::bke::bNodeSocketType::subtype, blender::bke::bNodeSocketType::type, and blender::bNodeSocket::type.
Referenced by node_modify_socket_type(), and node_modify_socket_type_static().
| void blender::bke::node_modify_socket_type_static | ( | bNodeTree * | ntree, |
| bNode * | node, | ||
| bNodeSocket * | sock, | ||
| int | type, | ||
| int | subtype ) |
Definition at line 3448 of file node.cc.
References CLOG_ERROR, blender::LOG, node, node_modify_socket_type(), node_modify_socket_type_static(), and node_static_socket_type().
Referenced by blender::do_version_blur_node_options_to_inputs(), node_modify_socket_type_static(), blender::verify_socket_template(), blender::version_principled_bsdf_sheen(), and blender::version_principled_bsdf_specular_tint().
| void blender::bke::node_node_foreach_id | ( | bNode * | node, |
| LibraryForeachIDData * | data ) |
Iterate over all ID usages of the given node. Can be used with #BKE_library_foreach_subdata_ID_link.
See BKE_lib_query.hh and #IDTypeInfo.foreach_id for more details.
Definition at line 404 of file node.cc.
References BKE_LIB_FOREACHID_PROCESS_FUNCTION_CALL, BKE_LIB_FOREACHID_PROCESS_ID, blender::data, blender::IDP_foreach_property(), blender::IDP_TYPE_FILTER_ID, blender::IDWALK_CB_LOOPBACK, blender::IDWALK_CB_USER, library_foreach_node_socket(), node, and node_node_foreach_id().
Referenced by node_foreach_id(), node_node_foreach_id(), and blender::bke::tests::TEST_F().
Definition at line 572 of file node.cc.
References blender::BLI_assert(), blender::ID_FLAG_EMBEDDED_DATA, node_owner_pointer_get(), node_tree_from_id(), and blender::bNodeTree::owner_id.
Referenced by node_owner_pointer_get().
| void blender::bke::node_parents_iterator | ( | bNode * | node, |
| bool(* | callback )(bNode *, void *), | ||
| void * | userdata ) |
Iterate over all parents of node, executing callback for each parent (which can return false to end iterator)
Definition at line 4228 of file node.cc.
References node, and node_parents_iterator().
Referenced by node_parents_iterator().
|
static |
Definition at line 5839 of file node.cc.
References node_poll_default().
Referenced by node_poll_default(), and node_type_base().
|
static |
Definition at line 5846 of file node.cc.
References node, and node_poll_instance_default().
Referenced by node_poll_instance_default(), and node_type_base().
| void blender::bke::node_position_propagate | ( | bNode & | node | ) |
Definition at line 4942 of file node.cc.
References blender::bNodeLink::fromnode, blender::bNodeLink::fromsock, blender::bNodeSocket::link, node, node_position_propagate(), node_position_relative(), blender::bNodeLink::tonode, and blender::bNodeLink::tosock.
Referenced by node_position_propagate(), and blender::proj_paint_add_slot().
| void blender::bke::node_position_relative | ( | bNode & | from_node, |
| const bNode & | to_node, | ||
| const bNodeSocket * | from_sock, | ||
| const bNodeSocket & | to_sock ) |
Definition at line 4900 of file node.cc.
References blender::BLI_assert(), blender::BLI_findindex(), blender::bke::bNodeType::default_width, blender::bNodeSocket::in_out, blender::bNode::inputs, blender::bNode::location, node_position_relative(), blender::bNode::outputs, blender::SOCK_IN, blender::bNode::typeinfo, and blender::U.
Referenced by node_position_propagate(), node_position_relative(), blender::ed::space_node::node_socket_add_replace(), and blender::proj_paint_add_slot().
| void blender::bke::node_rebuild_id_vector | ( | bNodeTree & | node_tree | ) |
Rebuild the node_by_id runtime vector set. Call after removing a node if not handled separately. This is important instead of just using nodes_by_id.remove() since it maintains the node order.
Definition at line 5062 of file node.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::clear(), node, node_rebuild_id_vector(), blender::bNodeTree::nodes, blender::bke::bNodeTreeRuntime::nodes_by_id, and blender::bNodeTree::runtime.
Referenced by node_free_node(), node_rebuild_id_vector(), node_remove_node(), node_tree_free_local_node(), blender::version_geometry_nodes_extrude_smooth_propagation(), blender::version_geometry_nodes_primitive_uv_maps(), and blender::version_node_remove().
Definition at line 2956 of file node.cc.
References get_node_type_alias_map(), blender::bke::bNodeType::idname, and node_register_alias().
Referenced by node_register_alias(), and blender::register_node_type_sh_bsdf_glossy().
| void blender::bke::node_register_socket_type | ( | bNodeSocketType & | stype | ) |
Definition at line 2998 of file node.cc.
References G_MAIN, get_socket_type_map(), node_register_socket_type(), and update_typeinfo().
Referenced by node_register_socket_type(), and blender::register_standard_node_socket_types().
| void blender::bke::node_register_type | ( | bNodeType & | ntype | ) |
Definition at line 2920 of file node.cc.
References blender::BLI_assert(), blender::nodes::build_node_declaration(), blender::UString::c_str(), blender::bke::bNodeType::declare, blender::bke::bNodeType::enum_name_legacy, G_MAIN, get_node_type_map(), blender::bke::bNodeType::idname, blender::UString::is_empty(), node_register_type(), blender::bke::bNodeType::poll, blender::RNA_def_struct_ui_text(), blender::bke::bNodeType::rna_ext, blender::ExtensionRNA::srna, blender::bke::bNodeType::static_declaration, blender::bke::bNodeType::ui_description, blender::bke::bNodeType::ui_name, and update_typeinfo().
Referenced by blender::nodes::node_composite_alpha_convert_cc::node_register(), blender::nodes::node_composite_alpha_over_cc::node_register(), blender::nodes::node_composite_anti_aliasing_cc::node_register(), blender::nodes::node_composite_bilateral_blur_cc::node_register(), blender::nodes::node_composite_blank_image_cc::node_register(), blender::nodes::node_composite_blur_cc::node_register(), blender::nodes::node_composite_bokeh_blur_cc::node_register(), blender::nodes::node_composite_bokeh_image_cc::node_register(), blender::nodes::node_composite_box_mask_cc::node_register(), blender::nodes::node_composite_brightness_contrast_cc::node_register(), blender::nodes::node_composite_channel_key_cc::node_register(), blender::nodes::node_composite_chroma_key_cc::node_register(), blender::nodes::node_composite_color_balance_cc::node_register(), blender::nodes::node_composite_color_cc::node_register(), blender::nodes::node_composite_color_correction_cc::node_register(), blender::nodes::node_composite_color_key_cc::node_register(), blender::nodes::node_composite_color_spill_cc::node_register(), blender::nodes::node_composite_combine_color_cc::node_register(), blender::nodes::node_composite_convert_color_space_cc::node_register(), blender::nodes::node_composite_convert_to_display_cc::node_register(), blender::nodes::node_composite_convolve_cc::node_register(), blender::nodes::node_composite_corner_pin_cc::node_register(), blender::nodes::node_composite_crop_cc::node_register(), blender::nodes::node_composite_cryptomatte_cc::node_register(), blender::nodes::node_composite_defocus_cc::node_register(), blender::nodes::node_composite_denoise_cc::node_register(), blender::nodes::node_composite_depth_combin_cc::node_register(), blender::nodes::node_composite_despeckle_cc::node_register(), blender::nodes::node_composite_difference_key_cc::node_register(), blender::nodes::node_composite_dilate_erode_cc::node_register(), blender::nodes::node_composite_directional_blur_cc::node_register(), blender::nodes::node_composite_displace_cc::node_register(), blender::nodes::node_composite_distance_key_cc::node_register(), blender::nodes::node_composite_double_edge_mask_cc::node_register(), blender::nodes::node_composite_ellipse_mask_cc::node_register(), blender::nodes::node_composite_exposure_cc::node_register(), blender::nodes::node_composite_file_output_cc::node_register(), blender::nodes::node_composite_filter_cc::node_register(), blender::nodes::node_composite_flip_cc::node_register(), blender::nodes::node_composite_glare_cc::node_register(), blender::nodes::node_composite_group_cc::node_register(), blender::nodes::node_composite_hue_correct_cc::node_register(), blender::nodes::node_composite_hue_saturation_value_cc::node_register(), blender::nodes::node_composite_id_mask_cc::node_register(), blender::nodes::node_composite_image_cc::node_register(), blender::nodes::node_composite_image_coordinates_cc::node_register(), blender::nodes::node_composite_image_info_cc::node_register(), blender::nodes::node_composite_inpaint_cc::node_register(), blender::nodes::node_composite_invert_cc::node_register(), blender::nodes::node_composite_keying_cc::node_register(), blender::nodes::node_composite_keying_screen_cc::node_register(), blender::nodes::node_composite_kuwahara_cc::node_register(), blender::nodes::node_composite_legacy_cryptomatte_cc::node_register(), blender::nodes::node_composite_lens_distortion_cc::node_register(), blender::nodes::node_composite_levels_cc::node_register(), blender::nodes::node_composite_luminance_key_cc::node_register(), blender::nodes::node_composite_map_uv_cc::node_register(), blender::nodes::node_composite_mask_cc::node_register(), blender::nodes::node_composite_mask_to_sdf_cc::node_register(), blender::nodes::node_composite_movie_clip_cc::node_register(), blender::nodes::node_composite_movie_distortion_cc::node_register(), blender::nodes::node_composite_normal_cc::node_register(), blender::nodes::node_composite_normalize_cc::node_register(), blender::nodes::node_composite_pixelate_cc::node_register(), blender::nodes::node_composite_plane_track_deform_cc::node_register(), blender::nodes::node_composite_posterize_cc::node_register(), blender::nodes::node_composite_relative_to_pixel_cc::node_register(), blender::nodes::node_composite_render_layer_cc::node_register(), blender::nodes::node_composite_rgb_curves_cc::node_register(), blender::nodes::node_composite_rgb_to_bw_cc::node_register(), blender::nodes::node_composite_rotate_cc::node_register(), blender::nodes::node_composite_scale_cc::node_register(), blender::nodes::node_composite_scene_time_cc::node_register(), blender::nodes::node_composite_separate_color_cc::node_register(), blender::nodes::node_composite_set_alpha_cc::node_register(), blender::nodes::node_composite_split_cc::node_register(), blender::nodes::node_composite_stabilize_2d_cc::node_register(), blender::nodes::node_composite_string_to_image_cc::node_register(), blender::nodes::node_composite_strip_info_cc::node_register(), blender::nodes::node_composite_switch_cc::node_register(), blender::nodes::node_composite_switch_view_cc::node_register(), blender::nodes::node_composite_time_curves_cc::node_register(), blender::nodes::node_composite_tone_map_cc::node_register(), blender::nodes::node_composite_track_position_cc::node_register(), blender::nodes::node_composite_transform_cc::node_register(), blender::nodes::node_composite_translate_cc::node_register(), blender::nodes::node_composite_vector_blur_cc::node_register(), blender::nodes::node_composite_viewer_cc::node_register(), blender::nodes::node_fn_align_euler_to_vector_cc::node_register(), blender::nodes::node_fn_align_rotation_to_vector_cc::node_register(), blender::nodes::node_fn_axes_to_rotation_cc::node_register(), blender::nodes::node_fn_axis_angle_to_rotation_cc::node_register(), blender::nodes::node_fn_bit_math_cc::node_register(), blender::nodes::node_fn_boolean_math_cc::node_register(), blender::nodes::node_fn_combine_color_cc::node_register(), blender::nodes::node_fn_combine_matrix_cc::node_register(), blender::nodes::node_fn_combine_transform_cc::node_register(), blender::nodes::node_fn_compare_cc::node_register(), blender::nodes::node_fn_euler_to_rotation_cc::node_register(), blender::nodes::node_fn_find_in_string_cc::node_register(), blender::nodes::node_fn_float_to_int_cc::node_register(), blender::nodes::node_fn_format_string_cc::node_register(), blender::nodes::node_fn_get_vector_component_cc::node_register(), blender::nodes::node_fn_hash_value_cc::node_register(), blender::nodes::node_fn_input_bool_cc::node_register(), blender::nodes::node_fn_input_color_cc::node_register(), blender::nodes::node_fn_input_int_cc::node_register(), blender::nodes::node_fn_input_int_vector_cc::node_register(), blender::nodes::node_fn_input_menu_cc::node_register(), blender::nodes::node_fn_input_rotation_cc::node_register(), blender::nodes::node_fn_input_special_characters_cc::node_register(), blender::nodes::node_fn_input_string_cc::node_register(), blender::nodes::node_fn_input_vector_cc::node_register(), blender::nodes::node_fn_integer_math_cc::node_register(), blender::nodes::node_fn_invert_matrix_cc::node_register(), blender::nodes::node_fn_invert_rotation_cc::node_register(), blender::nodes::node_fn_match_string_cc::node_register(), blender::nodes::node_fn_matrix_determinant_cc::node_register(), blender::nodes::node_fn_matrix_multiply_cc::node_register(), blender::nodes::node_fn_matrix_svd_cc::node_register(), blender::nodes::node_fn_project_point_cc::node_register(), blender::nodes::node_fn_quaternion_to_rotation_cc::node_register(), blender::nodes::node_fn_random_value_cc::node_register(), blender::nodes::node_fn_replace_string_cc::node_register(), blender::nodes::node_fn_reverse_string_cc::node_register(), blender::nodes::node_fn_rotate_euler_cc::node_register(), blender::nodes::node_fn_rotate_rotation_cc::node_register(), blender::nodes::node_fn_rotate_vector_cc::node_register(), blender::nodes::node_fn_rotation_to_axis_angle_cc::node_register(), blender::nodes::node_fn_rotation_to_euler_cc::node_register(), blender::nodes::node_fn_rotation_to_quaternion_cc::node_register(), blender::nodes::node_fn_separate_color_cc::node_register(), blender::nodes::node_fn_separate_matrix_cc::node_register(), blender::nodes::node_fn_separate_transform_cc::node_register(), blender::nodes::node_fn_set_string_case_cc::node_register(), blender::nodes::node_fn_slice_string_cc::node_register(), blender::nodes::node_fn_split_string_cc::node_register(), blender::nodes::node_fn_string_length_cc::node_register(), blender::nodes::node_fn_string_to_value_cc::node_register(), blender::nodes::node_fn_transform_direction_cc::node_register(), blender::nodes::node_fn_transform_point_cc::node_register(), blender::nodes::node_fn_transpose_matrix_cc::node_register(), blender::nodes::node_fn_trim_string_cc::node_register(), blender::nodes::node_fn_value_to_string_cc::node_register(), blender::nodes::node_geo_accumulate_field_cc::node_register(), blender::nodes::node_geo_attribute_capture_cc::node_register(), blender::nodes::node_geo_attribute_domain_size_cc::node_register(), blender::nodes::node_geo_attribute_statistic_cc::node_register(), blender::nodes::node_geo_bake_cc::node_register(), blender::nodes::node_geo_bevel_cc::node_register(), blender::nodes::node_geo_blur_attribute_cc::node_register(), blender::nodes::node_geo_bone_info_cc::node_register(), blender::nodes::node_geo_boolean_cc::node_register(), blender::nodes::node_geo_bounding_box_cc::node_register(), blender::nodes::node_geo_camera_info_cc::node_register(), blender::nodes::node_geo_closure_cc::input_node::node_register(), blender::nodes::node_geo_closure_cc::output_node::node_register(), blender::nodes::node_geo_closure_to_list_cc::node_register(), blender::nodes::node_geo_cluster_by_distance_cc::node_register(), blender::nodes::node_geo_collection_children_cc::node_register(), blender::nodes::node_geo_collection_info_cc::node_register(), blender::nodes::node_geo_combine_bundle_cc::node_register(), blender::nodes::node_geo_combine_list_cc::node_register(), blender::nodes::node_geo_construct_curves_cc::node_register(), blender::nodes::node_geo_convex_hull_cc::node_register(), blender::nodes::node_geo_cube_grid_topology_cc::node_register(), blender::nodes::node_geo_curve_endpoint_selection_cc::node_register(), blender::nodes::node_geo_curve_fill_cc::node_register(), blender::nodes::node_geo_curve_fillet_cc::node_register(), blender::nodes::node_geo_curve_handle_type_selection_cc::node_register(), blender::nodes::node_geo_curve_length_cc::node_register(), blender::nodes::node_geo_curve_primitive_arc_cc::node_register(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::node_register(), blender::nodes::node_geo_curve_primitive_circle_cc::node_register(), blender::nodes::node_geo_curve_primitive_line_cc::node_register(), blender::nodes::node_geo_curve_primitive_quadratic_bezier_cc::node_register(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_register(), blender::nodes::node_geo_curve_primitive_spiral_cc::node_register(), blender::nodes::node_geo_curve_primitive_star_cc::node_register(), blender::nodes::node_geo_curve_resample_cc::node_register(), blender::nodes::node_geo_curve_reverse_cc::node_register(), blender::nodes::node_geo_curve_sample_cc::node_register(), blender::nodes::node_geo_curve_set_handle_type_cc::node_register(), blender::nodes::node_geo_curve_spline_parameter_cc::node_register(), blender::nodes::node_geo_curve_spline_type_cc::node_register(), blender::nodes::node_geo_curve_subdivide_cc::node_register(), blender::nodes::node_geo_curve_to_mesh_cc::node_register(), blender::nodes::node_geo_curve_to_points_cc::node_register(), blender::nodes::node_geo_curve_topology_curve_of_point_cc::node_register(), blender::nodes::node_geo_curve_topology_points_of_curve_cc::node_register(), blender::nodes::node_geo_curve_trim_cc::node_register(), blender::nodes::node_geo_curves_to_grease_pencil_cc::node_register(), blender::nodes::node_geo_deform_curves_on_surface_cc::node_register(), blender::nodes::node_geo_delete_geometry_cc::node_register(), blender::nodes::node_geo_distribute_points_in_grid_cc::node_register(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_register(), blender::nodes::node_geo_distribute_points_on_faces_cc::node_register(), blender::nodes::node_geo_dual_mesh_cc::node_register(), blender::nodes::node_geo_duplicate_elements_cc::node_register(), blender::nodes::node_geo_edge_paths_to_curves_cc::node_register(), blender::nodes::node_geo_edge_paths_to_selection_cc::node_register(), blender::nodes::node_geo_edge_split_cc::node_register(), blender::nodes::node_geo_edges_to_face_groups_cc::node_register(), blender::nodes::node_geo_enable_output_cc::node_register(), blender::nodes::node_geo_evaluate_at_index_cc::node_register(), blender::nodes::node_geo_evaluate_closure_cc::node_register(), blender::nodes::node_geo_evaluate_on_domain_cc::node_register(), blender::nodes::node_geo_extrude_mesh_cc::node_register(), blender::nodes::node_geo_field_average_cc::node_register(), blender::nodes::node_geo_field_min_and_max_cc::node_register(), blender::nodes::node_geo_field_to_grid_cc::node_register(), blender::nodes::node_geo_field_to_list_cc::node_register(), blender::nodes::node_geo_field_variance_cc::node_register(), blender::nodes::node_geo_filter_list_cc::node_register(), blender::nodes::node_geo_flip_faces_cc::node_register(), blender::nodes::node_geo_foreach_geometry_element_cc::input_node::node_register(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::node_register(), blender::nodes::node_geo_geometry_materials::node_register(), blender::nodes::node_geo_geometry_to_instance_cc::node_register(), blender::nodes::node_geo_get_attribute_names_cc::node_register(), blender::nodes::node_geo_get_bundle_item_cc::node_register(), blender::nodes::node_geo_get_geometry_bundle::node_register(), blender::nodes::node_geo_get_geometry_component_cc::node_register(), blender::nodes::node_geo_get_grid_names_cc::node_register(), blender::nodes::node_geo_get_named_grid_cc::node_register(), blender::nodes::node_geo_get_nested_bundle_paths_cc::node_register(), blender::nodes::node_geo_gizmo_dial_cc::node_register(), blender::nodes::node_geo_gizmo_linear_cc::node_register(), blender::nodes::node_geo_gizmo_transform_cc::node_register(), blender::nodes::node_geo_grease_pencil_color__cc::node_register(), blender::nodes::node_geo_grease_pencil_draw_time__cc::node_register(), blender::nodes::node_geo_grease_pencil_fill_id__cc::node_register(), blender::nodes::node_geo_grease_pencil_opacity__cc::node_register(), blender::nodes::node_geo_grease_pencil_set_depth_mode::node_register(), blender::nodes::node_geo_grease_pencil_stroke_softness__cc::node_register(), blender::nodes::node_geo_grease_pencil_stroke_visibility__cc::node_register(), blender::nodes::node_geo_grease_pencil_to_curves_cc::node_register(), blender::nodes::node_geo_grid_advect_cc::node_register(), blender::nodes::node_geo_grid_clip_cc::node_register(), blender::nodes::node_geo_grid_curl_cc::node_register(), blender::nodes::node_geo_grid_deactivate_voxels::node_register(), blender::nodes::node_geo_grid_dilate_erode_cc::node_register(), blender::nodes::node_geo_grid_divergence_cc::node_register(), blender::nodes::node_geo_grid_gradient_cc::node_register(), blender::nodes::node_geo_grid_info_cc::node_register(), blender::nodes::node_geo_grid_laplacian_cc::node_register(), blender::nodes::node_geo_grid_mean_cc::node_register(), blender::nodes::node_geo_grid_median_cc::node_register(), blender::nodes::node_geo_grid_prune_cc::node_register(), blender::nodes::node_geo_grid_solve_poisson_cc::node_register(), blender::nodes::node_geo_grid_to_mesh_cc::node_register(), blender::nodes::node_geo_grid_to_points_cc::node_register(), blender::nodes::node_geo_grid_topology_boolean::node_register(), blender::nodes::node_geo_grid_voxelize_cc::node_register(), blender::nodes::node_geo_image_cc::node_register(), blender::nodes::node_geo_image_info_cc::node_register(), blender::nodes::node_geo_image_texture_cc::node_register(), blender::nodes::node_geo_import_csv::node_register(), blender::nodes::node_geo_import_obj::node_register(), blender::nodes::node_geo_import_spz::node_register(), blender::nodes::node_geo_import_stl::node_register(), blender::nodes::node_geo_import_text::node_register(), blender::nodes::node_geo_import_vdb::node_register(), blender::nodes::node_geo_index_of_nearest_cc::node_register(), blender::nodes::node_geo_input_active_camera_cc::node_register(), blender::nodes::node_geo_input_cluster_by_connected_cc::node_register(), blender::nodes::node_geo_input_collection_cc::node_register(), blender::nodes::node_geo_input_curve_handles_cc::node_register(), blender::nodes::node_geo_input_curve_tilt_cc::node_register(), blender::nodes::node_geo_input_edge_smooth_cc::node_register(), blender::nodes::node_geo_input_face_smooth_cc::node_register(), blender::nodes::node_geo_input_font_cc::node_register(), blender::nodes::node_geo_input_id_cc::node_register(), blender::nodes::node_geo_input_index_cc::node_register(), blender::nodes::node_geo_input_instance_bounds_cc::node_register(), blender::nodes::node_geo_input_instance_reference_cc::node_register(), blender::nodes::node_geo_input_instance_rotation_cc::node_register(), blender::nodes::node_geo_input_instance_scale_cc::node_register(), blender::nodes::node_geo_input_instance_transform_cc::node_register(), blender::nodes::node_geo_input_material_cc::node_register(), blender::nodes::node_geo_input_material_index_cc::node_register(), blender::nodes::node_geo_input_mesh_edge_angle_cc::node_register(), blender::nodes::node_geo_input_mesh_edge_neighbors_cc::node_register(), blender::nodes::node_geo_input_mesh_edge_vertices_cc::node_register(), blender::nodes::node_geo_input_mesh_face_area_cc::node_register(), blender::nodes::node_geo_input_mesh_face_is_planar_cc::node_register(), blender::nodes::node_geo_input_mesh_face_neighbors_cc::node_register(), blender::nodes::node_geo_input_mesh_island_cc::node_register(), blender::nodes::node_geo_input_mesh_vertex_neighbors_cc::node_register(), blender::nodes::node_geo_input_named_attribute_cc::node_register(), blender::nodes::node_geo_input_named_layer_selection__cc::node_register(), blender::nodes::node_geo_input_normal_cc::node_register(), blender::nodes::node_geo_input_object_cc::node_register(), blender::nodes::node_geo_input_position_cc::node_register(), blender::nodes::node_geo_input_radius_cc::node_register(), blender::nodes::node_geo_input_scene_time_cc::node_register(), blender::nodes::node_geo_input_shortest_edge_paths_cc::node_register(), blender::nodes::node_geo_input_spline_cyclic_cc::node_register(), blender::nodes::node_geo_input_spline_length_cc::node_register(), blender::nodes::node_geo_input_spline_resolution_cc::node_register(), blender::nodes::node_geo_input_tangent_cc::node_register(), blender::nodes::node_geo_input_voxel_index_cc::node_register(), blender::nodes::node_geo_instance_on_points_cc::node_register(), blender::nodes::node_geo_instances_to_points_cc::node_register(), blender::nodes::node_geo_interpolate_curves_cc::node_register(), blender::nodes::node_geo_is_viewport_cc::node_register(), blender::nodes::node_geo_join_bundle::node_register(), blender::nodes::node_geo_join_geometry_cc::node_register(), blender::nodes::node_geo_list_get_item_cc::node_register(), blender::nodes::node_geo_list_length_cc::node_register(), blender::nodes::node_geo_material_replace_cc::node_register(), blender::nodes::node_geo_material_selection_cc::node_register(), blender::nodes::node_geo_merge_by_distance_cc::node_register(), blender::nodes::node_geo_merge_layers_cc::node_register(), blender::nodes::node_geo_merge_points_cc::node_register(), blender::nodes::node_geo_mesh_face_group_boundaries_cc::node_register(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_register(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_register(), blender::nodes::node_geo_mesh_primitive_cube_cc::node_register(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_register(), blender::nodes::node_geo_mesh_primitive_grid_cc::node_register(), blender::nodes::node_geo_mesh_primitive_ico_sphere_cc::node_register(), blender::nodes::node_geo_mesh_primitive_line_cc::node_register(), blender::nodes::node_geo_mesh_primitive_uv_sphere_cc::node_register(), blender::nodes::node_geo_mesh_subdivide_cc::node_register(), blender::nodes::node_geo_mesh_to_curve_cc::node_register(), blender::nodes::node_geo_mesh_to_density_grid_cc::node_register(), blender::nodes::node_geo_mesh_to_points_cc::node_register(), blender::nodes::node_geo_mesh_to_sdf_grid_cc::node_register(), blender::nodes::node_geo_mesh_to_volume_cc::node_register(), blender::nodes::node_geo_mesh_topology_corners_of_edge_cc::node_register(), blender::nodes::node_geo_mesh_topology_corners_of_face_cc::node_register(), blender::nodes::node_geo_mesh_topology_corners_of_vertex_cc::node_register(), blender::nodes::node_geo_mesh_topology_edges_of_corner_cc::node_register(), blender::nodes::node_geo_mesh_topology_edges_of_vertex_cc::node_register(), blender::nodes::node_geo_mesh_topology_face_of_corner_cc::node_register(), blender::nodes::node_geo_mesh_topology_offset_corner_in_face_cc::node_register(), blender::nodes::node_geo_mesh_topology_vertex_of_corner_cc::node_register(), blender::nodes::node_geo_mouse_position_cc::node_register(), blender::nodes::node_geo_nurbs_order__cc::node_register(), blender::nodes::node_geo_nurbs_weight__cc::node_register(), blender::nodes::node_geo_object_info_cc::node_register(), blender::nodes::node_geo_offset_point_in_curve_cc::node_register(), blender::nodes::node_geo_points_cc::node_register(), blender::nodes::node_geo_points_to_curves_cc::node_register(), blender::nodes::node_geo_points_to_sdf_grid_cc::node_register(), blender::nodes::node_geo_points_to_vertices_cc::node_register(), blender::nodes::node_geo_points_to_volume_cc::node_register(), blender::nodes::node_geo_points_type_cc::node_register(), blender::nodes::node_geo_proximity_cc::node_register(), blender::nodes::node_geo_rasterize_points::node_register(), blender::nodes::node_geo_raycast_cc::node_register(), blender::nodes::node_geo_realize_instances_cc::node_register(), blender::nodes::node_geo_remove_attribute_cc::node_register(), blender::nodes::node_geo_rename_attribute_cc::node_register(), blender::nodes::node_geo_repeat_cc::repeat_input_node::node_register(), blender::nodes::node_geo_repeat_cc::repeat_output_node::node_register(), blender::nodes::node_geo_rotate_instances_cc::node_register(), blender::nodes::node_geo_sample_grid_cc::node_register(), blender::nodes::node_geo_sample_grid_index_cc::node_register(), blender::nodes::node_geo_sample_index_cc::node_register(), blender::nodes::node_geo_sample_nearest_cc::node_register(), blender::nodes::node_geo_sample_nearest_surface_cc::node_register(), blender::nodes::node_geo_sample_sound_frequencies_cc::node_register(), blender::nodes::node_geo_sample_uv_surface_cc::node_register(), blender::nodes::node_geo_scale_elements_cc::node_register(), blender::nodes::node_geo_scale_instances_cc::node_register(), blender::nodes::node_geo_sdf_grid_boolean_cc::node_register(), blender::nodes::node_geo_sdf_grid_fillet_cc::node_register(), blender::nodes::node_geo_sdf_grid_laplacian_cc::node_register(), blender::nodes::node_geo_sdf_grid_mean_cc::node_register(), blender::nodes::node_geo_sdf_grid_mean_curvature_cc::node_register(), blender::nodes::node_geo_sdf_grid_median_cc::node_register(), blender::nodes::node_geo_sdf_grid_offset_cc::node_register(), blender::nodes::node_geo_self_object_cc::node_register(), blender::nodes::node_geo_separate_bundle_cc::node_register(), blender::nodes::node_geo_separate_components_cc::node_register(), blender::nodes::node_geo_separate_geometry_cc::node_register(), blender::nodes::node_geo_set_curve_handles_cc::node_register(), blender::nodes::node_geo_set_curve_normal_cc::node_register(), blender::nodes::node_geo_set_curve_radius_cc::node_register(), blender::nodes::node_geo_set_curve_tilt_cc::node_register(), blender::nodes::node_geo_set_geometry_bundle::node_register(), blender::nodes::node_geo_set_geometry_name::node_register(), blender::nodes::node_geo_set_grease_pencil_color_cc::node_register(), blender::nodes::node_geo_set_grease_pencil_softness_cc::node_register(), blender::nodes::node_geo_set_grid_background::node_register(), blender::nodes::node_geo_set_grid_transform::node_register(), blender::nodes::node_geo_set_id_cc::node_register(), blender::nodes::node_geo_set_instance_transform_cc::node_register(), blender::nodes::node_geo_set_material_cc::node_register(), blender::nodes::node_geo_set_material_index_cc::node_register(), blender::nodes::node_geo_set_mesh_normal_cc::node_register(), blender::nodes::node_geo_set_nurbs_order_cc::node_register(), blender::nodes::node_geo_set_nurbs_weight_cc::node_register(), blender::nodes::node_geo_set_point_radius_cc::node_register(), blender::nodes::node_geo_set_position_cc::node_register(), blender::nodes::node_geo_set_shade_smooth_cc::node_register(), blender::nodes::node_geo_set_spline_cyclic_cc::node_register(), blender::nodes::node_geo_set_spline_resolution_cc::node_register(), blender::nodes::node_geo_simulation_cc::sim_input_node::node_register(), blender::nodes::node_geo_simulation_cc::sim_output_node::node_register(), blender::nodes::node_geo_sort_elements_cc::node_register(), blender::nodes::node_geo_sort_list_cc::node_register(), blender::nodes::node_geo_split_to_instances_cc::node_register(), blender::nodes::node_geo_store_bundle_item_cc::node_register(), blender::nodes::node_geo_store_named_attribute_cc::node_register(), blender::nodes::node_geo_store_named_grid_cc::node_register(), blender::nodes::node_geo_string_join_cc::node_register(), blender::nodes::node_geo_string_to_curves_cc::node_register(), blender::nodes::node_geo_subdivision_surface_cc::node_register(), blender::nodes::node_geo_tag_filter_cc::node_register(), blender::nodes::node_geo_tool_3d_cursor_cc::node_register(), blender::nodes::node_geo_tool_active_element_cc::node_register(), blender::nodes::node_geo_tool_face_set_cc::node_register(), blender::nodes::node_geo_tool_selection_cc::node_register(), blender::nodes::node_geo_tool_set_face_set_cc::node_register(), blender::nodes::node_geo_tool_set_selection_cc::node_register(), blender::nodes::node_geo_transfer_attributes_cc::node_register(), blender::nodes::node_geo_triangulate_cc::node_register(), blender::nodes::node_geo_uv_pack_islands_cc::node_register(), blender::nodes::node_geo_uv_tangent_cc::node_register(), blender::nodes::node_geo_uv_unwrap_cc::node_register(), blender::nodes::node_geo_viewer_cc::node_register(), blender::nodes::node_geo_viewport_transform_cc::node_register(), blender::nodes::node_geo_volume_cube_cc::node_register(), blender::nodes::node_geo_volume_to_mesh_cc::node_register(), blender::nodes::node_geo_warning_cc::node_register(), blender::nodes::node_geo_xpbd_solver_cc::node_register(), blender::nodes::nodes_geo_import_ply::node_register(), node_register_type(), blender::nodes::node_geo_index_switch_cc::register_node(), blender::nodes::node_geo_menu_switch_cc::register_node(), blender::nodes::node_geo_switch_cc::register_node(), blender::nodes::node_geo_transform_geometry_cc::register_node(), blender::nodes::node_geo_translate_instances_cc::register_node(), blender::register_node_type_comment(), blender::register_node_type_frame(), blender::nodes::register_node_type_geo_group(), blender::register_node_type_group_input(), blender::register_node_type_group_output(), blender::register_node_type_implicit_conversion(), blender::register_node_type_reroute(), blender::register_node_type_sh_add_shader(), blender::register_node_type_sh_ambient_occlusion(), blender::register_node_type_sh_attribute(), blender::register_node_type_sh_background(), blender::register_node_type_sh_bevel(), blender::register_node_type_sh_blackbody(), blender::register_node_type_sh_brightcontrast(), blender::register_node_type_sh_bsdf_diffuse(), blender::register_node_type_sh_bsdf_glass(), blender::register_node_type_sh_bsdf_glossy(), blender::register_node_type_sh_bsdf_hair(), blender::register_node_type_sh_bsdf_hair_principled(), blender::register_node_type_sh_bsdf_metallic(), blender::register_node_type_sh_bsdf_principled(), blender::register_node_type_sh_bsdf_ray_portal(), blender::register_node_type_sh_bsdf_refraction(), blender::register_node_type_sh_bsdf_sheen(), blender::register_node_type_sh_bsdf_toon(), blender::register_node_type_sh_bsdf_translucent(), blender::register_node_type_sh_bsdf_transparent(), blender::register_node_type_sh_bump(), blender::register_node_type_sh_camera(), blender::register_node_type_sh_clamp(), blender::register_node_type_sh_combcolor(), blender::register_node_type_sh_combxyz(), blender::register_node_type_sh_curve_float(), blender::register_node_type_sh_curve_rgb(), blender::register_node_type_sh_curve_vec(), blender::register_node_type_sh_displacement(), blender::register_node_type_sh_eevee_specular(), blender::register_node_type_sh_emission(), blender::register_node_type_sh_fresnel(), blender::register_node_type_sh_gamma(), blender::register_node_type_sh_geometry(), blender::register_node_type_sh_group(), blender::register_node_type_sh_hair_info(), blender::register_node_type_sh_holdout(), blender::register_node_type_sh_hue_sat(), blender::register_node_type_sh_invert(), blender::register_node_type_sh_layer_weight(), blender::register_node_type_sh_light_accumulation(), blender::register_node_type_sh_light_evaluation(), blender::register_node_type_sh_light_falloff(), blender::register_node_type_sh_light_info(), blender::register_node_type_sh_light_iter_internal_input(), blender::register_node_type_sh_light_iter_internal_output(), blender::register_node_type_sh_light_path(), blender::register_node_type_sh_map_range(), blender::register_node_type_sh_mapping(), blender::register_node_type_sh_math(), blender::register_node_type_sh_mix(), blender::register_node_type_sh_mix_rgb(), blender::register_node_type_sh_mix_shader(), blender::register_node_type_sh_normal(), blender::register_node_type_sh_normal_map(), blender::register_node_type_sh_object_info(), blender::register_node_type_sh_output_aov(), blender::register_node_type_sh_output_light(), blender::register_node_type_sh_output_linestyle(), blender::register_node_type_sh_output_material(), blender::register_node_type_sh_output_world(), blender::register_node_type_sh_particle_info(), blender::register_node_type_sh_point_info(), blender::register_node_type_sh_radial_tiling(), blender::register_node_type_sh_raycast(), blender::register_node_type_sh_rgb(), blender::register_node_type_sh_rgbtobw(), blender::register_node_type_sh_script(), blender::register_node_type_sh_sepcolor(), blender::register_node_type_sh_sepxyz(), blender::register_node_type_sh_shadertorgb(), blender::register_node_type_sh_shadow_raycast(), blender::register_node_type_sh_squeeze(), blender::register_node_type_sh_subsurface_scattering(), blender::register_node_type_sh_tangent(), blender::register_node_type_sh_tex_brick(), blender::register_node_type_sh_tex_checker(), blender::register_node_type_sh_tex_coord(), blender::register_node_type_sh_tex_environment(), blender::register_node_type_sh_tex_gabor(), blender::register_node_type_sh_tex_gradient(), blender::register_node_type_sh_tex_ies(), blender::register_node_type_sh_tex_image(), blender::register_node_type_sh_tex_magic(), blender::register_node_type_sh_tex_noise(), blender::register_node_type_sh_tex_sky(), blender::register_node_type_sh_tex_voronoi(), blender::register_node_type_sh_tex_wave(), blender::register_node_type_sh_tex_white_noise(), blender::register_node_type_sh_uvalongstroke(), blender::register_node_type_sh_uvmap(), blender::register_node_type_sh_valtorgb(), blender::register_node_type_sh_value(), blender::register_node_type_sh_vect_math(), blender::register_node_type_sh_vect_transform(), blender::register_node_type_sh_vector_displacement(), blender::register_node_type_sh_vector_rotate(), blender::register_node_type_sh_vertex_color(), blender::register_node_type_sh_volume_absorption(), blender::register_node_type_sh_volume_coefficients(), blender::register_node_type_sh_volume_info(), blender::register_node_type_sh_volume_principled(), blender::register_node_type_sh_volume_scatter(), blender::register_node_type_sh_wavelength(), blender::register_node_type_sh_wireframe(), blender::register_node_type_tex_at(), blender::register_node_type_tex_bricks(), blender::register_node_type_tex_checker(), blender::register_node_type_tex_combine_color(), blender::register_node_type_tex_coord(), blender::register_node_type_tex_curve_rgb(), blender::register_node_type_tex_curve_time(), blender::register_node_type_tex_distance(), blender::register_node_type_tex_group(), blender::register_node_type_tex_hue_sat(), blender::register_node_type_tex_image(), blender::register_node_type_tex_invert(), blender::register_node_type_tex_math(), blender::register_node_type_tex_mix_rgb(), blender::register_node_type_tex_output(), blender::register_node_type_tex_rgbtobw(), blender::register_node_type_tex_rotate(), blender::register_node_type_tex_scale(), blender::register_node_type_tex_separate_color(), blender::register_node_type_tex_texture(), blender::register_node_type_tex_translate(), blender::register_node_type_tex_valtonor(), blender::register_node_type_tex_valtorgb(), and blender::register_node_type_tex_viewer().
Definition at line 4676 of file node.cc.
References blender::BKE_ntree_update_tag_link_removed(), blender::BLI_remlink(), blender::bNodeSocket::link, blender::bNodeTree::links, node_remove_link(), and blender::bNodeLink::tosock.
Referenced by blender::ambient_occlusion_node_relink(), blender::blo_do_versions_260(), blender::ed::space_node::connect_node_to_surface_output(), blender::ed::space_node::cut_links_exec(), blender::ed::space_node::displace_links(), blender::displacement_node_insert(), blender::do_version_alpha_over_remove_premultiply(), blender::do_version_blur_defocus_nodes_remove_gamma(), blender::do_version_blur_node_options_to_inputs(), blender::do_version_bokeh_blur_pixel_size(), blender::do_version_bright_contrast_remove_premultiplied(), blender::do_version_color_to_float_conversion(), blender::do_version_composite_node_in_scene_tree(), blender::do_version_composite_viewer_remove_alpha(), blender::do_version_displace_node_remove_xy_scale(), blender::do_version_lift_gamma_gain_srgb_to_linear(), blender::do_version_map_value_node(), blender::do_version_mix_color_use_alpha(), blender::do_version_mix_node_mix_mode_compositor(), blender::do_version_mix_node_mix_mode_geometry(), blender::do_version_normal_node_dot_product(), blender::do_version_replace_image_info_node_coordinates(), blender::do_version_scale_node_remove_translate(), blender::do_version_sun_beams(), blender::do_version_texture_gradient_clamp(), blender::do_version_translate_node_remove_relative(), blender::do_versions_material_convert_legacy_blend_mode(), blender::io::usd::dome_light_to_world_material(), blender::ed::space_node::node_insert_on_link_flags(), node_internal_relink(), blender::ed::space_node::node_link_cancel(), blender::ed::space_node::node_link_init(), blender::ed::space_node::node_remove_existing_links_if_needed(), node_remove_link(), node_remove_socket_ex(), node_remove_socket_links(), blender::ed::space_node::node_socket_add_replace(), blender::ed::space_node::node_socket_disconnect(), blender::ed::space_node::node_swap_links(), node_unlink_node(), blender::ntree_shader_copy_branch(), blender::ntree_shader_implicit_closure_cast(), blender::ntree_shader_setup_custom_lighting_zone(), blender::ntree_shader_unlink_script_nodes(), blender::ntree_weight_tree_merge_weight(), blender::ed::space_node::pick_link(), blender::ed::space_node::viewer_linking::remove_links_to_unavailable_viewer_sockets(), blender::ed::space_node::remove_unavailable_links(), blender::shader_node_disconnect_input(), blender::ed::space_node::snode_autoconnect_input(), blender::update_mapping_node_inputs_and_properties(), blender::update_math_node_single_operand_operators(), blender::update_noise_and_wave_distortion(), blender::update_vector_math_node_add_and_subtract_operators(), blender::update_vector_math_node_average_operator(), blender::update_vector_math_node_cross_product_operator(), blender::update_vector_math_node_dot_product_operator(), blender::update_vector_math_node_normalize_operator(), blender::update_voronoi_node_coloring(), blender::update_voronoi_node_crackle(), blender::update_voronoi_node_square_distance(), blender::version_principled_bsdf_specular_tint(), blender::version_principled_bsdf_subsurface(), blender::version_replace_texcoord_normal_socket(), blender::version_update_node_input(), blender::versioning_eevee_material_blend_mode_settings(), blender::versioning_eevee_material_shadow_none(), blender::versioning_remove_microfacet_sharp_distribution(), blender::versioning_replace_musgrave_texture_node(), and blender::versioning_update_noise_texture_node().
| void blender::bke::node_remove_node | ( | Main * | bmain, |
| bNodeTree & | ntree, | ||
| bNode & | node, | ||
| bool | do_id_user, | ||
| bool | remove_animation = true ) |
Delete node, associated animation data and ID user count.
Definition at line 5155 of file node.cc.
References blender::BKE_animdata_fix_paths_remove(), blender::BLI_assert(), blender::BLI_str_escape(), blender::bNodeSocket::default_value, blender::DEG_relations_tag_update(), blender::bNodeTree::id, blender::ID_TAG_LOCALIZED, blender::id_us_min(), MAX_IDPROP_NAME, node, node_free_node(), node_rebuild_id_vector(), node_remove_node(), node_unlink_attached(), node_unlink_node(), blender::RNA_pointer_create_discrete(), SNPRINTF_UTF8, socket_value_id_user_decrement(), blender::ID::tag, and blender::bNodeSocket::type.
Referenced by blender::ed::space_node::node_delete_exec(), blender::ed::space_node::node_delete_reconnect_exec(), blender::ed::space_node::node_group_make_from_node_declaration(), blender::ed::space_node::node_group_make_insert_selected(), blender::ed::space_node::node_group_separate_selected(), blender::ed::space_node::node_group_ungroup(), blender::ed::space_node::node_remove_linked(), node_remove_node(), blender::ed::transform::special_aftertrans_update__node(), and blender::version_geometry_nodes_replace_transfer_attribute_node().
| void blender::bke::node_remove_socket | ( | bNodeTree & | ntree, |
| bNode & | node, | ||
| bNodeSocket & | sock ) |
Definition at line 4015 of file node.cc.
References node, node_remove_socket(), and node_remove_socket_ex().
Referenced by blender::do_version_replace_float_size_with_vector(), blender::do_versions_nodetree_multi_file_output_format_2_62_1(), node_remove_socket(), blender::remove_triangulate_node_min_size_input(), blender::verify_socket_template_list(), blender::version_geometry_nodes_set_position_node_offset(), blender::version_node_join_geometry_for_multi_input_socket(), blender::version_principled_bsdf_subsurface(), and blender::version_principled_transmission_roughness().
| void blender::bke::node_remove_socket_ex | ( | bNodeTree & | ntree, |
| bNode & | node, | ||
| bNodeSocket & | sock, | ||
| bool | do_id_user ) |
Definition at line 4020 of file node.cc.
References blender::BKE_ntree_update_tag_node_internal_link(), blender::BKE_ntree_update_tag_socket_removed(), blender::BLI_remlink(), blender::bNodeInternalLink::in, blender::bNodeTree::links, node, node_remove_link(), node_remove_socket_ex(), node_socket_free(), and blender::bNodeInternalLink::out.
Referenced by node_remove_socket(), node_remove_socket_ex(), and blender::nodes::refresh_node_sockets_and_panels().
| void blender::bke::node_remove_socket_links | ( | bNodeTree & | ntree, |
| bNodeSocket & | sock ) |
Definition at line 4702 of file node.cc.
References blender::bNodeTree::links, node_remove_link(), and node_remove_socket_links().
Referenced by Freestyle::BlenderStrokeRenderer::GetStrokeShader(), node_remove_socket_links(), and blender::ed::space_node::snode_autoconnect_input().
Two active flags, ID nodes have special flag for buttons display.
Definition at line 5484 of file node.cc.
References node, blender::NODE_ACTIVE, blender::NODE_ACTIVE_PAINT_CANVAS, blender::NODE_ACTIVE_TEXTURE, node_set_active(), node_supports_active_flag(), and SET_FLAG_FROM_TEST.
Referenced by blender::ed::space_node::add_node_group_asset(), blender::ed::space_node::add_reroute_exec(), blender::BKE_linestyle_default_shader(), blender::blender::BLI_listbase_find(), blender::io::obj::create_mtl_node_tree(), blender::io::usd::dome_light_to_world_material(), blender::ED_node_set_active(), blender::ED_node_texture_default(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), blender::io::fbx::import_material(), blender::io::usd::USDMaterialReader::import_usd_preview_nodes(), blender::ed::space_node::initialize_compositor_sequencer_node_group(), blender::ed::space_node::link_drag_search_exec_fn(), blender::eevee::LookdevWorld::LookdevWorld(), blender::material_default_gsplat_init(), blender::material_default_holdout_init(), blender::material_default_surface_init(), blender::material_default_volume_init(), blender::eevee::MaterialModule::MaterialModule(), blender::ed::space_node::navigate_menu_create(), blender::ed::space_node::node_add_collection_exec(), blender::ed::space_node::node_add_color_exec(), blender::ed::space_node::node_add_group_exec(), blender::ed::space_node::node_add_import_node_exec(), blender::ed::space_node::node_add_object_exec(), blender::ed::space_node::node_group_insert_exec(), blender::ed::space_node::node_group_make_exec(), blender::ed::space_node::node_join_in_frame_exec(), node_set_active(), blender::ed::space_node::node_socket_add_replace(), blender::nodes::node_tree_composit_default_init(), blender::nodes::node_tree_shader_default(), blender::proj_paint_add_slot(), and blender::ed::space_node::test_inline_shader_nodes_exec().
| bool blender::bke::node_set_selected | ( | bNode & | node, |
| bool | select ) |
Selects or deselects the node. If the node is deselected, all its sockets are deselected too.
Definition at line 5455 of file node.cc.
References blender::bNodeSocket::flag, node, blender::NODE_SELECT, node_set_selected(), SET_FLAG_FROM_TEST, and blender::SOCK_SELECT.
Referenced by add_auto_smooth_node_tree(), blender::ed::space_node::add_node(), blender::add_realize_node_tree(), blender::ed::space_node::add_static_node(), blender::ed::space_node::do_lasso_select_node(), blender::ed::space_node::link_drag_operation_test_exec(), blender::ed::space_node::link_drag_search_exec_fn(), blender::ed::space_node::node_add_image_exec(), blender::ed::space_node::node_box_select_exec(), blender::ed::space_node::node_circleselect_exec(), blender::ed::space_node::node_deselect_all(), blender::ed::space_node::node_duplicate_exec(), blender::ed::space_node::node_group_ungroup(), blender::ed::space_node::node_mouse_select(), blender::ed::space_node::node_select_all_exec(), blender::ed::space_node::node_select_grouped_color(), blender::ed::space_node::node_select_grouped_exec(), blender::ed::space_node::node_select_grouped_name(), blender::ed::space_node::node_select_grouped_type(), blender::ed::space_node::node_select_linked_from_exec(), blender::ed::space_node::node_select_linked_to_exec(), blender::ed::space_node::node_select_single(), node_set_selected(), blender::bke::greasepencil::convert::offset_radius_node_tree_add(), blender::template_texture_select(), and blender::ed::space_node::test_inline_shader_nodes_exec().
| void blender::bke::node_set_socket_availability | ( | bNodeTree & | ntree, |
| bNodeSocket & | sock, | ||
| bool | is_available ) |
Definition at line 5499 of file node.cc.
References blender::BKE_ntree_update_tag_socket_availability(), blender::bNodeSocket::flag, node_set_socket_availability(), and blender::SOCK_UNAVAIL.
Referenced by node_is_dangling_reroute(), blender::node_math_update(), node_set_socket_availability(), blender::nodes::node_shader_volume_coefficients_cc::node_shader_update_coefficients(), blender::nodes::node_shader_bsdf_hair_principled_cc::node_shader_update_hair_principled(), blender::nodes::node_shader_light_evaluation_cc::node_shader_update_light_evaluation(), blender::nodes::node_shader_map_range_cc::node_shader_update_map_range(), blender::nodes::node_shader_mapping_cc::node_shader_update_mapping(), blender::nodes::node_shader_bsdf_metallic_cc::node_shader_update_metallic(), blender::nodes::node_shader_bsdf_principled_cc::node_shader_update_principled(), blender::nodes::node_shader_volume_scatter_cc::node_shader_update_scatter(), blender::nodes::node_shader_tex_sky_cc::node_shader_update_sky(), blender::nodes::node_shader_subsurface_scattering_cc::node_shader_update_subsurface_scattering(), blender::nodes::node_shader_vector_math_cc::node_shader_update_vector_math(), blender::nodes::node_shader_vector_rotate_cc::node_shader_update_vector_rotate(), blender::nodes::node_composite_relative_to_pixel_cc::node_update(), blender::nodes::node_fn_integer_math_cc::node_update(), blender::nodes::node_geo_mesh_primitive_line_cc::node_update(), and blender::nodes::node_sh_mix_cc::sh_node_mix_update().
|
static |
Definition at line 2659 of file node.cc.
References blender::BKE_ntree_update_tag_node_type(), C, node, blender::NODE_INIT, node_init(), node_set_typeinfo(), NodeTypeUndefined, blender::bke::bNodeType::storagename, and blender::bke::bNodeType::type_legacy.
Referenced by node_add_node(), node_set_typeinfo(), node_tree_set_type(), and update_typeinfo().
| void blender::bke::node_set_undefined_type | ( | bNode & | node | ) |
Set the node type idname and type_legacy to "undefined" to prevent future access to broken nodes. This should be used for nodes with missing data that cannot be fixed and should be permanently disabled.
Definition at line 5667 of file node.cc.
References node, NODE_CUSTOM, node_set_undefined_type(), NodeTypeUndefined, and SNPRINTF_UTF8.
Referenced by node_set_undefined_type(), node_tree_update_all_new(), and blender::version_node_ensure_storage_or_invalidate().
|
static |
Definition at line 4307 of file node.cc.
References blender::bNodeSocket::default_attribute_name, blender::bNodeSocket::default_value, blender::bke::bNodeSocketRuntime::identifier_ustr, blender::IDP_CopyProperty_ex(), blender::LIB_ID_CREATE_NO_USER_REFCOUNT, node_socket_copy(), blender::bNodeSocket::prop, blender::bNodeSocket::runtime, socket_value_copy(), blender::bNodeSocket::stack_index, blender::bNodeSocket::type, and blender::UString::UString().
Referenced by node_copy_with_mapping(), node_socket_copy(), and blender::bke::forward_compat::pixel_subtype_forward_compat().
| void blender::bke::node_socket_declarations_update | ( | bNode * | node | ) |
Update socket->declaration for all sockets in the node. This assumes that the node declaration and sockets are up to date already.
Definition at line 5546 of file node.cc.
References blender::BLI_assert(), node, node_socket_declarations_update(), reset_socket_declarations(), and update_socket_declarations().
Referenced by node_declaration_ensure(), node_is_dangling_reroute(), node_socket_declarations_update(), and blender::nodes::refresh_node().
|
static |
Definition at line 4000 of file node.cc.
References blender::bNodeSocket::default_attribute_name, blender::bNodeSocket::default_value, blender::IDP_FreeProperty_ex(), node_socket_free(), node_socket_free_default_value(), blender::bNodeSocket::prop, and blender::bNodeSocket::runtime.
Referenced by node_free_node(), node_remove_socket_ex(), node_socket_free(), and blender::bke::forward_compat::pixel_subtype_forward_compat().
|
static |
Definition at line 3370 of file node.cc.
References blender::bNodeSocket::default_value, node_socket_free_default_value(), socket_value_free(), and blender::bNodeSocket::type.
Referenced by node_modify_socket_type(), node_socket_free(), and node_socket_free_default_value().
| bool blender::bke::node_socket_is_registered | ( | const bNodeSocket & | sock | ) |
Definition at line 3013 of file node.cc.
References node_socket_is_registered(), NodeSocketTypeUndefined, and blender::bNodeSocket::typeinfo.
Referenced by node_socket_is_registered().
| StringRefNull blender::bke::node_socket_label | ( | const bNodeSocket & | sock | ) |
Get node socket label if it is set.
Definition at line 5758 of file node.cc.
References blender::bke::bNodeSocketRuntime::declaration, blender::bNodeSocket::label, blender::nodes::SocketDeclaration::label_fn, blender::bNodeSocket::name, node_socket_label(), and blender::bNodeSocket::runtime.
Referenced by blender::bke::node_interface::add_interface_socket_from_node(), blender::ui::nodes::draw_node_input(), blender::ed::space_node::viewer_linking::get_viewer_source_name(), node_is_dangling_reroute(), blender::ed::space_node::node_socket_get_label(), node_socket_label(), and blender::nodes::socket_items::try_add_item_via_extend_socket().
| int blender::bke::node_socket_link_limit | ( | const bNodeSocket & | sock | ) |
Definition at line 5513 of file node.cc.
References blender::bNodeSocket::in_out, blender::bke::bNodeSocketType::input_link_limit, blender::bNodeSocket::limit, node_socket_link_limit(), blender::bke::bNodeSocketType::output_link_limit, blender::SOCK_IN, blender::bNodeSocket::typeinfo, and blender::bke::bNodeSocketType::use_link_limits_of_type.
Referenced by blender::ed::space_node::node_find_linkable_socket(), blender::ed::space_node::node_link_init(), blender::ed::space_node::node_remove_existing_links_if_needed(), blender::ed::space_node::node_socket_add_replace(), and node_socket_link_limit().
| void blender::bke::node_socket_move_default_value | ( | Main & | bmain, |
| bNodeTree & | tree, | ||
| bNodeSocket & | src, | ||
| bNodeSocket & | dst ) |
Move socket default from src (input socket) to locations specified by dst (output socket). Result value moved in specific location. (potentially multiple group nodes socket values, if dst is a group input node).
Definition at line 4534 of file node.cc.
References blender::bke::bNodeSocketType::base_cpp_type, blender::BLI_strdup_null(), BUFFER_FOR_CPP_TYPE_VALUE, blender::bNodeSocket::default_value, blender::CPPType::destruct(), get_implicit_type_conversions(), get_socket_value(), node_socket_move_default_value(), blender::SOCK_COLLECTION, blender::SOCK_FONT, blender::SOCK_IMAGE, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_OBJECT, blender::SOCK_SCENE, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::bNode::storage, store_socket_value(), blender::bNodeSocket::type, and blender::bNodeSocket::typeinfo.
Referenced by blender::ed::space_node::add_group_input_node_fn(), blender::nodes::LinkSearchOpParams::connect_socket(), and node_socket_move_default_value().
|
static |
Definition at line 2689 of file node.cc.
References blender::BKE_ntree_update_tag_socket_type(), blender::bNodeSocket::default_value, node_socket_set_typeinfo(), NodeSocketTypeUndefined, socket_value_new(), blender::bke::bNodeSocketType::subtype, blender::bke::bNodeSocketType::type, blender::bNodeSocket::type, and blender::bNodeSocket::typeinfo.
Referenced by make_socket(), node_modify_socket_type(), node_socket_set_typeinfo(), node_tree_set_type(), and update_typeinfo().
| std::optional< StringRefNull > blender::bke::node_socket_short_label | ( | const bNodeSocket & | sock | ) |
Get node socket short label if it is set. It is used when grouping sockets under panels, to avoid redundancy in the label.
Definition at line 5747 of file node.cc.
References blender::bke::bNodeSocketRuntime::declaration, blender::UString::is_empty(), node_socket_short_label(), blender::UString::ref(), blender::bNodeSocket::runtime, and blender::nodes::SocketDeclaration::short_label.
Referenced by node_is_dangling_reroute(), blender::ed::space_node::node_socket_get_label(), and node_socket_short_label().
| StringRefNull blender::bke::node_socket_sub_type_label | ( | int | subtype | ) |
Definition at line 3027 of file node.cc.
References node_socket_sub_type_label(), blender::RNA_enum_name(), and blender::rna_enum_property_subtype_items.
Referenced by blender::make_standard_socket_type(), and node_socket_sub_type_label().
| const char * blender::bke::node_socket_translation_context | ( | const bNodeSocket & | sock | ) |
Get node socket translation context if it is set.
Definition at line 5770 of file node.cc.
References blender::bke::bNodeSocketRuntime::declaration, node_socket_translation_context(), blender::bNodeSocket::runtime, and blender::nodes::SocketDeclaration::translation_context.
Referenced by blender::ui::nodes::draw_node_input(), node_is_dangling_reroute(), blender::ed::space_node::node_socket_get_label(), and node_socket_translation_context().
| bNodeSocketType * blender::bke::node_socket_type_find | ( | StringRef | idname | ) |
Definition at line 2966 of file node.cc.
References get_socket_type_map(), node_socket_type_find(), and blender::UString::UString().
Referenced by blender::nodes::build_interface_socket_declaration(), blender::nodes::create_outputs_srna(), blender::ed::space_node::create_proxy_converter_node(), blender::ed::space_node::create_proxy_input_node(), create_socket_meta_data_properties(), blender::bke::bake::deserialize_bundle_items(), blender::do_version_vector_sockets_dimensions(), blender::ED_node_type_draw_color(), blender::nodes::ClosureSignature::from_closure_to_list_node(), blender::ed::space_node::gather_socket_link_operations(), blender::is_same_socket_base_type(), blender::bke::node_interface::socket_types::is_supported_socket_type(), make_socket(), blender::bke::node_interface::socket_types::make_socket_data(), blender::nodes::decl::modify_subtype_except_for_storage(), blender::nodes::decl::modify_subtype_except_for_storage(), blender::nodes::node_geo_closure_to_list_cc::node_geo_exec(), blender::node_implicit_conversion_label(), blender::node_implicit_conversion_poll_instance(), node_modify_socket_type(), blender::node_reroute_poll_instance(), node_socket_type_find(), node_socket_type_find_static(), node_tree_set_type(), blender::ed::space_node::socket_types_need_conversion(), and blender::version_node_add_socket().
| bNodeSocketType * blender::bke::node_socket_type_find_static | ( | int | type, |
| int | subtype = 0 ) |
Definition at line 2975 of file node.cc.
References node_socket_type_find(), node_socket_type_find_static(), and node_static_socket_type().
Referenced by blender::nodes::BundleSignature::add(), blender::nodes::create_nested_bundle_item(), blender::bke::node_interface::create_proxy_converter_node(), blender::nodes::node_geo_combine_list_cc::data_type_items_callback(), blender::nodes::node_geo_enable_output_cc::data_type_items_callback(), blender::nodes::node_geo_index_switch_cc::data_type_items_callback(), blender::nodes::node_geo_menu_switch_cc::data_type_items_callback(), blender::nodes::ClosureSignature::from_closure_output_node(), blender::nodes::ClosureSignature::from_closure_to_list_node(), blender::nodes::BundleSignature::from_combine_bundle_node(), blender::nodes::ClosureSignature::from_evaluate_closure_node(), blender::nodes::BundleSignature::from_separate_bundle_node(), blender::nodes::LazyFunctionForEvaluateClosureNode::generate_closure_compatibility_warnings(), blender::nodes::node_geo_menu_switch_cc::LazyFunctionForMenuSwitchNode::LazyFunctionForMenuSwitchNode(), blender::compositor::BundleItem::new_bundle_item_value(), blender::nodes::node_geo_combine_list_cc::node_gather_link_searches(), blender::nodes::node_geo_index_switch_cc::node_gather_link_searches(), blender::nodes::node_geo_closure_to_list_cc::node_geo_exec(), blender::nodes::node_geo_combine_bundle_cc::node_geo_exec(), blender::nodes::node_geo_get_bundle_item_cc::node_geo_exec(), blender::nodes::node_geo_separate_bundle_cc::node_geo_exec(), blender::nodes::node_geo_store_bundle_item_cc::node_geo_exec(), blender::nodes::node_geo_filter_list_cc::node_rna(), blender::nodes::node_geo_list_get_item_cc::node_rna(), blender::nodes::node_geo_list_length_cc::node_rna(), blender::nodes::node_geo_sort_list_cc::node_rna(), node_socket_type_find_static(), node_tree_type_supports_socket_type_static(), slow_socket_type_to_geo_nodes_base_cpp_type(), blender::nodes::socket_type_info_by_static_type(), blender::bke::bake::tests::TEST_F(), blender::bke::bake::BakeValues::to_runtime_values(), and blender::nodes::to_stored_type().
| StringRefNull blender::bke::node_socket_type_label | ( | const bNodeSocketType & | stype | ) |
Definition at line 3018 of file node.cc.
References blender::bke::bNodeSocketType::ext_socket, blender::bke::bNodeSocketType::label, node_socket_type_label(), blender::RNA_struct_ui_name(), and blender::ExtensionRNA::srna.
Referenced by node_socket_type_label().
| Span< bNodeSocketType * > blender::bke::node_socket_types_get | ( | ) |
Definition at line 2961 of file node.cc.
References get_socket_type_map(), and node_socket_types_get().
Referenced by node_socket_types_get().
| std::optional< StringRefNull > blender::bke::node_static_socket_interface_type_new | ( | int | type, |
| int | subtype, | ||
| std::optional< int > | dimensions = std::nullopt ) |
Definition at line 3709 of file node.cc.
References BLI_assert_unreachable, node_static_socket_interface_type_new(), blender::PROP_ACCELERATION, blender::PROP_ANGLE, blender::PROP_COLOR_TEMPERATURE, blender::PROP_DIRECTION, blender::PROP_DISTANCE, blender::PROP_EULER, blender::PROP_FACTOR, blender::PROP_FILEPATH, blender::PROP_FREQUENCY, blender::PROP_MASS, blender::PROP_NONE, blender::PROP_PERCENTAGE, blender::PROP_PIXEL, blender::PROP_TIME, blender::PROP_TIME_ABSOLUTE, blender::PROP_TRANSLATION, blender::PROP_UNSIGNED, blender::PROP_VELOCITY, blender::PROP_WAVELENGTH, blender::PROP_XYZ, blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, and blender::SOCK_VECTOR.
Referenced by blender::make_standard_socket_type(), and node_static_socket_interface_type_new().
| std::optional< StringRefNull > blender::bke::node_static_socket_label | ( | int | type, |
| int | subtype ) |
Definition at line 3923 of file node.cc.
References node_static_socket_label(), blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, and blender::SOCK_VECTOR.
Referenced by blender::make_standard_socket_type(), node_static_socket_label(), and blender::nodes::socket_items::set_item_name_and_make_unique().
| std::optional< StringRefNull > blender::bke::node_static_socket_type | ( | int | type, |
| int | subtype, | ||
| std::optional< int > | dimensions = std::nullopt ) |
Definition at line 3492 of file node.cc.
References blender::BLI_assert(), BLI_assert_unreachable, ELEM, node_static_socket_type(), blender::PROP_ACCELERATION, blender::PROP_ANGLE, blender::PROP_COLOR_TEMPERATURE, blender::PROP_DIRECTION, blender::PROP_DISTANCE, blender::PROP_EULER, blender::PROP_FACTOR, blender::PROP_FILEPATH, blender::PROP_FREQUENCY, blender::PROP_MASS, blender::PROP_NONE, blender::PROP_PERCENTAGE, blender::PROP_PIXEL, blender::PROP_TIME, blender::PROP_TIME_ABSOLUTE, blender::PROP_TRANSLATION, blender::PROP_UNSIGNED, blender::PROP_VELOCITY, blender::PROP_WAVELENGTH, blender::PROP_XYZ, blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, and blender::SOCK_VECTOR.
Referenced by blender::nodes::decl::IntVector::build(), blender::nodes::decl::Vector::build(), blender::do_version_replace_float_size_with_vector(), blender::bke::node_interface::socket_types::is_supported_socket_type(), blender::make_standard_socket_type(), blender::nodes::decl::modify_subtype_except_for_storage(), blender::nodes::decl::modify_subtype_except_for_storage(), node_add_static_socket(), node_modify_socket_type_static(), blender::node_socket_get_static_idname(), node_socket_type_find_static(), node_static_socket_type(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), blender::bke::node_interface::socket_types::socket_type_from_data_impl(), and blender::bke::node_interface::socket_types::socket_type_from_data_impl().
| bool blender::bke::node_supports_active_flag | ( | const bNode & | node, |
| int | sub_activity ) |
Does the given node supports the sub active flag.
| sub_activity | The active flag to check. NODE_ACTIVE_TEXTURE / NODE_ACTIVE_PAINT_CANVAS. |
Definition at line 425 of file node_shader_util.cc.
References blender::BLI_assert(), ELEM, node, blender::NODE_ACTIVE_PAINT_CANVAS, blender::NODE_ACTIVE_TEXTURE, NODE_CLASS_TEXTURE, SH_NODE_ATTRIBUTE, and SH_NODE_TEX_IMAGE.
Referenced by blender::node_get_active(), node_is_dangling_reroute(), and node_set_active().
| void blender::bke::node_system_exit | ( | ) |
Definition at line 6183 of file node.cc.
References get_node_tree_type_map(), get_node_type_alias_map(), get_node_type_map(), get_socket_type_map(), node_free_socket_type(), node_free_type(), node_system_exit(), and ntree_free_type().
Referenced by blender::BKE_blender_free(), gtest_teardown(), and node_system_exit().
| void blender::bke::node_system_init | ( | ) |
Definition at line 6178 of file node.cc.
References node_system_init(), and blender::register_nodes().
Referenced by gtest_setup(), main(), node_system_init(), and blender::BlendfileLoadingBaseTest::SetUpTestCase().
| void blender::bke::node_tag_update_id | ( | bNode & | node | ) |
Definition at line 5593 of file node.cc.
References node, node_tag_update_id(), and blender::NODE_UPDATE_ID.
Referenced by blender::ed::space_node::node_add_image_exec(), and node_tag_update_id().
| bNodeTree * blender::bke::node_tree_add_in_lib | ( | Main * | bmain, |
| Library * | owner_library, | ||
| StringRefNull | name, | ||
| StringRefNull | idname ) |
Add a new (non-embedded) node tree, like node_tree_add_tree, but allows to create it inside a given library. Used mainly by readfile code when versioning linked data.
Definition at line 4997 of file node.cc.
References node_tree_add_in_lib(), and node_tree_add_tree_do().
Referenced by add_auto_smooth_node_tree(), node_tree_add_in_lib(), and blender::bke::greasepencil::convert::offset_radius_node_tree_add().
Definition at line 4992 of file node.cc.
References node_tree_add_tree(), and node_tree_add_tree_do().
Referenced by add_nodes(), blender::add_realize_node_tree(), blender::create_from_shader_node_tree(), blender::default_paint_slot_color_get(), blender::ed::curves::ensure_surface_deformation_node_exists(), blender::nodes::materialx::export_to_materialx(), blender::GPU_material_from_nodetree(), blender::nodes::tests::infer_switch_output_structure_with_field_condition(), blender::new_compositor_effect_node_group_exec(), blender::ed::space_node::new_compositor_sequencer_node_group_exec(), blender::ed::space_node::new_node_tree_impl(), blender::ed::space_node::node_group_make_from_node_declaration(), blender::ed::space_node::node_group_make_from_nodes(), blender::ed::space_node::node_group_make_test_selected(), node_tree_add_tree(), blender::io::usd::USDPointInstancerReader::read_object_data(), blender::nodes::tests::TEST_F(), and blender::ed::space_node::test_inline_shader_nodes_exec().
|
static |
Definition at line 4953 of file node.cc.
References blender::BKE_libblock_alloc_in_lib(), blender::BKE_libblock_init_empty(), blender::BLI_assert(), BLI_assert_msg, blender::blender::StringRefBase::copy_utf8_truncated(), blender::ID::flag, blender::bNodeTree::id, blender::ID_FLAG_EMBEDDED_DATA, blender::ID_NT, blender::ID_TAG_EXTERN, blender::ID_TAG_INDIRECT, blender::bNodeTree::idname, blender::ID::lib, blender::LIB_ID_CREATE_NO_MAIN, blender::LIB_ID_CREATE_NO_USER_REFCOUNT, node_tree_add_tree_do(), node_tree_ptr_from_id(), node_tree_type_find(), ntree_set_typeinfo(), blender::bNodeTree::owner_id, and blender::ID::tag.
Referenced by node_tree_add_in_lib(), node_tree_add_tree(), node_tree_add_tree_do(), and node_tree_add_tree_embedded().
| bNodeTree * blender::bke::node_tree_add_tree_embedded | ( | Main * | bmain, |
| ID * | owner_id, | ||
| StringRefNull | name, | ||
| StringRefNull | idname ) |
Definition at line 5005 of file node.cc.
References node_tree_add_tree_do(), and node_tree_add_tree_embedded().
Referenced by blender::BKE_linestyle_default_shader(), blender::do_version_light_remove_use_nodes(), blender::do_version_material_remove_use_nodes(), blender::do_version_world_remove_use_nodes(), blender::ED_node_texture_default(), blender::material_init_data(), node_tree_add_tree_embedded(), blender::nodes::node_tree_shader_default(), blender::nodes::tests::TEST_F(), blender::nodes::tests::TEST_F(), and blender::world_init_data().
|
static |
Definition at line 2507 of file node.cc.
References blender::BLI_strdup_null(), blender::AssetMetaData::description, blender::bNodeTree::description, and node_tree_asset_on_clear_asset().
Referenced by node_tree_asset_on_clear_asset().
|
static |
Definition at line 2495 of file node.cc.
References blender::BLI_strdup_null(), blender::AssetMetaData::description, blender::bNodeTree::description, node_tree_asset_on_mark_asset(), and node_update_asset_metadata().
Referenced by node_tree_asset_on_mark_asset().
|
static |
Definition at line 2489 of file node.cc.
References node_tree_asset_pre_save(), and node_update_asset_metadata().
Referenced by node_tree_asset_pre_save().
| void blender::bke::node_tree_blend_read_data | ( | BlendDataReader * | reader, |
| ID * | owner_id, | ||
| bNodeTree * | ntree ) |
Definition at line 2087 of file node.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BKE_ntree_update_tag_missing_runtime_data(), blender::BKE_previewimg_blend_read(), blender::BLI_assert(), blender::BLO_read_array_and_validate_size(), blender::BLO_read_fileversion_get(), blender::BLO_read_string(), BLO_read_struct, BLO_read_struct_list, CLOG_WARN, blender::bNodeTree::compositor_node_asset_traits, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), blender::bNodeTree::description, direct_link_node_socket(), blender::ID::flag, blender::bNodeLink::fromnode, blender::bNodeLink::fromsock, blender::bNodeTree::geometry_node_asset_traits, blender::bNodeTree::id, blender::ID_FLAG_EMBEDDED_DATA, IDP_BlendDataRead, blender::bNodeTree::inputs_legacy, blender::ID::lib, blender::bNodeTree::links, blender::LOG, blender::ID::name, blender::bNodeTree::nested_node_refs, blender::bNodeTree::nested_node_refs_num, node, node_blend_read_data_storage(), blender::GeometryNodeAssetTraits::node_tool_idname, node_tree_blend_read_data(), node_unique_id(), node_update_idname_from_experimental(), blender::bNodeTree::nodes, blender::bke::bNodeTreeRuntime::nodes_by_id, blender::bNodeTree::outputs_legacy, blender::bNodeTree::owner_id, blender::bNodeTree::preview, remove_unsupported_sockets(), blender::bNodeTree::runtime, blender::bNodeLink::tonode, blender::bNodeLink::tosock, blender::bNodeTree::tree_interface, and blender::bNodeTree::typeinfo.
Referenced by blender::direct_link_id_embedded_id(), node_tree_blend_read_data(), and ntree_blend_read_data().
| void blender::bke::node_tree_blend_write | ( | BlendWriter * | writer, |
| bNodeTree * | ntree ) |
This is only direct data, tree itself should have been written.
Definition at line 1361 of file node.cc.
References blender::BKE_id_blend_write(), blender::BKE_previewimg_blend_write(), CMP_NODE_IMAGE, CMP_NODE_R_LAYERS, blender::bNodeTree::compositor_node_asset_traits, blender::data, blender::bNodeTree::description, ELEM, blender::bke::forward_compat::free_legacy_socket_storage(), blender::bNodeTree::geometry_node_asset_traits, blender::bNodeTree::id, blender::IDP_BlendWrite(), blender::bke::forward_compat::initialize_legacy_socket_storage(), blender::BlendWriter::is_undo(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), blender::bNodeTree::links, blender::bNodeTree::nested_node_refs, blender::bNodeTree::nested_node_refs_num, node, node_blend_write_storage(), blender::GeometryNodeAssetTraits::node_tool_idname, node_tree_blend_write(), blender::NTREE_SHADER, blender::bNode::num_panel_states, blender::bNode::panel_states_array, blender::bNodeTree::preview, blender::bNode::runtime, SH_NODE_BSDF_HAIR_PRINCIPLED, blender::BlendStructWriter< T >::shallow_data, blender::bNodeSocket::storage, blender::bNodeTree::tree_interface, blender::bNodeTree::type, blender::bNode::typeinfo, blender::bke::forward_compat::update_node_location_legacy(), blender::bke::forward_compat::write_legacy_properties(), write_node_socket(), blender::BlendWriter::write_string(), blender::BlendWriter::write_struct(), blender::BlendWriter::write_struct_array(), and blender::BlendWriter::write_struct_cast().
Referenced by blender::light_blend_write(), blender::linestyle_blend_write(), blender::material_blend_write(), node_tree_blend_write(), ntree_blend_write(), blender::scene_blend_write_compositor_forward_compat(), blender::texture_blend_write(), and blender::world_blend_write().
| bool blender::bke::node_tree_contains_tree | ( | const bNodeTree & | tree_to_search_in, |
| const bNodeTree & | tree_to_search_for ) |
Check recursively if a node tree contains another.
Definition at line 5423 of file node.cc.
References node_tree_contains_tree(), and ntree_contains_tree_exec().
Referenced by blender::ED_node_set_active(), blender::ed::space_node::node_group_insert_exec(), and node_tree_contains_tree().
Definition at line 5021 of file node.cc.
References node_tree_copy_tree(), and node_tree_copy_tree_ex().
Referenced by node_tree_copy_tree(), and blender::nodes::node_tree_shader_default().
| bNodeTree * blender::bke::node_tree_copy_tree_ex | ( | const bNodeTree & | ntree, |
| Main * | bmain, | ||
| bool | do_id_user ) |
Definition at line 5013 of file node.cc.
References blender::BKE_id_copy_ex(), blender::LIB_ID_CREATE_NO_MAIN, blender::LIB_ID_CREATE_NO_USER_REFCOUNT, and node_tree_copy_tree_ex().
Referenced by blender::nodes::ensure_geometry_nodes_lazy_function_graph_impl(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), node_tree_copy_tree(), node_tree_copy_tree_ex(), and blender::scene_blend_write_compositor_forward_compat().
| void blender::bke::node_tree_free_embedded_tree | ( | bNodeTree * | ntree | ) |
Free tree which is embedded into another data-block.
Definition at line 5231 of file node.cc.
References blender::BKE_libblock_free_data(), blender::BKE_libblock_free_data_py(), blender::bNodeTree::id, node_tree_free_embedded_tree(), and node_tree_free_tree().
Referenced by blender::blo_update_defaults_scene(), Freestyle::BlenderStrokeRenderer::GetStrokeShader(), blender::light_free_data(), blender::linestyle_free_data(), blender::material_free_data(), node_tree_free_embedded_tree(), blender::nodes::node_tree_shader_default(), blender::paste_material_exec(), blender::scene_blend_write_compositor_forward_compat(), blender::nodes::tests::TEST_F(), blender::nodes::tests::TEST_F(), blender::texture_free_data(), and blender::world_free_data().
Definition at line 5141 of file node.cc.
References blender::BLI_assert(), blender::bNodeTree::id, blender::ID_TAG_LOCALIZED, node, node_free_node(), node_rebuild_id_vector(), node_tree_free_local_node(), node_unlink_attached(), node_unlink_node(), and blender::ID::tag.
Referenced by blender::localize(), and node_tree_free_local_node().
| void blender::bke::node_tree_free_tree | ( | bNodeTree & | ntree | ) |
Free (or release) any data used by this node-tree. Does not free the node-tree itself and does no ID user counting.
Definition at line 5224 of file node.cc.
References blender::BKE_animdata_free(), blender::BKE_libblock_free_runtime_data(), blender::bNodeTree::id, node_tree_free_tree(), and ntree_free_data().
Referenced by blender::default_paint_slot_color_get(), free_localized_node_groups(), blender::localize(), blender::ed::space_node::node_group_make_test_selected(), node_tree_free_embedded_tree(), and node_tree_free_tree().
Returns the private NodeTree object of the data-block, if it has one.
Definition at line 5337 of file node.cc.
References node_tree_from_id(), and node_tree_ptr_from_id().
Referenced by blender::after_liblink_id_embedded_id_process(), blender::animdata_copy_id_action(), blender::BKE_bpath_foreach_path_id(), blender::BKE_id_newptr_and_tag_clear(), blender::BKE_idtype_id_foreach_cache(), blender::BKE_lib_id_make_local_generic(), blender::BKE_lib_override_library_main_operations_create(), blender::BKE_lib_override_library_make_local(), blender::BKE_library_id_can_use_filter_id(), blender::BKE_library_make_local(), blender::BKE_main_merge_as_archive_library(), blender::blo_do_versions_270(), blender::blo_do_versions_280(), blender::BLO_main_validate_embedded_flag(), blender::BLO_main_validate_embedded_liboverrides(), blender::BLO_readfile_id_runtime_data_free_all(), blender::animrig::versioning::convert_legacy_action_assignments(), blender::deg_graph_clear_id_recalc_flags(), blender::DEG_iterator_ids_step(), blender::direct_link_id_embedded_id(), blender::animrig::find_related_ids(), blender::IMB_colormanagement_working_space_convert(), blender::bke::greasepencil::convert::legacy_gpencil_sanitize_annotations(), blender::lib_override_library_resync(), blender::memfile_undosys_step_decode(), blender::ed::space_node::node_foreach_id(), node_owner_pointer_get(), node_tree_from_id(), blender::propagate_status_to_embedded_ids(), blender::animrig::internal::rebuild_slot_user_cache(), blender::replace_action(), and blender::animrig::versioning::tag_action_users_for_slotted_actions_conversion().
| bool blender::bke::node_tree_is_registered | ( | const bNodeTree & | ntree | ) |
Definition at line 2873 of file node.cc.
References node_tree_is_registered(), NodeTreeTypeUndefined, and blender::bNodeTree::typeinfo.
Referenced by node_tree_is_registered().
| void blender::bke::node_tree_iterator_init | ( | NodeTreeIterStore * | ntreeiter, |
| Main * | bmain ) |
Definition at line 6218 of file node.cc.
References blender::bke::NodeTreeIterStore::light, blender::Main::lights, blender::bke::NodeTreeIterStore::linestyle, blender::Main::linestyles, blender::bke::NodeTreeIterStore::mat, blender::Main::materials, blender::bke::NodeTreeIterStore::ngroup, node_tree_iterator_init(), blender::Main::nodetrees, blender::bke::NodeTreeIterStore::scene, blender::Main::scenes, blender::bke::NodeTreeIterStore::tex, blender::Main::textures, blender::bke::NodeTreeIterStore::world, and blender::Main::worlds.
Referenced by node_tree_iterator_init().
| bool blender::bke::node_tree_iterator_step | ( | NodeTreeIterStore * | ntreeiter, |
| bNodeTree ** | r_nodetree, | ||
| ID ** | r_id ) |
Definition at line 6228 of file node.cc.
References blender::bNodeTree::id, blender::FreestyleLineStyle::id, blender::Scene::id, blender::Tex::id, blender::bke::NodeTreeIterStore::light, blender::bke::NodeTreeIterStore::linestyle, blender::bke::NodeTreeIterStore::mat, blender::ID::next, blender::bke::NodeTreeIterStore::ngroup, node_tree_iterator_step(), blender::FreestyleLineStyle::nodetree, blender::Scene::nodetree, blender::Tex::nodetree, blender::bke::NodeTreeIterStore::scene, blender::bke::NodeTreeIterStore::tex, and blender::bke::NodeTreeIterStore::world.
Referenced by node_tree_iterator_step().
| bNodeTree * blender::bke::node_tree_localize | ( | bNodeTree * | ntree, |
| std::optional< ID * > | new_owner_id ) |
Returns localized tree for execution in threads.
| new_owner_id | the owner ID of the localized nodetree, may be nullopt if unknown or irrelevant. |
Definition at line 5355 of file node.cc.
References blender::BKE_id_copy_in_lib(), blender::bNodeTree::id, blender::ID_TAG_LOCALIZED, blender::LIB_ID_COPY_LOCALIZE, blender::LIB_ID_COPY_NO_ANIMDATA, blender::bke::bNodeTreeType::localize, blender::bNode::next, node, node_tree_localize(), node_tree_set_output(), blender::bNodeTree::nodes, blender::bke::bNodeRuntime::original, blender::bNode::runtime, blender::ID::tag, and blender::bNodeTree::typeinfo.
Referenced by blender::light_copy_data(), blender::material_copy_data(), node_tree_localize(), blender::texture_copy_data(), and blender::world_copy_data().
| void blender::bke::node_tree_node_flag_set | ( | bNodeTree & | ntree, |
| eNode_Flag | flag, | ||
| bool | enable ) |
Definition at line 5343 of file node.cc.
References node, and node_tree_node_flag_set().
Referenced by node_tree_node_flag_set().
Get address of potential node-tree pointer of given ID.
Definition at line 5312 of file node.cc.
References blender::ID_LA, blender::ID_LS, blender::ID_MA, blender::ID_SCE, blender::ID_TE, blender::ID_WO, and node_tree_ptr_from_id().
Referenced by blender::deg::DepsgraphNodeBuilder::build_animation_images(), blender::deg::DepsgraphRelationBuilder::build_animation_images(), blender::direct_link_id_embedded_id(), blender::id_swap(), node_tree_add_tree_do(), node_tree_from_id(), and node_tree_ptr_from_id().
Definition at line 6279 of file node.cc.
References blender::BLI_assert(), CMP_NODE_R_LAYERS, blender::Scene::id, node, and node_tree_remove_layer_n().
Referenced by node_tree_remove_layer_n(), and blender::view_layer_remove_unset_nodetrees().
| void blender::bke::node_tree_set_output | ( | bNodeTree & | ntree | ) |
XXX: old trees handle output flags automatically based on special output node types and last active selection. New tree types have a per-output socket flag to indicate the final output to use explicitly.
Definition at line 5238 of file node.cc.
References blender::bNode::custom1, blender::bNode::flag, blender::bke::bNodeType::nclass, node, NODE_CLASS_OUTPUT, blender::NODE_DO_OUTPUT, node_tree_set_output(), blender::NODE_VIEWER_SHORTCUT_NONE, blender::bNodeTree::nodes, blender::NTREE_COMPOSIT, blender::NTREE_GEOMETRY, output, blender::bNodeTree::type, blender::bNode::type_legacy, and blender::bNode::typeinfo.
Referenced by blender::geometry_node_tree_update(), node_tree_localize(), node_tree_set_output(), blender::ntreeShaderBeginExecTree_internal(), blender::ntreeShaderOutputNode(), and blender::update().
| void blender::bke::node_tree_set_type | ( | bNodeTree & | ntree | ) |
Try to initialize all type-info in a node tree.
Definition at line 2748 of file node.cc.
References blender::bNodeSocket::idname, blender::bNodeTree::idname, node, node_set_typeinfo(), node_socket_set_typeinfo(), node_socket_type_find(), node_tree_set_type(), node_tree_type_find(), node_type_find(), ntree_set_typeinfo(), and blender::UString::UString().
Referenced by blender::blo_do_versions_270(), blender::do_version_bokeh_blur_pixel_size(), blender::do_version_composite_node_in_scene_tree(), blender::do_version_displace_node_remove_xy_scale(), blender::do_version_map_value_node(), blender::do_version_mix_color_use_alpha(), blender::do_version_normal_node_dot_product(), blender::do_version_sun_beams(), blender::do_version_texture_gradient_clamp(), blender::do_versions_after_linking_270(), blender::do_versions_after_linking_500(), blender::ed::space_node::node_clipboard_copy_exec(), node_tree_set_type(), ntree_blend_read_after_liblink(), and blender::version_geometry_nodes_replace_transfer_attribute_node().
| std::string blender::bke::node_tree_to_dot | ( | const bNodeTree & | tree, |
| const bNodeTreeToDotOptions & | options = bNodeTreeToDotOptions() ) |
Convert a node tree into the dot format. This can be visualized with tools like graphviz and is very useful for debugging purposes.
Definition at line 38 of file node_tree_dot_export.cc.
References blender::dot_export::NodeWithSockets::add_input(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::dot_export::NodeWithSockets::add_output(), dot(), blender::dot_export::NodeWithSockets::Socket::fontcolor, blender::dot_export::NodeWithSocketsRef::input(), blender::dot_export::LeftToRight, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::dot_export::DirectedGraph::new_edge(), blender::dot_export::Graph::new_node(), node, blender::dot_export::NodeWithSockets::node_name, node_tree_to_dot(), options, blender::dot_export::NodeWithSocketsRef::output(), blender::dot_export::Graph::set_rankdir(), and blender::dot_export::DirectedGraph::to_dot_string().
Referenced by blender::GPU_material_from_nodetree(), blender::bke::node_tree_reference_lifetimes::make_reference_lifetimes_info(), and node_tree_to_dot().
| void blender::bke::node_tree_type_add | ( | bNodeTreeType & | nt | ) |
Definition at line 2844 of file node.cc.
References G_MAIN, get_node_tree_type_map(), node_tree_type_add(), and update_typeinfo().
Referenced by node_tree_type_add(), blender::register_node_tree_type_cmp(), blender::register_node_tree_type_geo(), blender::register_node_tree_type_sh(), and blender::register_node_tree_type_tex().
| bNodeTreeType * blender::bke::node_tree_type_find | ( | StringRef | idname | ) |
Definition at line 2797 of file node.cc.
References get_node_tree_type_map(), node_tree_type_find(), and blender::UString::UString().
Referenced by blender::ed::space_node::add_node_group_asset(), blender::ed::space_node::new_node_tree_exec(), blender::ed::space_node::node_space_icon_get(), blender::ed::space_node::node_space_name_get(), node_tree_add_tree_do(), node_tree_set_type(), node_tree_type_find(), and blender::ed::space_node::snode_set_context().
| bNodeTreeType * blender::bke::node_tree_type_find_builtin | ( | const int | tree_type | ) |
Definition at line 2806 of file node.cc.
References get_node_tree_type_map(), and node_tree_type_find_builtin().
Referenced by node_tree_type_find_builtin(), and node_tree_type_supports_socket_type_static().
| void blender::bke::node_tree_type_free_link | ( | const bNodeTreeType & | nt | ) |
Definition at line 2867 of file node.cc.
References get_node_tree_type_map(), node_tree_type_free_link(), and ntree_free_type().
Referenced by node_tree_type_free_link().
| bool blender::bke::node_tree_type_supports_socket_type_static | ( | const int | ntree_type, |
| const eNodeSocketDatatype | socket_type ) |
Definition at line 6295 of file node.cc.
References node_socket_type_find_static(), node_tree_type_find_builtin(), and node_tree_type_supports_socket_type_static().
Referenced by blender::nodes::node_fn_compare_cc::is_supported_data_block_type(), blender::nodes::node_geo_switch_cc::node_rna(), node_tree_type_supports_socket_type_static(), blender::nodes::socket_type_supported_in_bundle(), blender::nodes::socket_type_supported_in_closure(), blender::nodes::ClosureToListItemsAccessor::supports_socket_type(), blender::nodes::GeoViewerItemsAccessor::supports_socket_type(), and blender::nodes::RepeatItemsAccessor::supports_socket_type().
| Span< bNodeTreeType * > blender::bke::node_tree_types_get | ( | ) |
Definition at line 2878 of file node.cc.
References get_node_tree_type_map(), and node_tree_types_get().
Referenced by blender::ed::space_node::node_create(), and node_tree_types_get().
| void blender::bke::node_tree_update_all_new | ( | Main & | main | ) |
Definition at line 5677 of file node.cc.
References blender::BKE_ntree_update(), blender::BKE_ntree_update_tag_all(), can_read_node_type(), FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, blender::ID_TAG_NEW, main, node, node_set_undefined_type(), and node_tree_update_all_new().
Referenced by blender::blo_read_file_internal(), blender::library_link_end(), and node_tree_update_all_new().
Definition at line 5707 of file node.cc.
References blender::BKE_ntree_update(), blender::BKE_ntree_update_tag_node_property(), FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, main, node, and node_tree_update_all_users().
Referenced by blender::libblock_remap_data_postprocess_nodetree_update(), and node_tree_update_all_users().
| void blender::bke::node_type_base | ( | bNodeType & | ntype, |
| UString | idname, | ||
| std::optional< int16_t > | legacy_type = std::nullopt ) |
Initialize a new node type struct with default values and callbacks.
Definition at line 5866 of file node.cc.
References blender::BLI_assert(), blender::UString::c_str(), ELEM, get_next_auto_legacy_type(), blender::bke::bNodeType::idname, blender::bke::bNodeType::nclass, NODE_CLASS_CONVERTER, NODE_CUSTOM, node_poll_default(), node_poll_instance_default(), node_type_base(), node_type_base_defaults(), NODE_UNDEFINED, blender::bke::bNodeType::poll, blender::bke::bNodeType::poll_instance, blender::bke::bNodeType::rna_ext, blender::RNA_struct_blender_type_set(), blender::RNA_struct_find(), blender::ExtensionRNA::srna, and blender::bke::bNodeType::type_legacy.
Referenced by blender::cmp_node_type_base(), blender::fn_cmp_node_type_base(), blender::fn_node_type_base(), blender::geo_cmp_node_type_base(), blender::geo_node_type_base(), node_is_dangling_reroute(), node_type_base(), blender::register_node_type_comment(), blender::register_node_type_frame(), blender::register_node_type_group_input(), blender::register_node_type_group_output(), blender::register_node_type_implicit_conversion(), blender::register_node_type_reroute(), blender::sh_geo_node_type_base(), blender::sh_node_type_base(), and blender::tex_node_type_base().
| void blender::bke::node_type_base_custom | ( | bNodeType & | ntype, |
| StringRefNull | idname, | ||
| StringRefNull | name, | ||
| StringRefNull | enum_name, | ||
| short | nclass ) |
Definition at line 5896 of file node.cc.
References blender::StringRefNull::c_str(), blender::bke::bNodeType::enum_name_legacy, blender::bke::bNodeType::idname, blender::bke::bNodeType::nclass, NODE_CUSTOM, node_type_base_custom(), node_type_base_defaults(), blender::bke::bNodeType::type_legacy, blender::bke::bNodeType::ui_name, and blender::UString::UString().
Referenced by blender::nodes::node_composite_group_cc::node_register(), node_type_base_custom(), blender::nodes::register_node_type_geo_group(), blender::register_node_type_sh_group(), blender::register_node_type_tex_group(), and blender::register_undefined_types().
|
static |
Definition at line 5831 of file node.cc.
References FLT_MAX, blender::bke::bNodeType::height, blender::bke::bNodeType::maxheight, blender::bke::bNodeType::minheight, and node_type_base_defaults().
Referenced by node_type_base(), node_type_base_custom(), and node_type_base_defaults().
Definition at line 2883 of file node.cc.
References get_node_type_map(), and node_type_find().
Referenced by can_read_node_type(), blender::bke::node_tree_runtime::get_implicit_origin_nodes(), blender::bke::bNodeType::is_type(), node_add_node(), node_blend_read_data_storage(), node_tree_set_type(), node_type_find(), blender::pyrna_struct_bl_rna_get_subclass(), blender::bke::node_tree_runtime::update_group_output_node(), and blender::version_node_add_empty().
Definition at line 2892 of file node.cc.
References get_node_type_alias_map(), and node_type_find_alias().
Referenced by node_type_find_alias(), and blender::pyrna_struct_bl_rna_get_subclass().
| void blender::bke::node_type_socket_templates | ( | bNodeType * | ntype, |
| bNodeSocketTemplate * | inputs, | ||
| bNodeSocketTemplate * | outputs ) |
Definition at line 6134 of file node.cc.
References blender::bke::bNodeSocketTemplate::identifier, blender::bke::bNodeType::inputs, node_type_socket_templates(), blender::bke::bNodeType::outputs, blender::STRNCPY(), blender::bke::bNodeSocketTemplate::type, and unique_socket_template_identifier().
Referenced by node_is_dangling_reroute(), node_type_socket_templates(), blender::register_node_type_tex_at(), blender::register_node_type_tex_bricks(), blender::register_node_type_tex_checker(), blender::register_node_type_tex_combine_color(), blender::register_node_type_tex_coord(), blender::register_node_type_tex_curve_rgb(), blender::register_node_type_tex_curve_time(), blender::register_node_type_tex_distance(), blender::register_node_type_tex_hue_sat(), blender::register_node_type_tex_image(), blender::register_node_type_tex_invert(), blender::register_node_type_tex_math(), blender::register_node_type_tex_mix_rgb(), blender::register_node_type_tex_output(), blender::register_node_type_tex_rgbtobw(), blender::register_node_type_tex_rotate(), blender::register_node_type_tex_scale(), blender::register_node_type_tex_separate_color(), blender::register_node_type_tex_texture(), blender::register_node_type_tex_translate(), blender::register_node_type_tex_valtonor(), blender::register_node_type_tex_valtorgb(), and blender::register_node_type_tex_viewer().
| void blender::bke::node_type_storage | ( | bNodeType & | ntype, |
| std::optional< StringRefNull > | storagename, | ||
| void(* | freefunc )(bNode *node), | ||
| void(* | copyfunc )(bNodeTree *dest_ntree, bNode *dest_node, const bNode *src_node) ) |
Definition at line 6166 of file node.cc.
References blender::bke::bNodeType::copyfunc, blender::bke::bNodeType::freefunc, node, node_type_storage(), and blender::bke::bNodeType::storagename.
Referenced by blender::nodes::node_composite_blur_cc::node_register(), blender::nodes::node_composite_channel_key_cc::node_register(), blender::nodes::node_composite_color_spill_cc::node_register(), blender::nodes::node_composite_combine_color_cc::node_register(), blender::nodes::node_composite_convert_color_space_cc::node_register(), blender::nodes::node_composite_convert_to_display_cc::node_register(), blender::nodes::node_composite_corner_pin_cc::node_register(), blender::nodes::node_composite_cryptomatte_cc::node_register(), blender::nodes::node_composite_defocus_cc::node_register(), blender::nodes::node_composite_denoise_cc::node_register(), blender::nodes::node_composite_dilate_erode_cc::node_register(), blender::nodes::node_composite_displace_cc::node_register(), blender::nodes::node_composite_distance_key_cc::node_register(), blender::nodes::node_composite_file_output_cc::node_register(), blender::nodes::node_composite_glare_cc::node_register(), blender::nodes::node_composite_hue_correct_cc::node_register(), blender::nodes::node_composite_image_cc::node_register(), blender::nodes::node_composite_keying_cc::node_register(), blender::nodes::node_composite_keying_screen_cc::node_register(), blender::nodes::node_composite_kuwahara_cc::node_register(), blender::nodes::node_composite_legacy_cryptomatte_cc::node_register(), blender::nodes::node_composite_lens_distortion_cc::node_register(), blender::nodes::node_composite_map_uv_cc::node_register(), blender::nodes::node_composite_movie_clip_cc::node_register(), blender::nodes::node_composite_plane_track_deform_cc::node_register(), blender::nodes::node_composite_rgb_curves_cc::node_register(), blender::nodes::node_composite_rotate_cc::node_register(), blender::nodes::node_composite_scale_cc::node_register(), blender::nodes::node_composite_separate_color_cc::node_register(), blender::nodes::node_composite_set_alpha_cc::node_register(), blender::nodes::node_composite_time_curves_cc::node_register(), blender::nodes::node_composite_tone_map_cc::node_register(), blender::nodes::node_composite_track_position_cc::node_register(), blender::nodes::node_composite_transform_cc::node_register(), blender::nodes::node_composite_translate_cc::node_register(), blender::nodes::node_composite_viewer_cc::node_register(), blender::nodes::node_fn_combine_color_cc::node_register(), blender::nodes::node_fn_compare_cc::node_register(), blender::nodes::node_fn_format_string_cc::node_register(), blender::nodes::node_fn_input_bool_cc::node_register(), blender::nodes::node_fn_input_color_cc::node_register(), blender::nodes::node_fn_input_int_cc::node_register(), blender::nodes::node_fn_input_int_vector_cc::node_register(), blender::nodes::node_fn_input_menu_cc::node_register(), blender::nodes::node_fn_input_rotation_cc::node_register(), blender::nodes::node_fn_input_string_cc::node_register(), blender::nodes::node_fn_input_vector_cc::node_register(), blender::nodes::node_fn_random_value_cc::node_register(), blender::nodes::node_fn_separate_color_cc::node_register(), blender::nodes::node_geo_accumulate_field_cc::node_register(), blender::nodes::node_geo_attribute_capture_cc::node_register(), blender::nodes::node_geo_bake_cc::node_register(), blender::nodes::node_geo_closure_cc::input_node::node_register(), blender::nodes::node_geo_closure_cc::output_node::node_register(), blender::nodes::node_geo_closure_to_list_cc::node_register(), blender::nodes::node_geo_collection_info_cc::node_register(), blender::nodes::node_geo_combine_bundle_cc::node_register(), blender::nodes::node_geo_combine_list_cc::node_register(), blender::nodes::node_geo_curve_fill_cc::node_register(), blender::nodes::node_geo_curve_fillet_cc::node_register(), blender::nodes::node_geo_curve_handle_type_selection_cc::node_register(), blender::nodes::node_geo_curve_primitive_arc_cc::node_register(), blender::nodes::node_geo_curve_primitive_bezier_segment_cc::node_register(), blender::nodes::node_geo_curve_primitive_circle_cc::node_register(), blender::nodes::node_geo_curve_primitive_line_cc::node_register(), blender::nodes::node_geo_curve_primitive_quadrilateral_cc::node_register(), blender::nodes::node_geo_curve_resample_cc::node_register(), blender::nodes::node_geo_curve_sample_cc::node_register(), blender::nodes::node_geo_curve_set_handle_type_cc::node_register(), blender::nodes::node_geo_curve_spline_type_cc::node_register(), blender::nodes::node_geo_curve_to_points_cc::node_register(), blender::nodes::node_geo_curve_trim_cc::node_register(), blender::nodes::node_geo_delete_geometry_cc::node_register(), blender::nodes::node_geo_distribute_points_in_volume_cc::node_register(), blender::nodes::node_geo_duplicate_elements_cc::node_register(), blender::nodes::node_geo_evaluate_closure_cc::node_register(), blender::nodes::node_geo_extrude_mesh_cc::node_register(), blender::nodes::node_geo_field_to_grid_cc::node_register(), blender::nodes::node_geo_field_to_list_cc::node_register(), blender::nodes::node_geo_foreach_geometry_element_cc::input_node::node_register(), blender::nodes::node_geo_foreach_geometry_element_cc::output_node::node_register(), blender::nodes::node_geo_get_bundle_item_cc::node_register(), blender::nodes::node_geo_gizmo_dial_cc::node_register(), blender::nodes::node_geo_gizmo_linear_cc::node_register(), blender::nodes::node_geo_gizmo_transform_cc::node_register(), blender::nodes::node_geo_image_texture_cc::node_register(), blender::nodes::node_geo_input_named_attribute_cc::node_register(), blender::nodes::node_geo_list_get_item_cc::node_register(), blender::nodes::node_geo_merge_by_distance_cc::node_register(), blender::nodes::node_geo_merge_layers_cc::node_register(), blender::nodes::node_geo_mesh_primitive_circle_cc::node_register(), blender::nodes::node_geo_mesh_primitive_cone_cc::node_register(), blender::nodes::node_geo_mesh_primitive_cylinder_cc::node_register(), blender::nodes::node_geo_mesh_primitive_line_cc::node_register(), blender::nodes::node_geo_mesh_to_points_cc::node_register(), blender::nodes::node_geo_mesh_to_volume_cc::node_register(), blender::nodes::node_geo_object_info_cc::node_register(), blender::nodes::node_geo_points_to_volume_cc::node_register(), blender::nodes::node_geo_proximity_cc::node_register(), blender::nodes::node_geo_rasterize_points::node_register(), blender::nodes::node_geo_raycast_cc::node_register(), blender::nodes::node_geo_repeat_cc::repeat_input_node::node_register(), blender::nodes::node_geo_repeat_cc::repeat_output_node::node_register(), blender::nodes::node_geo_sample_index_cc::node_register(), blender::nodes::node_geo_separate_bundle_cc::node_register(), blender::nodes::node_geo_separate_geometry_cc::node_register(), blender::nodes::node_geo_set_curve_handles_cc::node_register(), blender::nodes::node_geo_simulation_cc::sim_input_node::node_register(), blender::nodes::node_geo_simulation_cc::sim_output_node::node_register(), blender::nodes::node_geo_store_bundle_item_cc::node_register(), blender::nodes::node_geo_store_named_attribute_cc::node_register(), blender::nodes::node_geo_string_to_curves_cc::node_register(), blender::nodes::node_geo_subdivision_surface_cc::node_register(), blender::nodes::node_geo_uv_unwrap_cc::node_register(), blender::nodes::node_geo_viewer_cc::node_register(), blender::nodes::node_geo_volume_to_mesh_cc::node_register(), node_type_storage(), blender::nodes::node_geo_index_switch_cc::register_node(), blender::nodes::node_geo_menu_switch_cc::register_node(), blender::nodes::node_geo_switch_cc::register_node(), blender::register_node_type_comment(), blender::register_node_type_frame(), blender::register_node_type_implicit_conversion(), blender::register_node_type_reroute(), blender::register_node_type_sh_attribute(), blender::register_node_type_sh_bsdf_hair_principled(), blender::register_node_type_sh_combcolor(), blender::register_node_type_sh_curve_float(), blender::register_node_type_sh_curve_rgb(), blender::register_node_type_sh_curve_vec(), blender::register_node_type_sh_map_range(), blender::register_node_type_sh_mix(), blender::register_node_type_sh_normal_map(), blender::register_node_type_sh_output_aov(), blender::register_node_type_sh_radial_tiling(), blender::register_node_type_sh_raycast(), blender::register_node_type_sh_script(), blender::register_node_type_sh_sepcolor(), blender::register_node_type_sh_tangent(), blender::register_node_type_sh_tex_brick(), blender::register_node_type_sh_tex_checker(), blender::register_node_type_sh_tex_environment(), blender::register_node_type_sh_tex_gabor(), blender::register_node_type_sh_tex_gradient(), blender::register_node_type_sh_tex_ies(), blender::register_node_type_sh_tex_image(), blender::register_node_type_sh_tex_magic(), blender::register_node_type_sh_tex_noise(), blender::register_node_type_sh_tex_sky(), blender::register_node_type_sh_tex_voronoi(), blender::register_node_type_sh_tex_wave(), blender::register_node_type_sh_uvmap(), blender::register_node_type_sh_valtorgb(), blender::register_node_type_sh_vect_transform(), blender::register_node_type_sh_vertex_color(), blender::register_node_type_tex_curve_rgb(), blender::register_node_type_tex_curve_time(), blender::register_node_type_tex_image(), blender::register_node_type_tex_output(), and blender::register_node_type_tex_valtorgb().
Definition at line 2951 of file node.cc.
References get_node_type_map(), and node_types_get().
Referenced by blender::ED_node_init_butfuncs(), blender::ed::space_node::gather_socket_link_operations(), get_known_node_types_set(), node_add_static_node(), blender::ed::space_node::node_operatortypes(), node_types_get(), and blender::ed::space_node::ui_node_menu_column().
Create a new unique integer identifier for the node. Also set the node's index in the tree, which is an eagerly maintained cache.
Definition at line 4244 of file node.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::BLI_assert(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), blender::RandomNumberGenerator::get_int32(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_of(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::index_range(), blender::IndexRange::last(), blender::bNodeTree::next_node_identifier_seed, node, node_unique_id(), blender::bke::bNodeTreeRuntime::nodes_by_id, and blender::bNodeTree::runtime.
Referenced by node_add_node(), node_copy_with_mapping(), node_tree_blend_read_data(), node_unique_id(), blender::version_add_group_in_out_node(), blender::version_node_add_empty(), and blender::version_node_add_unknown().
Find the first available, non-duplicate name for a given node.
Definition at line 4238 of file node.cc.
References blender::BLI_uniquename(), DATA_, node, node_unique_name(), blender::bNodeTree::nodes, and offsetof.
Referenced by blender::ed::space_node::add_node_group_asset(), blender::blo_do_versions_250(), blender::blo_do_versions_260(), node_copy_with_mapping(), blender::ed::space_node::node_group_make_from_node_declaration(), node_init(), blender::ed::space_node::node_swap_group_asset_invoke(), blender::nodes::node_tree_shader_default(), node_unique_name(), blender::ed::space_node::search_link_ops_for_asset_metadata(), blender::version_node_add_empty(), and blender::version_node_add_unknown().
Definition at line 5053 of file node.cc.
References node, node_detach_node(), and node_unlink_attached().
Referenced by node_remove_node(), node_tree_free_local_node(), node_unlink_attached(), and blender::version_node_remove().
Definition at line 5026 of file node.cc.
References adjust_multi_input_indices_after_removed_link(), blender::bNodeTree::links, node, node_remove_link(), and node_unlink_node().
Referenced by node_remove_node(), node_tree_free_local_node(), node_unlink_node(), blender::ntree_shader_pruned_unused(), and blender::version_node_remove().
| void blender::bke::node_unregister_socket_type | ( | bNodeSocketType & | stype | ) |
Definition at line 3007 of file node.cc.
References get_socket_type_map(), node_free_socket_type(), and node_unregister_socket_type().
Referenced by node_unregister_socket_type().
| void blender::bke::node_unregister_type | ( | bNodeType & | ntype | ) |
Definition at line 2945 of file node.cc.
References get_node_type_map(), node_free_type(), and node_unregister_type().
Referenced by node_unregister_type().
| void blender::bke::node_update_asset_metadata | ( | bNodeTree & | node_tree | ) |
Definition at line 2462 of file node.cc.
References blender::ID::asset_data, blender::BKE_asset_metadata_idprop_ensure(), blender::bNodeTree::compositor_node_asset_traits, blender::bke::idprop::create(), blender::CompositorNodeAssetTraits::flag, blender::GeometryNodeAssetTraits::flag, blender::bNodeTree::geometry_node_asset_traits, blender::bNodeTree::id, node_create_asset_meta_data_properties(), blender::GeometryNodeAssetTraits::node_tool_idname, node_update_asset_metadata(), blender::StringRefNull::StringRefNull(), and blender::bNodeTree::type.
Referenced by blender::enable_compositor_nodes_is_strip_modifier(), blender::new_compositor_effect_node_group_exec(), blender::ed::space_node::new_compositor_sequencer_node_group_exec(), node_tree_asset_on_mark_asset(), node_tree_asset_pre_save(), node_update_asset_metadata(), and blender::version_compositing_node_group_to_effect().
|
static |
Update idnames of nodes. Note that this is not forward-compatible and thus should only be done if the node was not officially released yet. It's ok to add it here while it's still an experimental feature.
Definition at line 2071 of file node.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr_as(), node, node_update_idname_from_experimental(), and STRNCPY_UTF8.
Referenced by node_tree_blend_read_data(), and node_update_idname_from_experimental().
|
static |
Definition at line 58 of file curve_legacy_convert.cc.
References BLI_assert_unreachable, blender::CU_TWIST_MINIMUM, blender::CU_TWIST_TANGENT, blender::CU_TWIST_Z_UP, normal_mode_from_legacy(), blender::NORMAL_MODE_MINIMUM_TWIST, and blender::NORMAL_MODE_Z_UP.
Referenced by curve_legacy_to_curves(), and normal_mode_from_legacy().
|
static |
Definition at line 1034 of file curves_geometry.cc.
References blender::data, blender::math::normalize(), and normalize_span().
Referenced by blender::bke::CurvesGeometry::evaluated_normals(), and normalize_span().
|
static |
Definition at line 1685 of file mesh_normals.cc.
References blender::MutableSpan< T >::index_range(), normalize_vecs(), and blender::threading::parallel_for().
Referenced by mesh_set_custom_normals(), mesh_set_custom_normals_from_verts(), and normalize_vecs().
|
static |
Definition at line 2213 of file node.cc.
References blender::BLO_read_lib_is_undo(), blender::BlendLibReader::main, node, node_tree_set_type(), blender::node_verify_sockets(), blender::bNodeTree::nodes, and ntree_blend_read_after_liblink().
Referenced by ntree_blend_read_after_liblink().
|
static |
Definition at line 2207 of file node.cc.
References node_tree_blend_read_data(), and ntree_blend_read_data().
Referenced by ntree_blend_read_data().
|
static |
Definition at line 1452 of file node.cc.
References blender::bke::bNodeTreeRuntime::execdata, node_tree_blend_write(), ntree_blend_write(), blender::bNodeTree::runtime, blender::bNodeTree::typeinfo, and blender::BlendWriter::write_id_struct().
Referenced by ntree_blend_write().
|
static |
Definition at line 5398 of file node.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), and ntree_contains_tree_exec().
Referenced by node_tree_contains_tree(), and ntree_contains_tree_exec().
|
static |
Definition at line 154 of file node.cc.
References blender::BKE_previewimg_id_copy(), blender::BLI_addtail(), blender::BLI_assert(), blender::BLI_strdup_null(), blender::bke::node_tree_reference_lifetimes::ClosureInputReferenceSet, blender::bke::node_tree_reference_lifetimes::ClosureOutputData, blender::bke::bNodeTreeRuntime::compositor_effect_nodes_srna_data, blender::bNodeTree::compositor_node_asset_traits, blender::bke::bNodeTreeRuntime::compositor_nodes_srna_data, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::bNodeTree::description, ELEM, blender::bNodeLink::fromnode, blender::bNodeLink::fromsock, blender::bNodeTree::geometry_node_asset_traits, blender::bke::bNodeTreeRuntime::geometry_nodes_srna_data, blender::bNodeTree::id, blender::bNode::identifier, blender::bke::bNodeRuntime::index_in_tree, blender::LIB_ID_COPY_NO_PREVIEW, blender::LIB_ID_CREATE_NO_USER_REFCOUNT, blender::bNodeSocket::link, blender::bNodeTree::links, blender::bke::node_tree_reference_lifetimes::LocalReferenceSet, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup(), blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_key_as(), blender::bNodeTree::nested_node_refs, blender::bNodeTree::nested_node_refs_num, node, node_copy_with_mapping(), node_declaration_ensure(), blender::GeometryNodeAssetTraits::node_tool_idname, blender::bNodeTree::nodes, blender::bke::bNodeTreeRuntime::nodes_by_id, ntree_copy_data(), blender::bke::node_tree_reference_lifetimes::ReferenceSetInfo::potential_data_origins, blender::bNodeTree::preview, blender::bke::bNodeTreeRuntime::reference_lifetimes_info, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::reserve(), blender::bNode::runtime, blender::bNodeTree::runtime, blender::bke::bNodeTreeRuntime::scene_compositor_effect_srna_data, blender::bke::bNodeTreeRuntime::structure_type_interface, blender::bNodeLink::tonode, blender::bNodeLink::tosock, blender::bNodeTree::tree_interface, blender::bke::node_tree_reference_lifetimes::ReferenceSetInfo::type, and blender::uninitialized_copy_n().
Referenced by ntree_copy_data().
|
static |
Definition at line 268 of file node.cc.
References blender::BKE_libblock_free_data(), blender::BKE_previewimg_id_free(), blender::bNodeTree::compositor_node_asset_traits, blender::bNodeTree::description, blender::bke::bNodeTreeRuntime::execdata, free_localized_node_groups(), blender::bNodeTree::geometry_node_asset_traits, blender::bNodeTree::id, blender::ID_TAG_LOCALIZED, blender::bNodeTree::links, blender::bNodeTree::nested_node_refs, node, node_free_node(), blender::GeometryNodeAssetTraits::node_tool_idname, blender::bNodeTree::nodes, ntree_free_data(), blender::NTREE_SHADER, blender::NTREE_TEXTURE, blender::ntreeShaderEndExecTree(), blender::ntreeTexEndExecTree(), blender::bNodeTree::runtime, blender::ID::tag, blender::bNodeTree::tree_interface, and blender::bNodeTree::type.
Referenced by node_tree_free_tree(), and ntree_free_data().
|
static |
Definition at line 2853 of file node.cc.
References defer_free_tree_type(), G_MAIN, ntree_free_type(), and update_typeinfo().
Referenced by node_system_exit(), node_tree_type_free_link(), and ntree_free_type().
|
static |
Definition at line 145 of file node.cc.
References blender::bke::NodeWidth::Default, blender::bNodeTree::default_group_node_width, ntree_init_data(), ntree_set_typeinfo(), blender::bNodeTree::runtime, and blender::bNodeTree::tree_interface.
Referenced by ntree_init_data().
|
static |
Definition at line 2645 of file node.cc.
References blender::BKE_ntree_update_tag_all(), NodeTreeTypeUndefined, ntree_set_typeinfo(), blender::bke::bNodeTreeType::type, blender::bNodeTree::type, and blender::bNodeTree::typeinfo.
Referenced by node_tree_add_tree_do(), node_tree_set_type(), ntree_init_data(), ntree_set_typeinfo(), and update_typeinfo().
|
static |
Definition at line 981 of file mesh_data_update.cc.
References blender::BKE_paint_select_face_test(), blender::BKE_view_layer_active_object_get(), blender::BKE_view_layer_synced_ensure(), CD_MASK_MDEFORMVERT, CD_MASK_MTFACE, CD_MASK_PROP_BYTE_COLOR, CD_MASK_PROP_FLOAT2, blender::DEG_get_bmain(), blender::DEG_get_customdata_mask_for_object(), blender::DEG_get_evaluated_scene(), blender::DEG_get_evaluated_view_layer(), blender::DEG_get_original(), blender::DEG_is_active(), blender::CustomData_MeshMasks::fmask, blender::CustomData_MeshMasks::lmask, blender::Object::mode, blender::OB_MODE_TEXTURE_PAINT, blender::OB_MODE_VERTEX_PAINT, blender::OB_MODE_WEIGHT_PAINT, object_get_datamask(), and blender::CustomData_MeshMasks::vmask.
Referenced by editbmesh_get_eval_cage(), mesh_data_update(), mesh_get_eval_deform(), and object_get_datamask().
| GeometrySet blender::bke::object_get_evaluated_geometry_set | ( | const Object & | object, |
| bool | apply_subdiv = true ) |
Definition at line 46 of file geometry_set_instances.cc.
References add_final_mesh_as_geometry_component(), blender::DEG_object_geometry_is_evaluated(), blender::bke::GeometrySet::from_instances(), blender::bke::GeometrySet::has_mesh(), blender::MatBase< float, 4, 4 >::identity(), blender::OB_EMPTY, blender::OB_MESH, and object_get_evaluated_geometry_set().
Referenced by blender::BKE_pointcloud_to_mesh(), blender::BPy_GeometrySet_static_from_evaluated_object(), blender::io::usd::USDPointInstancerWriter::do_write(), blender::bke::Instances::ensure_geometry_instances(), blender::ed::view3d::geometry_nodes_gizmos::find_geometry_for_gizmo(), blender::bke::Instances::foreach_referenced_geometry(), blender::geometry_attribute_get_tarmat(), blender::nodes::node_geo_input_instance_bounds_cc::InstanceBoundsField::get_varray_for_context(), blender::io::HierarchyContext::is_point_instancer(), blender::nodes::node_geo_boolean_cc::node_geo_exec(), blender::nodes::node_geo_object_info_cc::node_geo_exec(), object_get_evaluated_geometry_set(), blender::ed::spreadsheet::root_display_data_get(), blender::bke::InstanceReference::to_geometry_set(), and blender::ed::object::visual_geometry_to_objects_exec().
| bool blender::bke::object_has_geometry_set_instances | ( | const Object & | object | ) |
Definition at line 815 of file geometry_set.cc.
References ELEM, blender::bke::GeometrySet::has_component(), blender::OB_CURVES_LEGACY, blender::OB_FONT, blender::OB_GREASE_PENCIL, blender::OB_MESH, blender::OB_POINTCLOUD, blender::OB_VOLUME, and object_has_geometry_set_instances().
Referenced by blender::BKE_object_visibility(), blender::get_dupli_generator(), blender::ed::transform::iter_snap_objects(), blender::ed::object::make_object_duplilist_real(), and object_has_geometry_set_instances().
|
static |
Definition at line 299 of file curve_to_mesh_convert.cc.
References blender::offset_indices::OffsetIndices< T >::index_range(), and offsets_contain_single_point().
Referenced by offsets_contain_single_point().
| std::ostream & blender::bke::operator<< | ( | std::ostream & | stream, |
| const bNodeTreeZone & | zone ) |
Definition at line 631 of file node_tree_zones.cc.
| std::ostream & blender::bke::operator<< | ( | std::ostream & | stream, |
| const bNodeTreeZones & | zones ) |
Definition at line 620 of file node_tree_zones.cc.
| std::ostream & blender::bke::operator<< | ( | std::ostream & | stream, |
| const GeometrySet & | geometry_set ) |
Definition at line 211 of file geometry_set.cc.
| bool blender::bke::operator== | ( | const InstanceReference & | a, |
| const InstanceReference & | b ) |
Definition at line 155 of file instances.cc.
|
static |
Definition at line 150 of file mesh_data_update.cc.
References blender::CD_CONSTRUCT, blender::CustomData_add_layer(), blender::CustomData_get_layer_for_write(), blender::data, layer, blender::MutableSpan< T >::MutableSpan(), and orco_coord_layer_ensure().
Referenced by add_orco_mesh(), and orco_coord_layer_ensure().
|
static |
Definition at line 728 of file blenkernel/intern/mesh.cc.
References blender::MutableSpan< T >::begin(), blender::Vector< T, InlineBufferCapacity, Allocator >::begin(), blender::math::dominant_axis(), blender::MutableSpan< T >::drop_front(), blender::MutableSpan< T >::end(), blender::MutableSpan< T >::index_range(), blender::bke::pbvh::leaf_needs_material_split(), blender::Bounds< T >::max, merge_bounds(), blender::math::midpoint(), blender::Bounds< T >::min, blender::math::min_max(), negative_bounds(), blender::threading::parallel_reduce(), blender::bke::pbvh::partition_along_axis(), partition_faces_recursively(), blender::bke::pbvh::partition_material_indices(), blender::Vector< T, InlineBufferCapacity, Allocator >::resize(), blender::MutableSpan< T >::size(), blender::Vector< T, InlineBufferCapacity, Allocator >::size(), blender::MutableSpan< T >::slice(), blender::io::alembic::split(), STACK_FIXED_DEPTH, and blender::MutableSpan< T >::take_front().
Referenced by compute_local_mesh_groups(), and partition_faces_recursively().
|
static |
Definition at line 247 of file armature_deform.cc.
References b_bone_deform(), blender::bPoseChannel_Runtime::bbone_segments, blender::bke::PChanBoneT< PoseChannelT, BoneT >::bone, blender::bke::PChanBoneT< PoseChannelT, BoneT >::pchan, pchan_bone_deform(), blender::bPoseChannel::runtime, and blender::Bone::segments.
Referenced by armature_vert_task_with_mixer(), and pchan_bone_deform().
| const AttributeAccessorFunctions & blender::bke::pointcloud_attribute_accessor_functions | ( | ) |
Definition at line 223 of file pointcloud_attributes.cc.
References get_pointcloud_accessor_functions(), and pointcloud_attribute_accessor_functions().
Referenced by blender::bke::PointCloudComponent::attributes(), blender::bke::PointCloudComponent::attributes_for_write(), and pointcloud_attribute_accessor_functions().
| void blender::bke::pointcloud_convert_customdata_to_storage | ( | PointCloud & | pointcloud | ) |
See mesh_convert_customdata_to_storage.
Definition at line 250 of file attribute_legacy_convert.cc.
References attribute_legacy_convert_customdata_to_storage(), blender::PointCloud::attribute_storage, blender::CustomData_reset(), blender::PointCloud::pdata_legacy, Point, pointcloud_convert_customdata_to_storage(), and blender::PointCloud::totpoint.
Referenced by blender::blo_do_versions_500(), and pointcloud_convert_customdata_to_storage().
| PointCloud * blender::bke::pointcloud_new_no_attributes | ( | PointCloudType | type, |
| int | totpoint ) |
Definition at line 490 of file pointcloud.cc.
References blender::BKE_id_new_nomain(), pointcloud_new_no_attributes(), blender::PointCloud::totpoint, and blender::PointCloud::type.
Referenced by blender::nodes::node_geo_distribute_points_on_faces_cc::create_points_poisson_disk(), blender::nodes::node_geo_distribute_points_on_faces_cc::create_points_random(), blender::nodes::node_geo_curve_to_points_cc::curves_to_points(), blender::nodes::node_geo_mesh_to_points_cc::geometry_set_mesh_to_points(), blender::nodes::node_geo_grid_to_points_cc::node_geo_exec(), pointcloud_new_no_attributes(), blender::geometry::reorder_points(), and blender::bke::bake::try_load_pointcloud().
|
static |
Definition at line 72 of file mesh_validate.cc.
References CLOG_ERROR, blender::LOG, print_error_with_indices(), and T.
Referenced by print_error_with_indices(), validate_bool_attribute(), and validate_float_attribute().
|
static |
Definition at line 421 of file blender_project_config.cc.
References blender::ASSET_LIBRARY_PROJECT_DEFINED, blender::ASSET_LIBRARY_RELATIVE_PATH, blender::ASSET_LIBRARY_USE_AUTH_TOKEN, blender::ASSET_LIBRARY_USE_REMOTE_URL, BLI_assert_unreachable, project_asset_libraries_to_toml(), blender::rna_enum_asset_import_method_items, blender::RNA_enum_id_from_value(), blender::UUID::str(), blender::U, and blender::UUID::UUID().
Referenced by create_toml_from_blender_project(), and project_asset_libraries_to_toml().
|
static |
Definition at line 266 of file blender_project_config.cc.
References blender::bke::TomlAssetLibrary::access_token, blender::ASSET_LIBRARY_DISABLED, blender::ASSET_LIBRARY_RELATIVE_PATH, blender::BKE_preferences_project_asset_library_add(), blender::BKE_preferences_project_remote_asset_library_add(), blender::BLI_strdup(), blender::e, blender::bUserAssetLibrary::flag, blender::bke::TomlAssetLibrary::import_method, blender::bUserAssetLibrary::import_method, blender::bUserAssetLibrary::invalid_uuid, blender::bke::TomlAssetLibrary::is_remote_asset_lib, blender::bke::TomlAssetLibrary::name, blender::bke::TomlAssetLibrary::path, project_asset_library_add(), blender::U, blender::bke::TomlAssetLibrary::url, blender::bke::TomlAssetLibrary::use_relative_path, blender::UUID::UUID(), and blender::bke::TomlAssetLibrary::uuid.
Referenced by create_blender_project_from_toml(), and project_asset_library_add().
|
static |
Definition at line 191 of file blender_project_config.cc.
References BLI_assert_unreachable, blender::bke::TomlProjectVariable::description, blender::bke::ProjectVariable::description_set(), FLOAT, INT, blender::bke::TomlProjectVariable::name, project_variable_add(), STRING, blender::bke::ProjectVariable::string_subtype_set(), blender::bke::TomlProjectVariable::subtype, blender::bke::TomlProjectVariable::type, blender::bke::TomlProjectVariable::value, and blender::bke::ProjectVariable::value_set().
Referenced by create_blender_project_from_toml(), and project_variable_add().
|
static |
Definition at line 371 of file blender_project_config.cc.
References BLI_assert_unreachable, FLOAT, INT, blender::blender::StringRefBase::is_empty(), project_variables_to_toml(), blender::RNA_enum_id_from_value(), blender::rna_enum_project_variable_string_subtype_items, blender::rna_enum_project_variable_type_items, and STRING.
Referenced by create_toml_from_blender_project(), and project_variables_to_toml().
|
static |
Definition at line 613 of file type_conversions.cc.
References quaternion_to_float2(), and blender::math::to_euler().
Referenced by quaternion_to_float2().
|
static |
Definition at line 617 of file type_conversions.cc.
References quaternion_to_float3(), and blender::math::to_euler().
Referenced by quaternion_to_float3().
|
static |
Definition at line 621 of file type_conversions.cc.
References quaternion_to_float4().
Referenced by quaternion_to_float4().
|
static |
Definition at line 625 of file type_conversions.cc.
References blender::math::from_rotation(), and quaternion_to_float4x4().
Referenced by quaternion_to_float4x4().
|
static |
Definition at line 378 of file attribute_storage.cc.
References blender::BLO_read_array(), Bool, ColorByte, ColorFloat, blender::data, Float, Float2, Float3, Float4, Float4x4, Int16_2D, Int32, Int32_2D, Int8, Quaternion, read_array_data(), and String.
Referenced by read_array_data(), and read_shared_array().
|
static |
Definition at line 435 of file attribute_storage.cc.
References Array, attribute_type_to_cpp_type(), BLI_SCOPED_DEFER, BLO_read_struct, blender::bke::Attribute::data(), blender::data, blender::bke::Attribute::SingleData::from_value(), blender::GPointer::GPointer(), blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr, read_attr_data(), read_shared_array(), and Single.
Referenced by blender::bke::AttributeStorage::blend_read(), and read_attr_data().
|
static |
Definition at line 492 of file attribute_storage.cc.
References Corner, Curve, Edge, Face, Instance, Layer, Point, and read_attr_domain().
Referenced by blender::bke::AttributeStorage::blend_read(), and read_attr_domain().
|
static |
Definition at line 578 of file blenkernel/intern/action.cc.
References blender::BKE_fcurve_blend_read_data(), blender::BLO_read_pointer_array_and_validate_size(), BLO_read_struct, blender::bActionGroup::channelbag, blender::bActionGroup::channels, blender::ActionChannelbag::fcurve_array, blender::ActionChannelbag::fcurve_array_num, blender::ActionChannelbag::group_array, blender::ActionChannelbag::group_array_num, blender::FCurve::next, blender::FCurve::prev, and read_channelbag().
Referenced by read_channelbag(), and read_strip_keyframe_data().
|
static |
Definition at line 632 of file blenkernel/intern/action.cc.
References blender::BLO_read_pointer_array_and_validate_size(), BLO_read_struct, blender::animrig::Strip::create(), blender::animrig::Strip::Keyframe, layer, blender::bAction::layer_array, blender::bAction::layer_array_num, and read_layers().
Referenced by action_blend_read_data(), and read_layers().
|
static |
Definition at line 419 of file attribute_storage.cc.
References attribute_type_to_cpp_type(), blender::BLO_read_shared(), blender::data, read_array_data(), and read_shared_array().
Referenced by read_attr_data(), and read_shared_array().
|
static |
Definition at line 659 of file blenkernel/intern/action.cc.
References blender::BLO_read_pointer_array_and_validate_size(), BLO_read_struct, read_slots(), blender::bAction::slot_array, and blender::bAction::slot_array_num.
Referenced by action_blend_read_data(), and read_slots().
|
static |
Definition at line 607 of file blenkernel/intern/action.cc.
References blender::BLO_read_pointer_array_and_validate_size(), BLO_read_struct, blender::ActionStripKeyframeData::channelbag_array, blender::ActionStripKeyframeData::channelbag_array_num, read_channelbag(), and read_strip_keyframe_data().
Referenced by read_strip_keyframe_data(), and read_strip_keyframe_data_array().
|
static |
Definition at line 620 of file blenkernel/intern/action.cc.
References blender::BLO_read_pointer_array_and_validate_size(), BLO_read_struct, read_strip_keyframe_data(), read_strip_keyframe_data_array(), blender::bAction::strip_keyframe_data_array, and blender::bAction::strip_keyframe_data_array_num.
Referenced by action_blend_read_data(), and read_strip_keyframe_data_array().
|
static |
Definition at line 716 of file mesh_attributes.cc.
References blender::BLI_assert(), blender::VArray< T >::from_single(), blender::Span< T >::is_empty(), Point, reader_for_vertex_group_index(), and varray_for_deform_verts().
Referenced by foreach_vertex_group(), reader_for_vertex_group_index(), and try_get_vertex_group().
| void blender::bke::register_node_zone_type | ( | const bNodeZoneType & | zone_type | ) |
Definition at line 528 of file node_tree_zones.cc.
References get_zone_types_vector(), and register_node_zone_type().
Referenced by register_node_zone_type(), and blender::register_zone_types().
|
static |
Definition at line 68 of file geometry_component_edit_data.cc.
References blender::bke::GeometryComponentEditData::curves_edit_hints_, blender::bke::CurvesEditHints::curves_id_orig, blender::bke::CurvesEditHints::positions(), blender::bke::CurvesEditHints::positions_data, remember_deformed_curve_positions_if_necessary(), and save_shared_attribute().
Referenced by remember_deformed_curve_positions_if_necessary(), and blender::bke::GeometryComponentEditData::remember_deformed_positions_if_necessary().
|
static |
Definition at line 89 of file geometry_component_edit_data.cc.
References blender::bke::GreasePencilDrawingEditHints::drawing_orig, blender::bke::GeometryComponentEditData::grease_pencil_edit_hints_, blender::Span< T >::index_range(), blender::bke::greasepencil::LayerRuntime::orig_layer_index_, blender::bke::CurvesGeometry::points_num(), blender::bke::GreasePencilDrawingEditHints::positions_data, remember_deformed_grease_pencil_if_necessary(), blender::GreasePencilLayer::runtime, save_shared_attribute(), blender::Span< T >::size(), and blender::bke::greasepencil::Drawing::strokes().
Referenced by remember_deformed_grease_pencil_if_necessary(), and blender::bke::GeometryComponentEditData::remember_deformed_positions_if_necessary().
| void blender::bke::remove_defgroup_index | ( | MutableSpan< MDeformVert > | dverts, |
| int | defgroup_index ) |
Definition at line 1758 of file deform.cc.
References blender::Default, blender::MutableSpan< T >::index_range(), blender::threading::parallel_for(), PRF_scope, and remove_defgroup_index().
Referenced by remove_defgroup_index(), try_delete_vertex_group(), and blender::bke::greasepencil::validate_drawing_vertex_groups().
Definition at line 520 of file mesh_validate.cc.
References Array, attribute_type_to_cpp_type(), blender::CD_ORIGINDEX, Edge, blender::bke::Attribute::ArrayData::from_uninitialized(), blender::array_utils::gather(), blender::implicit_sharing::info_for_mem_free(), layer, blender::MEM_new_array_uninitialized(), remove_invalid_edges(), Single, and blender::index_mask::IndexMask::size().
Referenced by mesh_validate_impl(), and remove_invalid_edges().
Definition at line 413 of file mesh_validate.cc.
References Array, attribute_type_to_cpp_type(), blender::CD_GRID_PAINT_MASK, blender::CD_MDISPS, blender::CD_NORMAL, blender::CD_ORIGINDEX, blender::CD_ORIGSPACE_MLOOP, Corner, blender::CustomData_copy_elements(), blender::CustomData_make_layer_sharing_info(), blender::CustomData_sizeof(), ELEM, Face, blender::index_mask::IndexMask::foreach_index(), blender::bke::Attribute::ArrayData::from_uninitialized(), blender::array_utils::gather(), blender::bke::attribute_math::gather_group_to_group(), blender::offset_indices::gather_selected_offsets(), blender::exec_mode::grain_size(), blender::implicit_sharing::info_for_mem_free(), layer, blender::MEM_new_array_uninitialized(), POINTER_OFFSET, blender::Vector< T, InlineBufferCapacity, Allocator >::release(), remove_invalid_faces(), Single, blender::index_mask::IndexMask::size(), blender::offset_indices::OffsetIndices< T >::size(), and blender::offset_indices::OffsetIndices< T >::total_size().
Referenced by mesh_validate_impl(), and remove_invalid_faces().
|
static |
Definition at line 1961 of file node.cc.
References blender::BLI_remlink(), is_node_socket_supported(), and remove_unsupported_sockets().
Referenced by node_tree_blend_read_data(), and remove_unsupported_sockets().
| Set< StringRef > blender::bke::rename_attributes | ( | AttributeStorage & | storage, |
| const Map< StringRef, StringRef > & | name_map, | ||
| const bool | overwrite, | ||
| const Map< StringRef, AttrBuiltinInfo > & | builtin_attributes, | ||
| const Set< StringRef > & | array_storage_required, | ||
| const FunctionRef< int(AttrDomain)> | domain_size_fn, | ||
| std::optional< ListBaseT< bDeformGroup > * > | vertex_groups, | ||
| FunctionRef< MutableSpan< MDeformVert >()> | get_mutable_dverts ) |
Definition at line 286 of file attribute_storage_access.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_new(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), blender::blender::StringRefBase::copy_utf8_truncated(), ensure_array_storage(), find_attr_or_group(), Float, blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::is_empty(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_ptr(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_try(), Point, rename_attributes(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::reserve(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), storage, and try_delete_vertex_group().
Referenced by blender::bke::curves::get_curves_accessor_functions(), blender::bke::greasepencil::get_grease_pencil_accessor_functions(), get_instances_accessor_functions(), get_mesh_accessor_functions(), get_pointcloud_accessor_functions(), and rename_attributes().
|
static |
Definition at line 5539 of file node.cc.
References reset_socket_declarations().
Referenced by node_socket_declarations_update(), and reset_socket_declarations().
| Vector< AttributeTransferData > blender::bke::retrieve_attributes_for_transfer | ( | const AttributeAccessor | src_attributes, |
| MutableAttributeAccessor | dst_attributes, | ||
| Span< AttrDomain > | domains, | ||
| const AttributeFilter & | attribute_filter = {} ) |
Retrieve attribute arrays and writers for attributes that should be transferred between data-blocks of the same type.
Definition at line 656 of file attribute_access.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeFilter::allow_skip(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::GVArrayCommon::common_info(), blender::Span< T >::contains(), blender::CommonVArrayInfo::data, blender::bke::AttributeIter::data_type, blender::bke::AttributeIter::domain, blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), blender::bke::AttributeIter::name, retrieve_attributes_for_transfer(), blender::CommonVArrayInfo::Single, String, blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by blender::geometry::convert_curves_to_bezier(), blender::geometry::convert_curves_to_catmull_rom_or_poly(), blender::geometry::convert_curves_to_nurbs(), blender::nodes::node_geo_duplicate_elements_cc::copy_curve_attributes_without_id(), blender::ed::curves::copy_data_to_geometry(), blender::nodes::node_geo_duplicate_elements_cc::copy_edge_attributes_without_id(), blender::nodes::node_geo_duplicate_elements_cc::copy_face_attributes_without_id(), blender::ed::greasepencil::boolean::create_curves_from_segments(), blender::nodes::node_geo_duplicate_elements_cc::duplicate_points_CurvesGeometry(), blender::geometry::fillet_curves(), blender::geometry::mesh_triangulate(), retrieve_attributes_for_transfer(), blender::geometry::subdivide_curves(), and blender::geometry::trim_curves().
|
static |
Definition at line 1705 of file curves_geometry.cc.
References blender::data, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), and reverse_curve_point_data().
Referenced by reverse_curve_point_data().
|
static |
Definition at line 1695 of file curves_geometry.cc.
References blender::MutableSpan< T >::last(), blender::MutableSpan< T >::reverse(), and reverse_custom_knots().
Referenced by blender::bke::CurvesGeometry::reverse_curves(), and reverse_custom_knots().
|
static |
Definition at line 1716 of file curves_geometry.cc.
References b, blender::index_mask::IndexMask::foreach_index(), blender::exec_mode::grain_size(), blender::IndexRange::IndexRange(), reverse_swap_curve_point_data(), blender::IndexRange::size(), and blender::MutableSpan< T >::slice().
Referenced by blender::bke::CurvesGeometry::reverse_curves(), and reverse_swap_curve_point_data().
|
static |
Definition at line 1021 of file curves_geometry.cc.
References blender::MutableSpan< T >::index_range(), blender::math::is_zero(), blender::math::rotate_direction_around_axis(), and rotate_directions_around_axes().
Referenced by blender::bke::CurvesGeometry::evaluated_normals(), and rotate_directions_around_axes().
|
static |
Definition at line 483 of file mesh_remesh_voxel.cc.
References blender::bke::AttributeAccessor::adapt_domain(), blender::bke::MutableAttributeAccessor::add(), blender::GArray< Allocator >::as_span(), Corner, cpp_type_to_attribute_type(), blender::GVArray::from_span(), blender::bke::AttributeAccessor::lookup(), Point, blender::bke::mesh_surface_sample::sample_corner_attribute(), sample_corner_attributes(), blender::GArray< Allocator >::size(), blender::Span< T >::size(), and blender::GVArrayCommon::type().
Referenced by mesh_remesh_reproject_attributes(), and sample_corner_attributes().
|
static |
Definition at line 459 of file mesh_remesh_voxel.cc.
References cpp_type_to_attribute_type(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_only_span(), Point, blender::bke::mesh_surface_sample::sample_point_attribute(), sample_vertex_attributes(), blender::GMutableSpan::size(), blender::bke::GSpanAttributeWriter::span, and blender::GVArrayCommon::type().
Referenced by mesh_remesh_reproject_attributes(), and sample_vertex_attributes().
|
static |
Replace invalid curve types by poly curves.
Definition at line 319 of file curves_geometry.cc.
References blender::CURVE_TYPE_POLY, is_valid_curve_type(), and sanitize_curve_types().
Referenced by blender::bke::CurvesGeometry::blend_read(), and sanitize_curve_types().
|
static |
Definition at line 56 of file geometry_component_edit_data.cc.
References attribute, blender::data, blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr, and save_shared_attribute().
Referenced by remember_deformed_curve_positions_if_necessary(), remember_deformed_grease_pencil_if_necessary(), and save_shared_attribute().
Gets the scene based on the space/editor context.
In the video sequence editor, this returns the sequencer scene, otherwise it returns the active scene in the window.
Definition at line 16 of file scene_context.cc.
References C, blender::CTX_data_scene(), blender::CTX_data_sequencer_scene(), blender::CTX_wm_space_seq(), and scene_or_sequencer_scene_from_context().
Referenced by blender::ANIM_center_frame(), blender::anim_set_efra_exec(), blender::anim_set_sfra_exec(), blender::apply_frame_snap(), blender::change_frame_apply(), blender::delete_key_button_exec(), blender::delete_key_exec(), blender::delete_key_using_keying_set(), blender::ed_marker_add_exec(), blender::ed_marker_camera_bind_exec(), blender::ed_marker_move_apply(), blender::ed_marker_move_init(), blender::ed_marker_move_modal(), blender::ed_marker_move_update_header(), blender::ED_screen_scrubbing_enable(), blender::frame_from_event(), blender::frame_jump_exec(), blender::frame_offset_exec(), blender::insert_key(), blender::insert_key_button_exec(), blender::insert_key_exec(), blender::insert_key_menu_invoke(), blender::insert_key_with_keyingset(), blender::keyframe_insert_with_keyingset_exec(), blender::marker_jump_exec(), blender::previewrange_clear_exec(), blender::previewrange_define_exec(), scene_or_sequencer_scene_from_context(), blender::scene_range_frame_exec(), blender::start_playback(), and blender::use_playhead_snapping().
|
static |
Definition at line 27 of file curve_to_mesh_convert.cc.
References blender::bke::curves::segments_num(), and segments_num_no_duplicate_edge().
Referenced by fill_mesh_topology(), and segments_num_no_duplicate_edge().
|
static |
Definition at line 70 of file mesh_runtime.cc.
References blender::threading::memory_bandwidth_bound_task(), set_bools(), and blender::Span< T >::size().
Referenced by set_bools().
|
static |
Definition at line 238 of file mesh_data_update.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeInitShared::AttributeInitShared(), blender::bke::AttributeInitVArray::AttributeInitVArray(), blender::bke::AttributeAccessor::lookup(), Point, blender::bke::MutableAttributeAccessor::remove(), set_rest_position(), blender::bke::AttributeReader< T >::sharing_info, and blender::bke::AttributeReader< T >::varray.
Referenced by editbmesh_calc_modifiers(), mesh_calc_modifiers(), and set_rest_position().
Definition at line 539 of file instances.cc.
References position, and set_transform_position().
Referenced by set_transform_position().
|
static |
Definition at line 293 of file type_conversions.cc.
References blender::math::is_zero(), and short2_to_bool().
Referenced by short2_to_bool().
|
static |
Definition at line 333 of file type_conversions.cc.
References blender::color::encode(), short2_to_byte_color(), and short2_to_color().
Referenced by short2_to_byte_color().
|
static |
Definition at line 329 of file type_conversions.cc.
References short2_to_color().
Referenced by short2_to_byte_color(), and short2_to_color().
Definition at line 317 of file type_conversions.cc.
References float2_to_float(), and short2_to_float().
Referenced by short2_to_float().
Definition at line 297 of file type_conversions.cc.
References short2_to_float2().
Referenced by short2_to_float2().
Definition at line 321 of file type_conversions.cc.
References short2_to_float3().
Referenced by short2_to_float3().
Definition at line 325 of file type_conversions.cc.
References short2_to_float4().
Referenced by short2_to_float4().
|
static |
Definition at line 301 of file type_conversions.cc.
References blender::math::midpoint(), and short2_to_int().
Referenced by short2_to_int(), and short2_to_int8().
Definition at line 305 of file type_conversions.cc.
References short2_to_int2().
Referenced by short2_to_int2().
Definition at line 309 of file type_conversions.cc.
References short2_to_int3().
Referenced by short2_to_int3().
Definition at line 313 of file type_conversions.cc.
References int_to_int8(), short2_to_int(), and short2_to_int8().
Referenced by short2_to_int8().
|
static |
Definition at line 428 of file curve_to_mesh_convert.cc.
References blender::bke::AttributeFilter::allow_skip(), blender::bke::AttributeMetaData::data_type, ELEM, blender::bke::AttributeAccessor::is_builtin(), should_add_attribute_to_mesh(), and String.
Referenced by curve_to_mesh_sweep(), and should_add_attribute_to_mesh().
|
static |
Definition at line 5963 of file node.cc.
References blender::bke::bNodeSocketType::base_cpp_type, node_socket_type_find_static(), and slow_socket_type_to_geo_nodes_base_cpp_type().
Referenced by slow_socket_type_to_geo_nodes_base_cpp_type(), and socket_type_to_geo_nodes_base_cpp_type().
|
inline |
Definition at line 1058 of file BKE_node.hh.
References blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, and socket_data_to_static_type().
Referenced by blender::bke::node_interface::socket_types::socket_data_to_static_type(), socket_data_to_static_type(), socket_value_copy(), socket_value_copy_content(), socket_value_free(), socket_value_get_id_ptr(), socket_value_init(), and socket_value_new().
| std::optional< eCustomDataType > blender::bke::socket_type_to_custom_data_type | ( | eNodeSocketDatatype | type | ) |
Definition at line 5911 of file node.cc.
References blender::CD_PROP_BOOL, blender::CD_PROP_COLOR, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT3, blender::CD_PROP_FLOAT4X4, blender::CD_PROP_INT32, blender::CD_PROP_QUATERNION, blender::CD_PROP_STRING, blender::SOCK_BOOLEAN, blender::SOCK_FLOAT, blender::SOCK_INT, blender::SOCK_MATRIX, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_STRING, blender::SOCK_VECTOR, and socket_type_to_custom_data_type().
Referenced by blender::nodes::CaptureAttributeItemsAccessor::init_with_socket_type_and_name(), blender::nodes::RaycastSampleAttributeItemsAccessor::init_with_socket_type_and_name(), node_blend_write_storage(), blender::nodes::node_geo_blur_attribute_cc::node_gather_link_searches(), blender::nodes::node_geo_curve_sample_cc::node_gather_link_searches(), blender::nodes::node_geo_evaluate_at_index_cc::node_gather_link_searches(), blender::nodes::node_geo_evaluate_on_domain_cc::node_gather_link_searches(), blender::nodes::node_geo_input_named_attribute_cc::node_gather_link_searches(), blender::nodes::node_geo_raycast_cc::node_gather_link_searches(), blender::nodes::node_geo_sample_index_cc::node_gather_link_searches(), blender::nodes::node_geo_sample_nearest_surface_cc::node_gather_link_searches(), blender::nodes::node_geo_sample_uv_surface_cc::node_gather_link_searches(), blender::nodes::node_geo_store_named_attribute_cc::node_gather_link_searches(), node_is_dangling_reroute(), socket_type_to_custom_data_type(), and blender::nodes::CaptureAttributeItemsAccessor::supports_socket_type().
| const CPPType * blender::bke::socket_type_to_geo_nodes_base_cpp_type | ( | eNodeSocketDatatype | type | ) |
Definition at line 5969 of file node.cc.
References blender::BLI_assert(), blender::CPPType::get(), slow_socket_type_to_geo_nodes_base_cpp_type(), blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_FLOAT, blender::SOCK_INT, blender::SOCK_MATRIX, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_VECTOR, and socket_type_to_geo_nodes_base_cpp_type().
Referenced by blender::nodes::node_fn_format_string_cc::FormatStringMultiFunction::FormatStringMultiFunction(), blender::nodes::node_geo_list_get_item_cc::get_single_item(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_main_items_and_geometry(), blender::nodes::node_geo_closure_to_list_cc::node_geo_exec(), blender::nodes::node_geo_combine_list_cc::node_geo_exec(), blender::nodes::node_geo_field_to_list_cc::node_geo_exec(), blender::nodes::node_geo_grid_info_cc::node_geo_exec(), blender::nodes::node_geo_grid_to_points_cc::node_geo_exec(), blender::nodes::node_geo_sample_index_cc::node_geo_exec(), node_is_dangling_reroute(), blender::nodes::LazyFunctionForForeachGeometryElementZone::prepare_components(), and socket_type_to_geo_nodes_base_cpp_type().
| std::optional< VolumeGridType > blender::bke::socket_type_to_grid_type | ( | eNodeSocketDatatype | type | ) |
Definition at line 6080 of file node.cc.
References blender::SOCK_BOOLEAN, blender::SOCK_FLOAT, blender::SOCK_INT, blender::SOCK_VECTOR, socket_type_to_grid_type(), blender::VOLUME_GRID_BOOLEAN, blender::VOLUME_GRID_FLOAT, blender::VOLUME_GRID_INT, and blender::VOLUME_GRID_VECTOR_FLOAT.
Referenced by blender::nodes::node_geo_get_named_grid_cc::node_geo_exec(), blender::nodes::node_geo_grid_topology_boolean::node_geo_exec(), node_is_dangling_reroute(), blender::nodes::node_geo_store_named_grid_cc::search_link_ops(), and socket_type_to_grid_type().
| void * blender::bke::socket_value_copy | ( | eNodeSocketDatatype | type, |
| const void * | src, | ||
| bool | do_id_user ) |
Copy a socket value struct with optional user counting.
Definition at line 3285 of file node.cc.
References blender::result, socket_data_to_static_type(), socket_value_copy(), socket_value_id_user_increment(), and T.
Referenced by node_socket_copy(), blender::bke::node_interface::socket_types::socket_data_copy(), blender::bke::node_interface::socket_types::socket_data_copy_ptr(), socket_value_copy(), and blender::standard_node_socket_interface_init_socket().
| void blender::bke::socket_value_copy_content | ( | eNodeSocketDatatype | type, |
| void * | dst, | ||
| const void * | src, | ||
| bool | do_id_user ) |
Copy a socket value in an existing buffer with optional user counting
Definition at line 3312 of file node.cc.
References blender::blender::ImplicitSharingInfo::add_user(), socket_data_to_static_type(), socket_value_copy_content(), socket_value_id_user_decrement(), socket_value_id_user_increment(), and T.
Referenced by blender::bke::node_interface::create_proxy_const_input_node(), blender::bke::node_interface::create_proxy_converter_node(), blender::ed::space_node::node_socket_add_replace(), and socket_value_copy_content().
| void blender::bke::socket_value_free | ( | eNodeSocketDatatype | type, |
| void * | data, | ||
| bool | do_id_user ) |
Free a socket value with optional user counting.
Definition at line 3347 of file node.cc.
References blender::data, socket_data_to_static_type(), socket_value_free(), socket_value_id_user_decrement(), and T.
Referenced by node_socket_free_default_value(), blender::bke::node_interface::socket_types::socket_data_free(), and socket_value_free().
|
static |
Definition at line 3130 of file node.cc.
References blender::data, blender::is_same_any_v, socket_data_to_static_type(), socket_value_get_id_ptr(), and T.
Referenced by socket_value_get_id_ptr(), socket_value_id_user_decrement(), and socket_value_id_user_increment().
| void blender::bke::socket_value_id_user_decrement | ( | eNodeSocketDatatype | type, |
| void * | data ) |
Definition at line 3160 of file node.cc.
References blender::data, blender::id_us_min(), socket_value_get_id_ptr(), and socket_value_id_user_decrement().
Referenced by node_remove_node(), socket_value_copy_content(), socket_value_free(), and socket_value_id_user_decrement().
| void blender::bke::socket_value_id_user_increment | ( | eNodeSocketDatatype | type, |
| void * | data ) |
Definition at line 3152 of file node.cc.
References blender::data, blender::id_us_plus(), socket_value_get_id_ptr(), and socket_value_id_user_increment().
Referenced by socket_value_copy(), socket_value_copy_content(), and socket_value_id_user_increment().
| void blender::bke::socket_value_init | ( | eNodeSocketDatatype | type, |
| void * | data, | ||
| int | subtype = 0 ) |
Initialize an already-allocated #bNodeSocketValue*.
Definition at line 3265 of file node.cc.
References blender::data, socket_data_to_static_type(), socket_value_init(), socket_value_init_impl(), and T.
Referenced by socket_value_init().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueBoolean & | data, |
| const int | ) |
Definition at line 3184 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueCollection & | data, |
| const int | ) |
Definition at line 3226 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueFloat & | data, |
| const int | subtype ) |
Definition at line 3170 of file node.cc.
References blender::data, FLT_MAX, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueFont & | data, |
| const int | ) |
Definition at line 3238 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueImage & | data, |
| const int | ) |
Definition at line 3222 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueInt & | data, |
| const int | subtype ) |
Definition at line 3177 of file node.cc.
References blender::data, INT_MAX, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueIntVector & | data, |
| const int | subtype ) |
Definition at line 3200 of file node.cc.
References blender::data, INT_MAX, socket_value_init_impl(), and blender::zero_v3_int().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueMask & | data, |
| const int | ) |
Definition at line 3250 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueMaterial & | data, |
| const int | ) |
Definition at line 3234 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueMenu & | data, |
| const int | ) |
Definition at line 3258 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueObject & | data, |
| const int | ) |
Definition at line 3218 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueRGBA & | data, |
| const int | ) |
Definition at line 3208 of file node.cc.
References blender::copy_v4_v4(), blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueRotation & | , |
| const int | ) |
Definition at line 3188 of file node.cc.
References socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueScene & | data, |
| const int | ) |
Definition at line 3242 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueSound & | data, |
| const int | ) |
Definition at line 3254 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueString & | data, |
| const int | subtype ) |
Definition at line 3213 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueText & | data, |
| const int | ) |
Definition at line 3246 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueTexture & | data, |
| const int | ) |
Definition at line 3230 of file node.cc.
References blender::data, and socket_value_init_impl().
| void blender::bke::socket_value_init_impl | ( | bNodeSocketValueVector & | data, |
| const int | subtype ) |
Definition at line 3191 of file node.cc.
References blender::copy_v3_v3(), blender::data, FLT_MAX, and socket_value_init_impl().
Definition at line 3168 of file node.cc.
References socket_value_init_impl(), and T.
Referenced by socket_value_init(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), socket_value_init_impl(), and socket_value_new().
| void * blender::bke::socket_value_new | ( | eNodeSocketDatatype | type, |
| int | subtype = 0 ) |
Create a new socket value. Returns null if the socket type does not have a value.
Definition at line 3274 of file node.cc.
References blender::data, blender::result, socket_data_to_static_type(), socket_value_init_impl(), socket_value_new(), and T.
Referenced by blender::bke::node_interface::socket_types::make_socket_data(), node_socket_set_typeinfo(), socket_value_new(), and blender::version_node_add_socket().
|
staticnodiscard |
Type of value storage related with socket is the same.
| socket | Node can have multiple sockets & storage pairs. |
Definition at line 4421 of file node.cc.
References blender::NodeInputColor::color, blender::copy_v3_v3(), blender::copy_v4_v4(), FN_NODE_INPUT_BOOL, FN_NODE_INPUT_COLOR, FN_NODE_INPUT_INT, FN_NODE_INPUT_ROTATION, FN_NODE_INPUT_STRING, FN_NODE_INPUT_VECTOR, GEO_NODE_IMAGE, GEO_NODE_INPUT_COLLECTION, GEO_NODE_INPUT_MATERIAL, GEO_NODE_INPUT_OBJECT, node, blender::NodeInputRotation::rotation_euler, SH_NODE_VALUE, store_socket_value(), blender::math::to_euler(), blender::bNodeSocketValueRGBA::value, and blender::NodeInputVector::vector.
Referenced by node_socket_move_default_value(), and store_socket_value().
|
static |
Definition at line 15 of file instances_attributes.cc.
References tag_component_reference_index_changed(), and blender::bke::Instances::tag_reference_handles_changed().
Referenced by changed_tags(), and tag_component_reference_index_changed().
|
static |
Definition at line 672 of file mesh_attributes.cc.
References tag_custom_normals_changed().
Referenced by changed_tags(), and tag_custom_normals_changed().
|
static |
Definition at line 660 of file mesh_attributes.cc.
References tag_material_index_changed().
Referenced by changed_tags(), and tag_material_index_changed().
|
static |
Definition at line 18 of file pointcloud_attributes.cc.
References tag_position_changed().
Referenced by changed_tags(), and tag_position_changed().
|
static |
Definition at line 648 of file mesh_attributes.cc.
References tag_positions_changed().
Referenced by changed_tags(), and tag_positions_changed().
|
static |
Definition at line 24 of file pointcloud_attributes.cc.
References tag_radius_changed().
Referenced by changed_tags(), and tag_radius_changed().
|
static |
Definition at line 654 of file mesh_attributes.cc.
References tag_sharpness_changed().
Referenced by changed_tags(), and tag_sharpness_changed().
|
static |
Definition at line 666 of file mesh_attributes.cc.
References tag_visibility_changed().
Referenced by changed_tags(), and tag_visibility_changed().
|
static |
Definition at line 63 of file blender_project_config.cc.
References toml_type_name().
Referenced by blender::bke::TomlProjectVariable::from_toml(), and toml_type_name().
| void blender::bke::transform_custom_normal_attribute | ( | const float4x4 & | transform, |
| MutableAttributeAccessor & | attributes ) |
Apply a transform to the "custom_normal" attribute.
Definition at line 984 of file attribute_access.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeInitShared::AttributeInitShared(), blender::Default, blender::bke::GAttributeReader::domain, blender::bke::SpanAttributeWriter< T >::finish(), blender::CPPType::is(), blender::ImplicitSharingInfo::is_mutable(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), PRF_scope, blender::bke::MutableAttributeAccessor::remove(), blender::bke::GAttributeReader::sharing_info, blender::GVArrayCommon::size(), blender::bke::SpanAttributeWriter< T >::span, transform_custom_normal_attribute(), blender::math::transform_normals(), blender::GVArrayCommon::type(), blender::GVArray::typed(), blender::bke::GAttributeReader::varray, and blender::VArraySpan< T >::VArraySpan().
Referenced by mesh_transform(), blender::bke::CurvesGeometry::transform(), and transform_custom_normal_attribute().
|
static |
Definition at line 1322 of file curves_geometry.cc.
References blender::MutableSpan< T >::index_range(), blender::threading::parallel_for(), and translate_positions().
Referenced by mesh_translate(), blender::bke::CurvesGeometry::translate(), and translate_positions().
|
static |
Definition at line 2054 of file blenkernel/intern/mesh.cc.
References blender::MutableSpan< T >::index_range(), blender::threading::parallel_for(), and translate_positions().
Definition at line 347 of file attribute_access.cc.
References get_implicit_type_conversions(), to_type(), try_adapt_data_type(), and blender::bke::DataTypeConversions::try_convert().
Referenced by adapt_domain_and_type_if_necessary(), and try_adapt_data_type().
|
static |
Some fields reference attributes directly. When the referenced attribute has the requested type and domain, use implicit sharing to avoid duplication when creating the captured attribute.
Definition at line 926 of file geometry_fields.cc.
References blender::bke::MutableAttributeAccessor::add_override(), attribute, attribute_kind_matches(), blender::fn::GField::cpp_type(), cpp_type_to_attribute_type(), blender::bke::subdiv::init(), blender::bke::AttributeAccessor::lookup(), blender::bke::AttributeAccessor::lookup_meta_data(), try_add_shared_field_attribute(), and try_get_field_direct_attribute_id().
Referenced by try_add_shared_field_attribute(), and try_capture_fields_on_geometry().
|
static |
Definition at line 694 of file attribute_access.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::bke::AttributeInitValue::AttributeInitValue(), blender::GVArrayCommon::common_info(), blender::CommonVArrayInfo::data, blender::CommonVArrayInfo::Single, try_add_single_value_attribute(), blender::CommonVArrayInfo::type, and blender::GVArrayCommon::type().
Referenced by copy_attributes_group_to_group(), gather_attributes(), gather_attributes(), gather_attributes_group_to_group(), gather_attributes_to_groups(), and try_add_single_value_attribute().
|
static |
Definition at line 966 of file geometry_fields.cc.
References blender::bke::MutableAttributeAccessor::assign_data(), blender::bke::AttributeInitValue::AttributeInitValue(), and try_assign_single_value().
Referenced by try_assign_single_value(), and try_capture_fields_on_geometry().
|
inline |
Definition at line 557 of file BKE_geometry_fields.hh.
References try_capture_field_on_geometry(), and try_capture_fields_on_geometry().
|
inline |
Definition at line 543 of file BKE_geometry_fields.hh.
References try_capture_field_on_geometry(), and try_capture_fields_on_geometry().
|
inline |
Definition at line 527 of file BKE_geometry_fields.hh.
References try_capture_field_on_geometry(), and try_capture_fields_on_geometry().
Referenced by blender::nodes::LazyFunctionForReduceForeachGeometryElement::handle_generation_items_group(), blender::nodes::node_geo_viewer_cc::log_viewer_attribute(), blender::nodes::node_geo_set_instance_transform_cc::node_geo_exec(), blender::nodes::node_geo_set_material_index_cc::node_geo_exec(), blender::nodes::node_geo_set_mesh_normal_cc::node_geo_exec(), blender::nodes::node_geo_set_nurbs_order_cc::node_geo_exec(), blender::nodes::node_geo_set_nurbs_weight_cc::node_geo_exec(), blender::nodes::node_geo_set_point_radius_cc::node_geo_exec(), blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec(), blender::nodes::node_geo_tool_set_face_set_cc::node_geo_exec(), blender::nodes::node_geo_tool_set_selection_cc::node_geo_exec(), blender::nodes::node_geo_set_spline_cyclic_cc::set_curve_cyclic(), blender::nodes::node_geo_set_curve_normal_cc::set_curve_normal(), blender::nodes::node_geo_set_spline_resolution_cc::set_curve_resolution(), blender::nodes::node_geo_set_curve_tilt_cc::set_curve_tilt(), blender::nodes::node_geo_set_nurbs_order_cc::set_grease_pencil_order(), blender::nodes::node_geo_set_id_cc::set_id_in_component(), blender::nodes::node_geo_set_material_index_cc::set_material_index_in_grease_pencil(), blender::nodes::node_geo_set_position_cc::set_points_position(), blender::nodes::node_geo_set_curve_radius_cc::set_radius(), blender::nodes::node_geo_set_shade_smooth_cc::set_sharp(), try_capture_field_on_geometry(), try_capture_field_on_geometry(), and try_capture_field_on_geometry().
| bool blender::bke::try_capture_fields_on_geometry | ( | GeometryComponent & | component, |
| Span< StringRef > | names, | ||
| AttrDomain | domain, | ||
| const fn::Field< bool > & | selection, | ||
| Span< fn::GField > | fields ) |
Definition at line 1144 of file geometry_fields.cc.
References Curve, ELEM, blender::bke::GeometryComponent::GreasePencil, blender::threading::parallel_for(), Point, try_capture_fields_on_geometry(), and blender::bke::GeometryComponent::type().
| bool blender::bke::try_capture_fields_on_geometry | ( | GeometryComponent & | component, |
| Span< StringRef > | names, | ||
| AttrDomain | domain, | ||
| Span< fn::GField > | fields ) |
Definition at line 1193 of file geometry_fields.cc.
References try_capture_fields_on_geometry().
| bool blender::bke::try_capture_fields_on_geometry | ( | MutableAttributeAccessor | attributes, |
| const fn::FieldContext & | field_context, | ||
| Span< StringRef > | names, | ||
| AttrDomain | domain, | ||
| const fn::Field< bool > & | selection, | ||
| Span< fn::GField > | fields ) |
Definition at line 998 of file geometry_fields.cc.
References blender::bke::MutableAttributeAccessor::add(), blender::fn::FieldEvaluator::add(), blender::fn::FieldEvaluator::add_with_destination(), blender::ResourceScope::allocate_owned(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), attribute_data_matches_varray(), blender::BLI_assert(), blender::GVArrayCommon::common_info(), blender::array_utils::copy(), blender::fn::GField::cpp_type(), cpp_type_to_attribute_type(), array< T, alignment >::data(), blender::CommonVArrayInfo::data, blender::data, blender::fn::Field< T >::depends_on_input(), blender::fn::GField::depends_on_input(), blender::bke::AttributeAccessor::domain_size(), blender::fn::FieldEvaluator::evaluate(), blender::fn::evaluate_constant_field(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeAccessor::get_builtin_domain_and_type(), blender::fn::FieldEvaluator::get_evaluated(), blender::fn::FieldEvaluator::get_evaluated_selection_as_mask(), blender::GPointer::GPointer(), blender::ImplicitSharingPtr< T, IsStrong >::ImplicitSharingPtr, blender::Span< T >::index_range(), blender::bke::subdiv::init(), initialize_new_data(), blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeAccessor::lookup_validator(), blender::bke::MutableAttributeAccessor::remove(), blender::result, blender::fn::FieldEvaluator::set_selection(), Single, blender::CommonVArrayInfo::Single, blender::Span< T >::size(), blender::bke::GSpanAttributeWriter::span, try_add_shared_field_attribute(), try_assign_single_value(), try_capture_fields_on_geometry(), blender::CommonVArrayInfo::type, blender::GVArrayCommon::type(), and blender::bke::AttributeValidator::validate_field_if_necessary().
Referenced by blender::nodes::node_geo_attribute_capture_cc::node_geo_exec(), blender::nodes::node_geo_set_grease_pencil_softness_cc::node_geo_exec(), blender::nodes::node_geo_set_position_cc::set_curves_position(), blender::nodes::node_geo_set_grease_pencil_color_cc::set_grease_pencil_color(), try_capture_field_on_geometry(), try_capture_field_on_geometry(), try_capture_field_on_geometry(), try_capture_fields_on_geometry(), try_capture_fields_on_geometry(), and try_capture_fields_on_geometry().
| bool blender::bke::try_delete_vertex_group | ( | ListBaseT< bDeformGroup > & | vertex_groups, |
| const StringRef | name, | ||
| FunctionRef< MutableSpan< MDeformVert >()> | get_mutable_dverts ) |
Definition at line 225 of file attribute_storage_access.cc.
References blender::BKE_defgroup_listbase_name_find(), blender::BLI_remlink(), blender::MutableSpan< T >::is_empty(), remove_defgroup_index(), and try_delete_vertex_group().
Referenced by blender::bke::curves::get_curves_accessor_functions(), get_mesh_accessor_functions(), rename_attributes(), and try_delete_vertex_group().
| std::optional< AttrDomain > blender::bke::try_detect_field_domain | ( | const GeometryComponent & | component, |
| const fn::GField & | field ) |
Try to find the geometry domain that the field should be evaluated on. If it is not obvious which domain is correct, none is returned.
Definition at line 1242 of file geometry_fields.cc.
References blender::bke::GeometryComponent::Curve, blender::fn::GField::field_inputs(), blender::bke::CurveComponent::get(), blender::bke::MeshComponent::get(), blender::bke::GeometryComponent::GreasePencil, Instance, blender::bke::GeometryComponent::Instance, Layer, blender::bke::GeometryComponent::Mesh, Point, blender::bke::GeometryComponent::PointCloud, try_detect_field_domain(), and blender::bke::GeometryComponent::type().
Referenced by blender::nodes::node_geo_viewer_cc::log_viewer_attribute(), blender::nodes::node_geo_blur_attribute_cc::BlurAttributeFieldInput::preferred_domain(), blender::nodes::node_geo_cluster_by_distance_cc::ClusterByDistanceFieldInput::preferred_domain(), blender::nodes::node_geo_index_of_nearest_cc::HasNeighborFieldInput::preferred_domain(), blender::nodes::node_geo_index_of_nearest_cc::IndexOfNearestFieldInput::preferred_domain(), and try_detect_field_domain().
| std::optional< AttrDomain > blender::bke::try_detect_native_field_domain | ( | const GeometryComponent & | component, |
| const fn::GField & | field ) |
Try to detect the domain that the field's inputs represent. If any field may depend on the order of the domain, none is returned, and if the fields will give the same value regardless of the domain, none is also returned.
Definition at line 1202 of file geometry_fields.cc.
References blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::fn::GField::field_inputs(), blender::bke::GeometryComponent::Mesh, blender::VectorSet< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::size(), try_detect_native_field_domain(), blender::bke::GeometryComponent::type(), and blender::bke::NativeFieldDomain::variant.
Referenced by blender::bke::mesh_surface_sample::BaryWeightSampleFn::prepare_for_execution(), and try_detect_native_field_domain().
|
static |
Definition at line 653 of file curve_to_mesh_convert.cc.
References blender::GVArrayCommon::get_internal_span(), blender::GVArrayCommon::is_span(), main, blender::GMutableSpan::size(), try_direct_evaluate_point_data(), and blender::bke::GAttributeReader::varray.
Referenced by copy_main_point_domain_attribute_to_mesh(), and try_direct_evaluate_point_data().
|
static |
Definition at line 907 of file geometry_fields.cc.
References blender::fn::GField::get_input_if(), and try_get_field_direct_attribute_id().
Referenced by try_add_shared_field_attribute(), and try_get_field_direct_attribute_id().
|
static |
Definition at line 263 of file geometry_fields.cc.
References blender::bke::GeometryFieldContext::GeometryFieldContext(), and try_get_geometry_field_context().
Referenced by blender::bke::GeometryFieldInput::get_varray_for_context(), and try_get_geometry_field_context().
|
static |
Definition at line 727 of file mesh_attributes.cc.
References blender::BKE_defgroup_name_index(), reader_for_vertex_group_index(), and try_get_vertex_group().
Referenced by get_mesh_accessor_functions(), and try_get_vertex_group().
|
static |
Definition at line 741 of file mesh_attributes.cc.
References blender::BKE_defgroup_name_index(), Point, try_get_vertex_group_for_write(), and varray_for_mutable_deform_verts().
Referenced by get_mesh_accessor_functions(), and try_get_vertex_group_for_write().
|
static |
Definition at line 635 of file curve_to_mesh_convert.cc.
References blender::bke::MutableAttributeAccessor::add(), cpp_type_to_attribute_type(), blender::GSpan::data(), blender::bke::AttributeAccessor::domain_size(), blender::GVArrayCommon::get_internal_span(), blender::GVArrayCommon::is_span(), main, Point, blender::bke::GAttributeReader::sharing_info, try_sharing_point_data(), blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by copy_main_point_domain_attribute_to_mesh(), and try_sharing_point_data().
|
static |
If there are no loose edges and no loose vertices, all vertices are used by faces.
Definition at line 84 of file mesh_runtime.cc.
References blender::bke::LooseGeomCache::allocator, blender::bke::LooseGeomCache::mask, try_tag_verts_no_face_none(), and blender::LinearAllocator< Allocator >::~LinearAllocator().
Referenced by try_tag_verts_no_face_none().
|
static |
Definition at line 6112 of file node.cc.
References blender::BLI_uniquename_cb(), blender::bke::bNodeSocketTemplate::identifier, and unique_socket_template_identifier().
Referenced by node_type_socket_templates(), and unique_socket_template_identifier().
|
static |
Definition at line 5529 of file node.cc.
References update_socket_declarations().
Referenced by node_socket_declarations_update(), and update_socket_declarations().
|
static |
Definition at line 2711 of file node.cc.
References FOREACH_NODETREE_BEGIN, FOREACH_NODETREE_END, blender::bke::bNodeSocketType::idname, blender::bke::bNodeTreeType::idname, blender::bke::bNodeType::idname, blender::bNodeSocket::idname, node, node_set_typeinfo(), node_socket_set_typeinfo(), ntree_set_typeinfo(), and update_typeinfo().
Referenced by node_free_socket_type(), node_free_type(), node_register_socket_type(), node_register_type(), node_tree_type_add(), ntree_free_type(), and update_typeinfo().
|
static |
Definition at line 199 of file node_tree_zones.cc.
References blender::BLI_assert(), blender::bke::bNodeTreeZone::contains_zone_recursively(), blender::bke::bNodeTreeZones::get_zone_by_socket(), blender::bke::bNodeTreeZone::parent_zone, and update_zone_border_links().
Referenced by discover_tree_zones(), and update_zone_border_links().
|
static |
Definition at line 21 of file node_tree_zones.cc.
References blender::bke::bNodeTreeZone::depth, blender::bke::bNodeTreeZone::parent_zone, and update_zone_depths().
Referenced by discover_tree_zones(), and update_zone_depths().
|
static |
Definition at line 144 of file node_tree_zones.cc.
References blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_overwrite(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains(), ELEM, blender::bits::foreach_1_index(), blender::bke::bNodeTreeZone::index, blender::Span< T >::index_range(), blender::bke::bNodeTreeZone::input_node(), blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items(), node, blender::bke::bNodeTreeZone::output_node(), blender::bke::bNodeTreeZone::parent_zone, and update_zone_per_node().
Referenced by discover_tree_zones(), and update_zone_per_node().
|
static |
Definition at line 785 of file mesh_validate.cc.
References blender::blender::Span< T >::cast(), blender::bke::SpanAttributeWriter< T >::finish(), blender::IndexMask::from_predicate(), blender::bke::AttributeIter::get(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::index_mask::masked_fill(), blender::bke::AttributeIter::name, print_error_with_indices(), blender::bke::SpanAttributeWriter< T >::span, and validate_bool_attribute().
Referenced by validate_bool_attribute(), and validate_generic_attributes().
|
static |
Definition at line 758 of file mesh_validate.cc.
References blender::GMutableSpan::data(), blender::GSpan::data(), blender::CPPType::default_value(), blender::CPPType::fill_assign_indices(), blender::bke::GSpanAttributeWriter::finish(), blender::bke::AttributeIter::get(), get_invalid_float_mask(), blender::index_mask::IndexMask::is_empty(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::bke::AttributeIter::name, print_error_with_indices(), blender::GSpan::size_in_bytes(), blender::bke::GSpanAttributeWriter::span, blender::GMutableSpan::type(), and validate_float_attribute().
Referenced by validate_float_attribute(), and validate_generic_attributes().
|
static |
Definition at line 810 of file mesh_validate.cc.
References Bool, ColorByte, ColorFloat, blender::bke::AttributeIter::data_type, Float, Float2, Float3, Float4, Float4x4, Int16_2D, Int32, Int32_2D, Int8, Quaternion, String, validate_bool_attribute(), validate_float_attribute(), and validate_generic_attributes().
Referenced by mesh_validate_impl(), and validate_generic_attributes().
|
static |
Definition at line 648 of file mesh_validate.cc.
References CLOG_ERROR, blender::IndexRange::contains(), blender::DEG_id_tag_update(), Face, blender::bke::SpanAttributeWriter< T >::finish(), blender::index_mask::IndexMask::foreach_index(), blender::IndexMask::from_predicate(), blender::VArrayCommon< T >::get_if_single(), blender::Mesh::id, blender::ID_RECALC_GEOMETRY_ALL_MODES, blender::VArrayCommon< T >::index_range(), blender::index_mask::IndexMask::is_empty(), blender::LOG, blender::bke::AttributeAccessor::lookup(), blender::bke::MutableAttributeAccessor::lookup_for_write_span(), blender::index_mask::masked_fill(), blender::bke::SpanAttributeWriter< T >::span, and validate_material_indices().
Referenced by mesh_validate_impl(), mesh_validate_material_indices(), and validate_material_indices().
|
static |
Definition at line 856 of file mesh_validate.cc.
References blender::CD_MDISPS, blender::CustomData_get_layer(), blender::IndexMask::from_predicate(), and validate_mdisps().
Referenced by mesh_validate_impl(), and validate_mdisps().
|
static |
Definition at line 694 of file mesh_validate.cc.
References blender::IndexMask::from_predicate(), blender::Span< T >::index_range(), and validate_selection_history().
Referenced by mesh_validate_impl(), and validate_selection_history().
|
static |
Definition at line 564 of file mesh_validate.cc.
References blender::Span< T >::index_range(), blender::Span< T >::is_empty(), blender::threading::parallel_for(), and validate_vertex_groups().
Referenced by mesh_validate_impl(), and validate_vertex_groups().
| VArray< float > blender::bke::varray_for_deform_verts | ( | Span< MDeformVert > | dverts, |
| int | defgroup_index ) |
Definition at line 1748 of file deform.cc.
References blender::VArray< T >::from(), and varray_for_deform_verts().
Referenced by blender::bke::curves::reader_for_vertex_group_index(), reader_for_vertex_group_index(), varray_for_deform_verts(), and blender::ed::greasepencil::weight_sample_invoke().
| VMutableArray< float > blender::bke::varray_for_mutable_deform_verts | ( | MutableSpan< MDeformVert > | dverts, |
| int | defgroup_index ) |
Definition at line 1752 of file deform.cc.
References blender::VMutableArray< T >::from(), and varray_for_mutable_deform_verts().
Referenced by blender::ed::greasepencil::add_armature_automatic_weights(), blender::ed::greasepencil::add_armature_envelope_weights(), blender::ed::greasepencil::grease_pencil_weight_invert_exec(), blender::bke::curves::try_get_vertex_group_for_write(), try_get_vertex_group_for_write(), and varray_for_mutable_deform_verts().
|
static |
Definition at line 610 of file armature_deform.cc.
References BLI_assert_unreachable, CLOG_ERROR, blender::Object::data, blender::bArmature::edbo, blender::bPose::flag, blender::Object::id, blender::LOG, blender::ID::name, blender::Object::pose, blender::POSE_RECALC, and verify_armature_deform_valid().
Referenced by blender::BKE_armature_deform_coords_with_curves(), blender::BKE_armature_deform_coords_with_editmesh(), blender::BKE_armature_deform_coords_with_mesh(), and verify_armature_deform_valid().
| std::optional< eCustomDataType > blender::bke::volume_grid_type_to_custom_data_type | ( | VolumeGridType | type | ) |
Definition at line 5072 of file customdata.cc.
References blender::CD_PROP_BOOL, blender::CD_PROP_FLOAT, blender::CD_PROP_FLOAT3, blender::CD_PROP_INT32, blender::VOLUME_GRID_BOOLEAN, blender::VOLUME_GRID_FLOAT, blender::VOLUME_GRID_INT, volume_grid_type_to_custom_data_type(), and blender::VOLUME_GRID_VECTOR_FLOAT.
Referenced by volume_grid_type_to_custom_data_type().
| void blender::bke::with_blender_project_read_lock | ( | FunctionRef< void()> | lambda | ) |
Run the given lambda with the global project mutex locked for reading.
NOTE: you should avoid using this function directly, except in RNA code where the project pointer is already directly provided. Prefer using BKE_blender_project_read_callback(), which fetches the appropriate project for a given Main.
Definition at line 358 of file blender_project.cc.
References blender::get_project_mutex(), lock, and with_blender_project_read_lock().
Referenced by blender::BKE_blender_project_read_callback(), and with_blender_project_read_lock().
| void blender::bke::with_blender_project_write_lock | ( | FunctionRef< void()> | lambda | ) |
Run the given lambda with the global project mutex locked for writing.
NOTE: you should avoid using this function directly, except in RNA code where the project pointer is already directly provided. Prefer using BKE_blender_project_write_callback(), which fetches the appropriate project for a given Main.
Definition at line 364 of file blender_project.cc.
References blender::get_project_mutex(), lock, and with_blender_project_write_lock().
Referenced by blender::BKE_blender_project_clear(), blender::BKE_blender_project_init(), blender::BKE_blender_project_write_callback(), and with_blender_project_write_lock().
|
static |
Definition at line 547 of file attribute_storage.cc.
References Bool, ColorByte, ColorFloat, blender::data, Float, Float2, Float3, Float4, Float4x4, Int16_2D, Int32, Int32_2D, Int8, Quaternion, String, write_array_data(), blender::BlendWriter::write_float3_array(), blender::BlendWriter::write_float_array(), blender::BlendWriter::write_int16_array(), blender::BlendWriter::write_int32_array(), blender::BlendWriter::write_int8_array(), blender::BlendWriter::write_struct_array_cast(), and blender::BlendWriter::write_uint8_array().
Referenced by write_array_data().
|
static |
Definition at line 314 of file blenkernel/intern/action.cc.
References blender::BKE_fcurve_blend_write_data(), blender::animrig::Channelbag::channel_groups(), blender::Span< T >::data(), blender::ActionChannelbag::fcurve_array, blender::ActionChannelbag::fcurve_array_num, blender::animrig::Channelbag::fcurves(), blender::ActionChannelbag::group_array, blender::ActionChannelbag::group_array_num, blender::BlendStructWriter< T >::shallow_data, blender::Span< T >::size(), write_channelbag(), blender::BlendWriter::write_pointer_array(), blender::BlendWriter::write_struct(), and blender::BlendWriter::write_struct_cast().
Referenced by write_channelbag(), and write_strip_keyframe_data().
|
static |
Definition at line 375 of file blenkernel/intern/action.cc.
References blender::Span< T >::data(), layer, blender::Span< T >::size(), write_layers(), blender::BlendWriter::write_pointer_array(), write_strips(), and blender::BlendWriter::write_struct_cast().
Referenced by action_blend_write(), and write_layers().
|
static |
Definition at line 1240 of file node.cc.
References blender::BLI_assert(), blender::bNodeSocket::default_attribute_name, blender::bNodeSocket::idname, blender::IDP_BlendWrite(), blender::BlendWriter::is_undo(), blender::bke::forward_compat::pixel_subtype_forward_compat(), blender::bNodeSocket::prop, blender::BlendStructWriter< T >::shallow_data, blender::bke::forward_compat::subtype_pixel_to_none(), write_node_socket(), write_node_socket_default_value(), and blender::BlendWriter::write_struct().
Referenced by node_tree_blend_write(), and write_node_socket().
|
static |
Definition at line 1161 of file node.cc.
References BLI_assert_unreachable, blender::bNodeSocket::default_value, blender::SOCK_BOOLEAN, blender::SOCK_BUNDLE, blender::SOCK_CLOSURE, blender::SOCK_COLLECTION, blender::SOCK_CUSTOM, blender::SOCK_FLOAT, blender::SOCK_FONT, blender::SOCK_GEOMETRY, blender::SOCK_IMAGE, blender::SOCK_INT, blender::SOCK_INT_VECTOR, blender::SOCK_MASK, blender::SOCK_MATERIAL, blender::SOCK_MATRIX, blender::SOCK_MENU, blender::SOCK_OBJECT, blender::SOCK_RGBA, blender::SOCK_ROTATION, blender::SOCK_SCENE, blender::SOCK_SHADER, blender::SOCK_SOUND, blender::SOCK_STRING, blender::SOCK_TEXT_ID, blender::SOCK_TEXTURE, blender::SOCK_VECTOR, blender::bNodeSocket::type, write_node_socket_default_value(), and blender::BlendWriter::write_struct_cast().
Referenced by write_node_socket(), and write_node_socket_default_value().
|
static |
Definition at line 658 of file attribute_storage.cc.
References attribute_type_to_cpp_type(), blender::data, blender::CPPType::size, blender::BlendWriter::write_shared(), and write_shared_array().
Referenced by blender::bke::AttributeStorage::blend_write(), and write_shared_array().
|
static |
Definition at line 855 of file curve_to_mesh_convert.cc.
References blender::bke::CurvesGeometry::bezier_evaluated_offsets_for_curve(), blender::BEZIER_HANDLE_VECTOR, blender::blender::Span< T >::contains(), blender::CURVE_TYPE_BEZIER, blender::bke::CurvesGeometry::curve_types(), Edge, blender::bke::CombinationInfo::edge_range, foreach_curve_combination(), blender::bke::CurvesGeometry::handle_types_left(), blender::bke::CurvesGeometry::handle_types_right(), blender::bke::CurvesGeometry::has_curve_with_type(), blender::bke::CombinationInfo::i_profile, blender::bke::MutableAttributeAccessor::lookup_or_add_for_write_span(), blender::bke::CombinationInfo::main_segment_num, mark_bezier_vector_edges_sharp(), blender::bke::CurvesGeometry::points_by_curve(), blender::bke::CurvesInfo::profile, blender::IndexRange::size(), blender::blender::Span< T >::slice(), blender::bke::SpanAttributeWriter< T >::span, and write_sharp_bezier_edges().
Referenced by curve_to_mesh_sweep(), and write_sharp_bezier_edges().
|
static |
Definition at line 385 of file blenkernel/intern/action.cc.
References blender::Span< T >::data(), blender::Span< T >::size(), blender::BlendWriter::write_pointer_array(), write_slots(), and blender::BlendWriter::write_struct_cast().
Referenced by action_blend_write(), and write_slots().
|
static |
Definition at line 343 of file blenkernel/intern/action.cc.
References blender::animrig::StripKeyframeData::channelbags(), write_channelbag(), blender::BlendWriter::write_pointer_array(), write_strip_keyframe_data(), and blender::BlendWriter::write_struct_cast().
Referenced by write_strip_keyframe_data(), and write_strip_keyframe_data_array().
|
static |
Definition at line 356 of file blenkernel/intern/action.cc.
References blender::Span< T >::data(), blender::Span< T >::size(), blender::BlendWriter::write_pointer_array(), write_strip_keyframe_data(), and write_strip_keyframe_data_array().
Referenced by action_blend_write(), and write_strip_keyframe_data_array().
|
static |
Definition at line 366 of file blenkernel/intern/action.cc.
References blender::Span< T >::data(), blender::Span< T >::size(), blender::BlendWriter::write_pointer_array(), write_strips(), and blender::BlendWriter::write_struct_cast().
Referenced by write_layers(), and write_strips().
| const bNodeZoneType * blender::bke::zone_type_by_node_type | ( | const int | node_type | ) |
Definition at line 575 of file node_tree_zones.cc.
References all_zone_types(), ELEM, and zone_type_by_node_type().
Referenced by blender::ed::space_node::calc_node_frame_dimensions(), blender::bke::node_structure_type_inferencing::find_auto_structure_type_sockets(), blender::nodes::find_origin_sockets_through_contexts(), blender::nodes::ClosureSignature::from_closure_output_node(), blender::nodes::socket_items::ops::get_active_node_to_operate_on(), blender::bke::node_tree_runtime::get_implicit_origin_nodes(), blender::bke::node_tree_runtime::get_implicit_target_nodes(), iter_backwards_ex(), blender::iter_shader_to_rgba_depth_count(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_zones_and_frames(), blender::nodes::node_geo_closure_cc::output_node::node_insert_link(), blender::ed::space_node::remap_node_pairing(), blender::ed::space_node::remap_pairing(), blender::nodes::sync_node(), and zone_type_by_node_type().
|
static |
Definition at line 736 of file blenkernel/intern/action.cc.
|
constexpr |
Definition at line 51 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::blend_read(), blender::bke::CurvesGeometry::curve_types(), and blender::bke::CurvesGeometry::curve_types_for_write().
|
constexpr |
Definition at line 52 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::cyclic(), and blender::bke::CurvesGeometry::cyclic_for_write().
|
constexpr |
Definition at line 57 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::handle_positions_left(), blender::bke::CurvesGeometry::handle_positions_left_for_write(), blender::bke::CurvesGeometry::remove_attributes_based_on_types(), and blender::bke::CurvesGeometry::reverse_curves().
|
constexpr |
Definition at line 58 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::handle_positions_right(), blender::bke::CurvesGeometry::handle_positions_right_for_write(), blender::bke::CurvesGeometry::remove_attributes_based_on_types(), and blender::bke::CurvesGeometry::reverse_curves().
|
constexpr |
|
constexpr |
|
constexpr |
Definition at line 54 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::normal_mode(), and blender::bke::CurvesGeometry::normal_mode_for_write().
|
constexpr |
Definition at line 61 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::nurbs_knots_modes(), blender::bke::CurvesGeometry::nurbs_knots_modes_for_write(), and blender::bke::CurvesGeometry::remove_attributes_based_on_types().
|
constexpr |
Definition at line 59 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::nurbs_orders(), blender::bke::CurvesGeometry::nurbs_orders_for_write(), and blender::bke::CurvesGeometry::remove_attributes_based_on_types().
|
constexpr |
Definition at line 60 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::nurbs_weights(), blender::bke::CurvesGeometry::nurbs_weights_for_write(), and blender::bke::CurvesGeometry::remove_attributes_based_on_types().
|
constexpr |
Definition at line 48 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::positions(), and blender::bke::CurvesGeometry::positions_for_write().
|
constexpr |
Definition at line 49 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::radius(), and blender::bke::CurvesGeometry::radius_for_write().
|
constexpr |
Definition at line 53 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::remove_attributes_based_on_types(), blender::bke::CurvesGeometry::resolution(), and blender::bke::CurvesGeometry::resolution_for_write().
|
constexpr |
Definition at line 62 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::surface_uv_coords(), and blender::bke::CurvesGeometry::surface_uv_coords_for_write().
|
constexpr |
Definition at line 50 of file curves_geometry.cc.
Referenced by blender::bke::CurvesGeometry::tilt(), and blender::bke::CurvesGeometry::tilt_for_write().
|
inlineconstexpr |
Definition at line 130 of file BKE_geometry_set.hh.
Referenced by blender::bke::GeometrySet::get_component(), blender::bke::GeometrySet::get_component_for_write(), blender::bke::GeometrySet::has(), blender::bke::GeometrySet::has_component(), and blender::bke::GeometrySet::remove().
| const char * blender::bke::no_procedural_access_message |
Definition at line 211 of file attribute_access.cc.
Referenced by blender::nodes::node_geo_input_named_attribute_cc::node_geo_exec(), and blender::nodes::node_geo_store_named_attribute_cc::node_geo_exec().
| const bNodeInstanceKey blender::bke::NODE_INSTANCE_KEY_BASE = {5381} |
Magic number for initial hash key.
Definition at line 5600 of file node.cc.
Referenced by blender::bke::compositor::compute_viewer_compute_context(), blender::bke::compositor::compute_viewer_compute_context(), blender::ED_node_tree_push(), blender::ED_node_tree_start(), blender::ntreeShaderBeginExecTree(), and blender::ntreeTexBeginExecTree().
| const bNodeInstanceKey blender::bke::NODE_INSTANCE_KEY_NONE = {0} |
Definition at line 5601 of file node.cc.
Referenced by blender::ed::space_node::draw_nodespace_back_pix(), and blender::ed::space_node::node_draw_space().
| bNodeSocketType blender::bke::NodeSocketTypeUndefined |
Definition at line 135 of file node.cc.
Referenced by blender::ED_node_init_butfuncs(), blender::compositor::get_node_interface_socket_result_type(), blender::compositor::get_node_socket_result_type(), node_is_dangling_reroute(), node_socket_is_registered(), node_socket_set_typeinfo(), blender::register_undefined_types(), and blender::bke::node_tree_runtime::update_socket_vectors_and_owner_node().
| bNodeTreeType blender::bke::NodeTreeTypeUndefined |
Definition at line 133 of file node.cc.
Referenced by node_is_dangling_reroute(), node_tree_is_registered(), ntree_set_typeinfo(), and blender::register_undefined_types().
| bNodeType blender::bke::NodeTypeUndefined |
Definition at line 134 of file node.cc.
Referenced by blender::ED_node_init_butfuncs(), node_init(), node_is_dangling_reroute(), node_set_typeinfo(), node_set_undefined_type(), blender::ed::space_node::node_undefined_or_unsupported(), and blender::register_undefined_types().
| const int blender::bke::project_schema_version = 1 |
Definition at line 61 of file blender_project_config.cc.
Referenced by create_blender_project_from_toml(), and create_toml_from_blender_project().
|
constexpr |
Definition at line 37 of file blender_project_config.cc.
Referenced by blender::BKE_blender_project_config_file_write(), and create_blender_project_from_toml().