Blender V5.3
blender::bke Namespace Reference

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

Classes

struct  ARegionRuntime
struct  ArmatureDeformParams
struct  ArmatureEditMeshUserdata
struct  AttrBuiltinInfo
class  Attribute
class  AttributeAccessor
struct  AttributeAccessorFunctions
struct  AttributeDomainAndType
class  AttributeExistsFieldInput
class  AttributeFieldInput
struct  AttributeFilter
struct  AttributeFilterFromFunc
struct  AttributeInit
struct  AttributeInitConstruct
struct  AttributeInitDefaultValue
struct  AttributeInitShared
struct  AttributeInitValue
struct  AttributeInitVArray
class  AttributeIter
struct  AttributeReader
class  AttributeStorage
class  AttributeStorageRuntime
struct  AttributeTransferData
struct  AttributeValidator
struct  AttributeWriter
struct  bArmature_Runtime
class  BlenderGTestBase
class  BlenderProject
struct  bNodePanelExtent
class  bNodePanelRuntime
class  bNodeRuntime
class  bNodeSocketRuntime
struct  bNodeSocketTemplate
 Compact definition of a node socket. More...
struct  bNodeSocketType
 Defines a socket type. More...
class  bNodeTreeInterfaceRuntime
class  bNodeTreeRuntime
class  bNodeTreeToDotOptions
struct  bNodeTreeType
class  bNodeTreeZone
class  bNodeTreeZones
struct  bNodeType
 Defines a node type. More...
class  bNodeZoneType
struct  BoneDeformDualQuaternionMixer
struct  BoneDeformLinearMixer
struct  bPoseRuntime
class  bSoundFrequencySampler
struct  BVHTreeFromMesh
class  ClosureToListComputeContext
struct  CollectionImportRuntime
struct  CollectionRuntime
struct  CombinationInfo
class  CompositorRuntime
class  ComputeContextCache
struct  ConversionFunctions
class  CurveComponent
class  CurveLengthFieldInput
class  CurvesEditHints
class  CurvesFieldContext
class  CurvesFieldInput
class  CurvesGeometry
class  CurvesGeometryRuntime
struct  CurvesInfo
struct  CurvesSurfaceTransforms
struct  CustomDataAndSize
class  DataBlockComputeContext
class  DataTypeConversions
struct  EditMeshData
class  ErrorMessages
struct  EvalData
class  EvaluateAtIndexInput
class  EvaluateClosureComputeContext
class  EvaluateOnDomainInput
struct  FCurveRuntime
class  Field
struct  FileHandlerType
struct  FinishCallChecker
class  ForeachGeometryElementZoneComputeContext
struct  GAttributeReader
struct  GAttributeWriter
class  GeometryComponent
class  GeometryComponentEditData
class  GeometryFieldContext
class  GeometryFieldInput
class  GeometryNodesModifierComputeContext
class  GeometryNodesReferenceSet
struct  GeometrySet
class  GField
struct  GizmoEditHints
class  GList
class  GListPtr
class  GreasePencilComponent
class  GreasePencilDrawingEditHints
class  GreasePencilEditHints
class  GreasePencilFieldContext
class  GreasePencilLayerFieldContext
class  GreasePencilRuntime
class  GroupNodeComputeContext
struct  GSpanAttributeWriter
class  GVArray_For_ConvertedGVArray
class  GVMutableArray_For_ConvertedGVMutableArray
class  IDAttributeFieldInput
struct  ImageRuntime
class  InstanceReference
class  Instances
class  InstancesComponent
class  InstancesFieldContext
class  InstancesFieldInput
class  LegacyMeshInterpolator
class  List
class  ListPtr
struct  LoggedZoneGraphs
struct  LooseGeomCache
struct  MappedUserData
struct  MaskSplineRuntime
class  MeshComponent
struct  MeshEditHints
class  MeshFieldContext
class  MeshFieldInput
struct  MeshGroup
struct  MeshRuntime
class  MeshTopologyState
class  MutableAttributeAccessor
class  NamedLayerSelectionFieldInput
struct  NativeFieldDomain
struct  NlaStripRuntime
class  NodeComputeContext
struct  NodeGizmoID
struct  NodeIDGetter
struct  NodeInsertLinkParams
struct  NodeLinkError
struct  NodeLinkKey
struct  NodeStructIDNameGetter
struct  NodeTreeIterStore
class  NodeTreeMainUpdater
struct  NodeTreeRelations
struct  NodeWidth
struct  NonContiguousGroup
class  NormalFieldInput
class  NormalsCache
struct  ObjectRuntime
class  OperatorComputeContext
struct  PaintRuntime
struct  PChanBoneT
class  PointCloudComponent
class  PointCloudFieldContext
class  PointCloudFieldInput
struct  PointCloudRuntime
struct  PreviewDeferredLoadingData
struct  PreviewImageRuntime
class  ProcessAllAttributeExceptAnonymous
class  ProjectVariable
class  RepeatZoneComputeContext
struct  ResultOffsets
struct  RuntimeNodeEnumItem
struct  RuntimeNodeEnumItems
class  SampleIndexFunction
struct  SceneAudioRuntime
class  SceneCompositorEffectComputeContext
class  SceneRuntime
class  ScopedModifierTimer
struct  SelectedBonesResult
class  SequencerRuntime
class  ShaderComputeContext
class  SimulationZoneComputeContext
class  SocketValueVariant
struct  SoundRuntime
struct  SpanAttributeWriter
struct  TomlAssetLibrary
struct  TomlProjectVariable
struct  TreeUpdateResult
struct  TrianglesCache
class  VArrayImpl_For_VertexWeights
class  VolumeComponent
class  VolumeGrid
struct  VolumeRuntime
struct  VolumeToMeshResolution
struct  WeightIndexGetter
struct  WindowManagerRuntime
struct  WindowRuntime
struct  wmNotifierEqForQueue
struct  wmNotifierHashForQueue
struct  WorkSpaceRuntime
struct  WorkSpaceStatusItem
struct  ZoneRelation

Typedefs

using FoundFCurveCallback = FunctionRef<void(FCurve *fcurve, const char *bone_name)>
using FoundFCurveCallbackConst = FunctionRef<void(const FCurve *fcurve, const char *bone_name)>
using SelectedBoneCallback = FunctionRef<void(Bone *bone)>
using BoneNameSet = Set<std::string>
using AttributeForeachCallback
using MDeformWeightSet = CustomIDVectorSet<MDeformWeight, WeightIndexGetter, 64>
using GeometryComponentPtr = ImplicitSharingPtr<GeometryComponent>
using NodeIDVectorSet = CustomIDVectorSet<bNode *, NodeIDGetter>
using PChanBone = PChanBoneT<bPoseChannel, Bone>
using PChanBoneConst = PChanBoneT<const bPoseChannel, const Bone>
using wmNotifierQueueSet
using AttrUpdateOnChange = void (*)(void *owner)
using EdgeMap
using Clock = std::chrono::high_resolution_clock
using TreeNodePair = std::pair<bNodeTree *, bNode *>
using ObjectModifierPair = std::pair<Object *, ModifierData *>
using NodeSocketPair = std::pair<bNode *, bNodeSocket *>
using StripModifierPair = std::pair<Scene *, StripModifierData *>
using StripEffectPair = std::pair<Scene *, Strip *>
using SceneCompositorEffectPair = std::pair<Scene *, SceneCompositorEffect *>
using bSoundFrequencySamplerMap
using BundlePtr
using ClosurePtr

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 &params, 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:

  • nodetree: The actual bNodeTree data block. Check nodetree->idname or nodetree->typeinfo to use only specific types.
  • id: The owner of the bNodeTree data block. Same as nodetree if it's a linkable node tree from the library.

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");
if (GS(id->name) == ID_MA)
printf(" and it's owned by a material");
#define FOREACH_NODETREE_END
Definition BKE_node.hh:936
#define FOREACH_NODETREE_BEGIN(bmain, _nodetree, _id)
Definition BKE_node.hh:926
ID_Type GS(const char *name)
Definition DNA_ID.h:410
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"

Node Type Definitions

enum class  NodeColorTag {
  None = 0 , Attribute = 1 , Color = 2 , Converter = 3 ,
  Distort = 4 , Filter = 5 , Geometry = 6 , Input = 7 ,
  Matte = 8 , Output = 9 , Script = 10 , Shader = 11 ,
  Texture = 12 , Vector = 13 , Pattern = 14 , Interface = 15 ,
  Group = 16
}
using NodeMultiFunctionBuildFunction = void (*)(nodes::NodeMultiFunctionBuilder &builder)
using NodeGeometryExecFunction = void (*)(nodes::GeoNodeExecParams params)
using NodeDeclareFunction = void (*)(nodes::NodeDeclarationBuilder &builder)
using NodeDeclareDynamicFunction
using SocketGetCPPValueFunction = void (*)(const void *socket_value, void *r_value)
using SocketGetGeometryNodesCPPValueFunction = SocketValueVariant (*)(const void *socket_value)
using NodeGatherSocketLinkOperationsFunction = void (*)(nodes::GatherLinkSearchOpParams &params)
using NodeGatherAddOperationsFunction = void (*)(nodes::GatherAddNodeSearchParams &params)
using NodeGetCompositorOperationFunction
using NodeExtraInfoFunction = void (*)(nodes::NodeExtraInfoParams &params)
using NodeInverseElemEvalFunction = void (*)(nodes::value_elem::InverseElemEvalParams &params)
using NodeElemEvalFunction = void (*)(nodes::value_elem::ElemEvalParams &params)
using NodeInverseEvalFunction = void (*)(nodes::inverse_eval::InverseEvalParams &params)
using NodeInternallyLinkedInputFunction
using NodeBlendWriteFunction
using NodeBlendDataReadFunction = void (*)(bNodeTree &tree, bNode &node, BlendDataReader &reader)
using SocketMakeNodesInputSrnaFunction
using NodeInitExecFunction
using NodeFreeExecFunction = void (*)(void *nodedata)
using NodeExecFunction
using NodeGPUExecFunction
using NodeMaterialXFunction = void (*)(void *data, bNode *node, bNodeSocket *out)
using bNodeClassCallback = void (*)(void *calldata, int nclass, StringRefNull name)

Generic API, Nodes

const bNodeInstanceKey NODE_INSTANCE_KEY_BASE = {5381}
const bNodeInstanceKey NODE_INSTANCE_KEY_NONE = {0}
bNodeType * node_type_find (UString idname)
UString node_type_find_alias (UString alias)
void node_register_type (bNodeType &ntype)
void node_unregister_type (bNodeType &ntype)
void node_register_alias (bNodeType &nt, UString alias)
void node_set_undefined_type (bNode &node)
Span< bNodeType * > node_types_get ()
bNodeSocketType * node_socket_type_find (StringRef idname)
bNodeSocketType * node_socket_type_find_static (int type, int subtype=0)
void node_register_socket_type (bNodeSocketType &stype)
void node_unregister_socket_type (bNodeSocketType &stype)
bool node_socket_is_registered (const bNodeSocket &sock)
StringRefNull node_socket_type_label (const bNodeSocketType &stype)
std::optional< StringRefNull > node_static_socket_type (int type, int subtype, std::optional< int > dimensions=std::nullopt)
std::optional< StringRefNull > node_static_socket_interface_type_new (int type, int subtype, std::optional< int > dimensions=std::nullopt)
std::optional< StringRefNull > node_static_socket_label (int type, int subtype)
Span< bNodeSocketType * > node_socket_types_get ()
bNodeSocket * node_find_socket (bNode &node, eNodeSocketInOut in_out, UString identifier)
const bNodeSocket * node_find_socket (const bNode &node, eNodeSocketInOut in_out, UString identifier)
bNodeSocket * node_add_socket (bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out, StringRefNull idname, StringRefNull identifier, StringRefNull name)
bNodeSocket * node_add_static_socket (bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out, int type, int subtype, StringRefNull identifier, StringRefNull name)
void node_remove_socket (bNodeTree &ntree, bNode &node, bNodeSocket &sock)
void node_modify_socket_type_static (bNodeTree *ntree, bNode *node, bNodeSocket *sock, int type, int subtype)
bNode * node_add_node (const bContext *C, bNodeTree &ntree, UString idname, std::optional< int > unique_identifier=std::nullopt)
bNode * node_add_static_node (const bContext *C, bNodeTree &ntree, int type)
void node_unique_name (bNodeTree &ntree, bNode &node)
void node_unique_id (bNodeTree &ntree, bNode &node)
void node_remove_node (Main *bmain, bNodeTree &ntree, bNode &node, bool do_id_user, bool remove_animation=true)
float2 node_dimensions_get (const bNode &node)
void node_tag_update_id (bNode &node)
bNodeLink & node_add_link (bNodeTree &ntree, bNode &fromnode, bNodeSocket &fromsock, bNode &tonode, bNodeSocket &tosock)
void node_remove_link (bNodeTree *ntree, bNodeLink &link)
void node_remove_socket_links (bNodeTree &ntree, bNodeSocket &sock)
bool node_link_is_hidden (const bNodeLink &link)
void node_attach_node (bNodeTree &ntree, bNode &node, bNode &parent)
void node_detach_node (bNodeTree &ntree, bNode &node)
bNode * node_find_node_try (bNodeTree &ntree, bNodeSocket &socket)
bNode & node_find_node (bNodeTree &ntree, bNodeSocket &socket)
const bNode & node_find_node (const bNodeTree &ntree, const bNodeSocket &socket)
bNode * node_find_node_by_name (bNodeTree &ntree, StringRefNull name)
const bNodeTreeInterfaceSocket * node_find_interface_input_by_identifier (const bNodeTree &ntree, StringRef identifier)
const bNodeTreeInterfaceSocket * node_find_interface_output_by_identifier (const bNodeTree &ntree, StringRef identifier)
bool node_is_parent_and_child (const bNode &parent, const bNode &child)
int node_count_socket_links (const bNodeTree &ntree, const bNodeSocket &sock)
bool node_set_selected (bNode &node, bool select)
void node_set_active (bNodeTree &ntree, bNode &node)
bNode * node_get_active (bNodeTree &ntree)
void node_clear_active (bNodeTree &ntree)
bNode * node_get_active_texture (bNodeTree &ntree)
int node_socket_link_limit (const bNodeSocket &sock)
bNodeInstanceKey node_instance_key (bNodeInstanceKey parent_key, const bNodeTree *ntree, const bNode *node)

Node Generic Functions

bNodeTreeType NodeTreeTypeUndefined
bNodeType NodeTypeUndefined
bNodeSocketType NodeSocketTypeUndefined
bool node_is_connected_to_output (const bNodeTree &ntree, const bNode &node)
bNodeSocket * node_find_enabled_socket (bNode &node, eNodeSocketInOut in_out, StringRef name)
bNodeSocket * node_find_enabled_input_socket (bNode &node, StringRef name)
bNodeSocket * node_find_enabled_output_socket (bNode &node, StringRef name)
std::optional< eCustomDataType > socket_type_to_custom_data_type (eNodeSocketDatatype type)
std::optional< eNodeSocketDatatype > custom_data_type_to_socket_type (eCustomDataType type)
const CPPType * socket_type_to_geo_nodes_base_cpp_type (eNodeSocketDatatype type)
std::optional< eNodeSocketDatatype > geo_nodes_base_cpp_type_to_socket_type (const CPPType &type)
std::optional< VolumeGridType > socket_type_to_grid_type (eNodeSocketDatatype type)
std::optional< eNodeSocketDatatype > grid_type_to_socket_type (VolumeGridType type)
void register_node_zone_type (const bNodeZoneType &zone_type)
Span< const bNodeZoneType * > all_zone_types ()
Span< int > all_zone_node_types ()
Span< int > all_zone_input_node_types ()
Span< int > all_zone_output_node_types ()
const bNodeZoneType * zone_type_by_node_type (const int node_type)

Detailed Description

Put the most common types directly into the bke namespace.

Workaround to forward-declare C++ type in C header.

Typedef Documentation

◆ AttributeForeachCallback

◆ AttrUpdateOnChange

using blender::bke::AttrUpdateOnChange = void (*)(void *owner)

Definition at line 19 of file attribute_storage_access.hh.

◆ bNodeClassCallback

using blender::bke::bNodeClassCallback = void (*)(void *calldata, int nclass, StringRefNull name)

Definition at line 523 of file BKE_node.hh.

◆ BoneNameSet

using blender::bke::BoneNameSet = Set<std::string>

Definition at line 779 of file BKE_armature.hh.

◆ bSoundFrequencySamplerMap

◆ BundlePtr

◆ Clock

using blender::bke::Clock = std::chrono::high_resolution_clock

Definition at line 1575 of file blenkernel/intern/modifier.cc.

◆ ClosurePtr

◆ EdgeMap

◆ FoundFCurveCallback

using blender::bke::FoundFCurveCallback = FunctionRef<void(FCurve *fcurve, const char *bone_name)>

Definition at line 329 of file BKE_action.hh.

◆ FoundFCurveCallbackConst

using blender::bke::FoundFCurveCallbackConst = FunctionRef<void(const FCurve *fcurve, const char *bone_name)>

Definition at line 330 of file BKE_action.hh.

◆ GeometryComponentPtr

◆ MDeformWeightSet

◆ NodeBlendDataReadFunction

Definition at line 151 of file BKE_node.hh.

◆ NodeBlendWriteFunction

Initial value:

Definition at line 148 of file BKE_node.hh.

◆ NodeDeclareDynamicFunction

◆ NodeDeclareFunction

Definition at line 125 of file BKE_node.hh.

◆ NodeElemEvalFunction

Definition at line 143 of file BKE_node.hh.

◆ NodeExecFunction

◆ NodeExtraInfoFunction

Definition at line 141 of file BKE_node.hh.

◆ NodeFreeExecFunction

using blender::bke::NodeFreeExecFunction = void (*)(void *nodedata)

Definition at line 226 of file BKE_node.hh.

◆ NodeGatherAddOperationsFunction

using blender::bke::NodeGatherAddOperationsFunction = void (*)(nodes::GatherAddNodeSearchParams &params)

Definition at line 136 of file BKE_node.hh.

◆ NodeGatherSocketLinkOperationsFunction

◆ NodeGeometryExecFunction

Definition at line 124 of file BKE_node.hh.

◆ NodeGetCompositorOperationFunction

◆ NodeGPUExecFunction

◆ NodeIDVectorSet

◆ NodeInitExecFunction

◆ NodeInternallyLinkedInputFunction

Initial value:
const bNodeSocket *(*)(const bNodeTree &tree,
const bNode &node,
const bNodeSocket &output_socket)

Definition at line 145 of file BKE_node.hh.

◆ NodeInverseElemEvalFunction

◆ NodeInverseEvalFunction

◆ NodeMaterialXFunction

Definition at line 231 of file BKE_node.hh.

◆ NodeMultiFunctionBuildFunction

Definition at line 123 of file BKE_node.hh.

◆ NodeSocketPair

Definition at line 228 of file node_tree_update.cc.

◆ ObjectModifierPair

Definition at line 227 of file node_tree_update.cc.

◆ PChanBone

Definition at line 88 of file BKE_pose.hh.

◆ PChanBoneConst

Definition at line 89 of file BKE_pose.hh.

◆ SceneCompositorEffectPair

Definition at line 231 of file node_tree_update.cc.

◆ SelectedBoneCallback

Definition at line 775 of file BKE_armature.hh.

◆ SocketGetCPPValueFunction

using blender::bke::SocketGetCPPValueFunction = void (*)(const void *socket_value, void *r_value)

Definition at line 129 of file BKE_node.hh.

◆ SocketGetGeometryNodesCPPValueFunction

Definition at line 130 of file BKE_node.hh.

◆ SocketMakeNodesInputSrnaFunction

◆ StripEffectPair

using blender::bke::StripEffectPair = std::pair<Scene *, Strip *>

Definition at line 230 of file node_tree_update.cc.

◆ StripModifierPair

Definition at line 229 of file node_tree_update.cc.

◆ TreeNodePair

using blender::bke::TreeNodePair = std::pair<bNodeTree *, bNode *>

Definition at line 226 of file node_tree_update.cc.

◆ wmNotifierQueueSet

Enumeration Type Documentation

◆ ARegionQuadviewIndex

#ARegionRuntime.quadview_index

Enumerator
None 
BottomLeft 
TopLeft 
BottomRight 
TopRight 

Definition at line 616 of file BKE_screen.hh.

◆ ARegionRuntimeFlag

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.

◆ AttrDomain

enum class blender::bke::AttrDomain : int8_t
strong
Enumerator
Point 
Edge 
Face 
Corner 
Curve 
Instance 
Layer 

Definition at line 40 of file BKE_attribute_enums.hh.

◆ AttrDomainSelection

Enumerator
Auto 
Point 
Edge 
Face 
Corner 
Curve 
Instance 
Layer 

Definition at line 58 of file BKE_attribute_enums.hh.

◆ AttrStorageType

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.

◆ AttrType

enum class blender::bke::AttrType : int16_t
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.

◆ FieldSocketState

Enumerator
RequiresSingle 
CanBeField 
IsField 

Definition at line 68 of file BKE_node_runtime.hh.

◆ GeometryOwnershipType

Enumerator
Owned 
Editable 
ReadOnly 

Definition at line 53 of file BKE_geometry_set.hh.

◆ MeshNormalDomain

The complexity requirement of attribute domains needed to process normals. See #Mesh::normals_domain().

Enumerator
Face 

The mesh is completely flat shaded; either all faces or edges are sharp. Only #Mesh::face_normals() is necessary. This case is generally the best for performance, since no mixing is necessary and multithreading is simple.

Point 

The mesh is completely smooth shaded; there are no sharp face or edges. Only #Mesh::vert_normals() is necessary. Calculating face normals is still necessary though, since they have to be mixed to become vertex normals.

Corner 

The mesh has mixed smooth and sharp shading. In order to split the normals on each side of sharp edges, they need to be processed per-face-corner. Normals can be retrieved with #Mesh::corner_normals().

Definition at line 66 of file BKE_mesh_types.hh.

◆ NodeColorTag

enum class blender::bke::NodeColorTag
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.

◆ NodeSocketValueMenuRuntimeFlag

Enumerator
NODE_MENU_ITEMS_CONFLICT 

Definition at line 19 of file BKE_node_enum.hh.

◆ ProjectVariableStringSubtype

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.

◆ ProjectVariableType

enum class blender::bke::ProjectVariableType : char
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.

◆ ShaderNodeAncestorFlags

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.

◆ SoundTags

enum class blender::bke::SoundTags
strong
Enumerator
None 
WaveformNoReload 
WaveformLoading 

Definition at line 115 of file blenkernel/intern/sound.cc.

◆ wmIMEOwnerType

enum class blender::bke::wmIMEOwnerType : int8_t
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.

Enumerator
Region 

A region's cursor_ime callback (via #WM_window_IME_region_refresh), always the screen's active region.

Button 

A text button being edited (which may be in a popup floating over an unrelated region).

Definition at line 141 of file BKE_wm_runtime.hh.

Function Documentation

◆ action_asset_metadata_ensure()

◆ action_asset_type_property()

IDProperty * blender::bke::action_asset_type_property ( const bAction * action)
static

◆ action_blend_read_data()

◆ action_blend_write()

◆ action_blend_write_clear_legacy_channel_groups_listbase()

void blender::bke::action_blend_write_clear_legacy_channel_groups_listbase ( ListBaseT< bActionGroup > & listbase)
static

◆ action_blend_write_clear_legacy_fcurves_listbase()

void blender::bke::action_blend_write_clear_legacy_fcurves_listbase ( ListBaseT< FCurve > & listbase)
static

◆ action_blend_write_make_legacy_channel_groups_listbase()

void blender::bke::action_blend_write_make_legacy_channel_groups_listbase ( ListBaseT< bActionGroup > & listbase,
const Span< bActionGroup * > channel_groups )
static

Create a listbase from a Span of channel groups.

Note
this does NOT transfer ownership of the pointers. The ListBaseT should not be freed, but given to action_blend_write_clear_legacy_channel_groups_listbase() below.
Warning
This code is modifying actual 'Main' data in-place, which is usually not acceptable (due to risks of unsafe concurrent accesses mainly). The reasons why this is currently seen as 'reasonably safe' are:
  • Current blender code is not expected to access the affected bActionGroup data (prev/next listbase pointers) in any way, as they are stored in an array.
  • The action.groups listbase modification is safe/valid, as this is a member of the Action ID, which is a shallow copy of the actual ID data from Main.

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().

◆ action_blend_write_make_legacy_fcurves_listbase()

void blender::bke::action_blend_write_make_legacy_fcurves_listbase ( ListBaseT< FCurve > & listbase,
const Span< FCurve * > fcurves )
static

Create a listbase from a Span of F-Curves.

Note
this does NOT transfer ownership of the pointers. The ListBaseT should not be freed, but given to action_blend_write_clear_legacy_fcurves_listbase() below.
Warning
This code is modifying actual 'Main' data in-place, which is usually not acceptable (due to risks of unsafe concurrent accesses mainly). The reasons why this is currently seen as 'reasonably safe' are:
  • Current blender code is not expected to access the affected FCurve data (prev/next listbase pointers) in any way, as they are stored in an array.
  • The action.curves listbase modification is safe/valid, as this is a member of the Action ID, which is a shallow copy of the actual ID data from Main.

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().

◆ action_copy_data()

void blender::bke::action_copy_data ( Main * ,
std::optional< Library * > ,
ID * id_dst,
const ID * id_src,
const int flag )
static

◆ action_foreach_id()

◆ action_free_data()

◆ action_init_data()

void blender::bke::action_init_data ( ID * action_id)
static

◆ adapt_curve_domain_curve_to_point()

GVArray blender::bke::adapt_curve_domain_curve_to_point ( const CurvesGeometry & curves,
const GVArray & varray )
static

Copy the value from a curve to all of its points.

Note
Theoretically this interpolation does not need to compute all values at once. However, doing that makes the implementation simpler, and this can be optimized in the future if only some values are required.

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().

◆ adapt_curve_domain_point_to_curve()

◆ adapt_curve_domain_point_to_curve_impl() [1/2]

template<>
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.

Note
Theoretically this interpolation does not need to compute all values at once. However, doing that makes the implementation simpler, and this can be optimized in the future if only some values are required.

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().

◆ adapt_curve_domain_point_to_curve_impl() [2/2]

template<typename T>
void blender::bke::adapt_curve_domain_point_to_curve_impl ( const CurvesGeometry & curves,
const VArray< T > & old_values,
MutableSpan< T > r_values )
static

Mix together all of a curve's control point values.

Note
Theoretically this interpolation does not need to compute all values at once. However, doing that makes the implementation simpler, and this can be optimized in the future if only some values are required.

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().

◆ adapt_domain_and_type_if_necessary()

GAttributeReader blender::bke::adapt_domain_and_type_if_necessary ( GAttributeReader attribute,
const std::optional< AttrDomain > domain,
const std::optional< AttrType > data_type,
const AttributeAccessor & accessor )
static

◆ adapt_mesh_attribute_domain()

◆ adapt_mesh_domain_corner_to_edge()

GVArray blender::bke::adapt_mesh_domain_corner_to_edge ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_corner_to_edge_impl() [1/2]

◆ adapt_mesh_domain_corner_to_edge_impl() [2/2]

template<typename T>
void blender::bke::adapt_mesh_domain_corner_to_edge_impl ( const Mesh & mesh,
const VArray< T > & old_values,
MutableSpan< T > r_values )
static

◆ adapt_mesh_domain_corner_to_face()

GVArray blender::bke::adapt_mesh_domain_corner_to_face ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_corner_to_point()

GVArray blender::bke::adapt_mesh_domain_corner_to_point ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_corner_to_point_impl() [1/2]

template<>
void blender::bke::adapt_mesh_domain_corner_to_point_impl ( const Mesh & mesh,
const VArray< bool > & src,
MutableSpan< bool > r_dst )

◆ adapt_mesh_domain_corner_to_point_impl() [2/2]

template<typename T>
void blender::bke::adapt_mesh_domain_corner_to_point_impl ( const Mesh & mesh,
const VArray< T > & src,
MutableSpan< T > r_dst )
static

◆ adapt_mesh_domain_edge_to_corner()

GVArray blender::bke::adapt_mesh_domain_edge_to_corner ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_edge_to_corner_impl() [1/2]

template<>
void blender::bke::adapt_mesh_domain_edge_to_corner_impl ( const Mesh & mesh,
const VArray< bool > & old_values,
MutableSpan< bool > r_values )

◆ adapt_mesh_domain_edge_to_corner_impl() [2/2]

template<typename T>
void blender::bke::adapt_mesh_domain_edge_to_corner_impl ( const Mesh & mesh,
const VArray< T > & old_values,
MutableSpan< T > r_values )

◆ adapt_mesh_domain_edge_to_face()

GVArray blender::bke::adapt_mesh_domain_edge_to_face ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_edge_to_point()

GVArray blender::bke::adapt_mesh_domain_edge_to_point ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_edge_to_point_impl() [1/2]

template<>
void blender::bke::adapt_mesh_domain_edge_to_point_impl ( const Mesh & mesh,
const VArray< bool > & old_values,
MutableSpan< bool > r_values )

◆ adapt_mesh_domain_edge_to_point_impl() [2/2]

template<typename T>
void blender::bke::adapt_mesh_domain_edge_to_point_impl ( const Mesh & mesh,
const VArray< T > & old_values,
MutableSpan< T > r_values )
static

◆ adapt_mesh_domain_face_to_corner()

◆ adapt_mesh_domain_face_to_edge()

GVArray blender::bke::adapt_mesh_domain_face_to_edge ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_face_to_edge_impl() [1/2]

template<>
void blender::bke::adapt_mesh_domain_face_to_edge_impl ( const Mesh & mesh,
const VArray< bool > & old_values,
MutableSpan< bool > r_values )

◆ adapt_mesh_domain_face_to_edge_impl() [2/2]

template<typename T>
void blender::bke::adapt_mesh_domain_face_to_edge_impl ( const Mesh & mesh,
const VArray< T > & old_values,
MutableSpan< T > r_values )

◆ adapt_mesh_domain_face_to_point()

GVArray blender::bke::adapt_mesh_domain_face_to_point ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_point_to_corner()

GVArray blender::bke::adapt_mesh_domain_point_to_corner ( const Mesh & mesh,
const GVArray & varray )
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().

◆ adapt_mesh_domain_point_to_edge()

GVArray blender::bke::adapt_mesh_domain_point_to_edge ( const Mesh & mesh,
const GVArray & varray )
static

◆ adapt_mesh_domain_point_to_face()

GVArray blender::bke::adapt_mesh_domain_point_to_face ( const Mesh & mesh,
const GVArray & varray )
static

◆ add_auto_smooth_node_tree()

◆ add_final_mesh_as_geometry_component()

◆ add_implicit_conversion()

template<typename From, typename To, To(*)(const From &) ConversionF>
void blender::bke::add_implicit_conversion ( DataTypeConversions & conversions)
static

◆ add_orco_mesh()

◆ adjust_multi_input_indices_after_removed_link()

void blender::bke::adjust_multi_input_indices_after_removed_link ( bNodeTree * ntree,
const bNodeSocket * sock,
const int deleted_index )
static

◆ all_zone_input_node_types()

◆ all_zone_node_types()

◆ all_zone_output_node_types()

◆ all_zone_types()

◆ allow_procedural_attribute_access()

◆ armature_deform_coords()

void blender::bke::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 )
static

◆ armature_deform_editmesh()

void blender::bke::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

◆ armature_vert_task_editmesh()

template<bool use_dvert>
void blender::bke::armature_vert_task_editmesh ( void *__restrict userdata,
MempoolIterData * iter,
const TaskParallelTLS * __restrict )
static

◆ armature_vert_task_with_dvert()

void blender::bke::armature_vert_task_with_dvert ( const ArmatureDeformParams & deform_params,
const int i,
const MDeformVert * dvert,
const bool use_quaternion )
static

◆ armature_vert_task_with_mixer()

template<typename MixerT>
void blender::bke::armature_vert_task_with_mixer ( const ArmatureDeformParams & params,
const int i,
const MDeformVert * dvert,
MixerT & mixer )
static

◆ array_data_from_garray()

◆ array_storage_required() [1/3]

const auto & blender::bke::array_storage_required ( )
static

◆ array_storage_required() [2/3]

const auto & blender::bke::array_storage_required ( )
static

Definition at line 693 of file mesh_attributes.cc.

References array_storage_required().

Referenced by array_storage_required(), and get_mesh_accessor_functions().

◆ array_storage_required() [3/3]

const auto & blender::bke::array_storage_required ( )
static

◆ asset_blendfile_path_for_save()

◆ asset_edit_id_delete()

◆ asset_edit_id_ensure_local()

◆ asset_edit_id_find_local()

ID * blender::bke::asset_edit_id_find_local ( Main & global_main,
ID & id )

◆ asset_edit_id_from_weak_reference()

◆ asset_edit_id_is_editable()

◆ asset_edit_id_is_writable()

◆ asset_edit_id_rename()

bool blender::bke::asset_edit_id_rename ( Main & global_main,
ID & id,
StringRefNull new_name,
const bUserAssetLibrary & user_library,
ReportList & reports )

◆ asset_edit_id_revert()

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.

Returns
the new address of the reloaded id.

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().

◆ asset_edit_id_save()

◆ asset_edit_id_save_as()

◆ asset_edit_weak_reference_from_id()

◆ asset_link_id()

◆ asset_name_in_library()

const char * blender::bke::asset_name_in_library ( const ID & id)
static

◆ asset_name_in_library_set()

void blender::bke::asset_name_in_library_set ( ID & id,
const char * name )
static

◆ asset_reload()

ID * blender::bke::asset_reload ( Main & global_main,
ID & id,
ReportList * reports )
static

◆ asset_root_path_for_save()

◆ asset_weak_reference_for_essentials()

◆ asset_weak_reference_for_online_essentials()

◆ asset_weak_reference_for_user_library()

◆ asset_write_in_library()

◆ attr_type_to_custom_data_type()

◆ attribute_data_matches_varray()

bool blender::bke::attribute_data_matches_varray ( const GAttributeReader & attribute,
const CommonVArrayInfo & varray_info )
static

◆ attribute_data_type_complexity()

int blender::bke::attribute_data_type_complexity ( const AttrType data_type)
static

◆ attribute_data_type_highest_complexity()

AttrType blender::bke::attribute_data_type_highest_complexity ( Span< AttrType > data_types)

◆ attribute_domain_highest_priority()

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().

◆ attribute_domain_priority()

int blender::bke::attribute_domain_priority ( const AttrDomain domain)
static
Note
Generally the order should mirror the order of the domains established in each component's GeometryAttributeProviders.

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().

◆ attribute_filter_from_skip_ref() [1/2]

◆ attribute_filter_from_skip_ref() [2/2]

auto blender::bke::attribute_filter_from_skip_ref ( const Span< StringRef > skip)
inline

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().

◆ attribute_filter_with_skip_ref() [1/2]

template<typename StringT>
auto blender::bke::attribute_filter_with_skip_ref ( const AttributeFilter & filter,
const Set< StringT > & skip )
inline

◆ attribute_filter_with_skip_ref() [2/2]

auto blender::bke::attribute_filter_with_skip_ref ( const AttributeFilter & filter,
const Span< StringRef > skip )
inline

◆ attribute_init_to_data()

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 )

◆ attribute_is_builtin_on_component_type()

◆ attribute_kind_matches()

bool blender::bke::attribute_kind_matches ( const AttributeMetaData meta_data,
const AttrDomain domain,
const bke::AttrType data_type )
static

◆ attribute_legacy_convert_customdata_to_storage()

void blender::bke::attribute_legacy_convert_customdata_to_storage ( const Map< AttrDomain, CustomDataAndSize > & domains,
AttributeStorage & storage )
static

◆ attribute_name_is_anonymous()

bool blender::bke::attribute_name_is_anonymous ( const StringRef name)
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().

◆ attribute_reader_matches_array_state()

◆ attribute_reader_to_array_state()

◆ attribute_storage_blend_write_prepare()

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 )

◆ attribute_to_reader()

◆ attribute_to_writer()

◆ attribute_type_to_cpp_type()

const CPPType & blender::bke::attribute_type_to_cpp_type ( AttrType type)

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().

◆ b_bone_deform()

template<typename MixerT>
void blender::bke::b_bone_deform ( const bke::PChanBoneConst pchanbone,
const float3 & co,
const float weight,
MixerT & mixer )
static

◆ BKE_action_find_fcurves_with_bones() [1/2]

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.

Parameters
slot_handleonly 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().

◆ BKE_action_find_fcurves_with_bones() [2/2]

void blender::bke::BKE_action_find_fcurves_with_bones ( const bAction * action,
animrig::slot_handle_t slot_handle,
FoundFCurveCallbackConst callback )

◆ BKE_armature_find_selected_bone_names()

BoneNameSet blender::bke::BKE_armature_find_selected_bone_names ( const bArmature * armature)

◆ BKE_armature_find_selected_bones()

◆ BKE_pose_channel_find_selected_names()

◆ bool_to_byte_color()

ColorGeometry4b blender::bke::bool_to_byte_color ( const bool & a)
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().

◆ bool_to_color()

ColorGeometry4f blender::bke::bool_to_color ( const bool & a)
static

Definition at line 509 of file type_conversions.cc.

References bool_to_color().

Referenced by bool_to_byte_color(), and bool_to_color().

◆ bool_to_float()

float blender::bke::bool_to_float ( const bool & a)
static

Definition at line 473 of file type_conversions.cc.

References bool_to_float(), and float.

Referenced by bool_to_float().

◆ bool_to_float2()

float2 blender::bke::bool_to_float2 ( const bool & a)
static

Definition at line 497 of file type_conversions.cc.

References bool_to_float2().

Referenced by bool_to_float2().

◆ bool_to_float3()

float3 blender::bke::bool_to_float3 ( const bool & a)
static

Definition at line 501 of file type_conversions.cc.

References bool_to_float3().

Referenced by bool_to_float3().

◆ bool_to_float4()

float4 blender::bke::bool_to_float4 ( const bool & a)
static

Definition at line 505 of file type_conversions.cc.

References bool_to_float4().

Referenced by bool_to_float4().

◆ bool_to_int()

int32_t blender::bke::bool_to_int ( const bool & a)
static

Definition at line 481 of file type_conversions.cc.

References bool_to_int().

Referenced by bool_to_int().

◆ bool_to_int2()

int2 blender::bke::bool_to_int2 ( const bool & a)
static

Definition at line 489 of file type_conversions.cc.

References bool_to_int2().

Referenced by bool_to_int2().

◆ bool_to_int3()

int3 blender::bke::bool_to_int3 ( const bool & a)
static

Definition at line 493 of file type_conversions.cc.

References bool_to_int3().

Referenced by bool_to_int3().

◆ bool_to_int8()

int8_t blender::bke::bool_to_int8 ( const bool & a)
static

Definition at line 477 of file type_conversions.cc.

References bool_to_int8().

Referenced by bool_to_int8().

◆ bool_to_short2()

short2 blender::bke::bool_to_short2 ( const bool & a)
static

Definition at line 485 of file type_conversions.cc.

References bool_to_short2().

Referenced by bool_to_short2().

◆ bspline_interpolation()

float blender::bke::bspline_interpolation ( const float p0,
const float p1,
const float p2,
const float p3,
const float t )
static

◆ build_mesh_positions()

void blender::bke::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 )
static

◆ build_offsets()

template<typename CountFn>
void blender::bke::build_offsets ( MutableSpan< int > offsets,
const CountFn & count_fn )

◆ build_pbvh_for_dynamic_topology()

◆ build_pbvh_from_ccg()

◆ build_pbvh_from_regular_mesh()

◆ build_point_matrix() [1/2]

◆ build_point_matrix() [2/2]

float4x4 blender::bke::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

◆ build_point_matrix_miter_scale()

◆ build_socket_indices()

VectorSet< const bNodeSocket * > blender::bke::build_socket_indices ( const Span< const bNode * > nodes)
static

◆ build_vertex_groups_for_leaves()

◆ builtin_attributes() [1/3]

const auto & blender::bke::builtin_attributes ( )
static

◆ builtin_attributes() [2/3]

◆ builtin_attributes() [3/3]

◆ bvhtree_from_mesh_corner_tris_ex()

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.

Parameters
map_global_indicesRecord 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().

◆ bvhtree_from_mesh_edges_ex()

BVHTreeFromMesh blender::bke::bvhtree_from_mesh_edges_ex ( Span< float3 > vert_positions,
Span< int2 > edges,
const IndexMask & edges_mask )

◆ bvhtree_from_mesh_verts_ex()

BVHTreeFromMesh blender::bke::bvhtree_from_mesh_verts_ex ( Span< float3 > vert_positions,
const IndexMask & verts_mask )

◆ bvhtree_new_common()

std::unique_ptr< BVHTree, BVHTreeDeleter > blender::bke::bvhtree_new_common ( int elems_num)
static

◆ bvhtree_ray_tri_intersection()

◆ bvhtree_sphereray_tri_intersection()

◆ byte_color_to_bool()

◆ byte_color_to_color()

ColorGeometry4f blender::bke::byte_color_to_color ( const ColorGeometry4b & a)
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().

◆ byte_color_to_float()

float blender::bke::byte_color_to_float ( const ColorGeometry4b & a)
static

◆ byte_color_to_float2()

float2 blender::bke::byte_color_to_float2 ( const ColorGeometry4b & a)
static

◆ byte_color_to_float3()

float3 blender::bke::byte_color_to_float3 ( const ColorGeometry4b & a)
static

◆ byte_color_to_float4()

float4 blender::bke::byte_color_to_float4 ( const ColorGeometry4b & a)
static

◆ byte_color_to_int()

int32_t blender::bke::byte_color_to_int ( const ColorGeometry4b & a)
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().

◆ byte_color_to_int2()

◆ byte_color_to_int3()

◆ byte_color_to_int8()

int8_t blender::bke::byte_color_to_int8 ( const ColorGeometry4b & a)
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().

◆ byte_color_to_short2()

◆ cage_mesh_or_fallback()

◆ calc_edge_centers()

void blender::bke::calc_edge_centers ( const Span< float3 > positions,
const Span< int2 > edges,
MutableSpan< float3 > edge_centers )
static

◆ calc_face_centers()

void blender::bke::calc_face_centers ( const Span< float3 > positions,
const OffsetIndices< int > faces,
const Span< int > corner_verts,
MutableSpan< float3 > face_centers )
static

◆ calculate_evaluated_offsets()

◆ calculate_result_offsets()

◆ calculate_type_counts()

◆ call_convert_to_uninitialized_fn() [1/2]

void blender::bke::call_convert_to_uninitialized_fn ( const GVArray & from,
const mf::MultiFunction & fn,
const IndexMask & mask,
GMutableSpan to )
static

◆ call_convert_to_uninitialized_fn() [2/2]

void blender::bke::call_convert_to_uninitialized_fn ( const GVArray & from,
const mf::MultiFunction & fn,
GMutableSpan to )
static

◆ can_read_node_type()

◆ can_simple_adapt_for_single()

bool blender::bke::can_simple_adapt_for_single ( const Mesh & mesh,
const AttrDomain from_domain,
const AttrDomain to_domain )
static

◆ catmul_rom_interpolation()

float blender::bke::catmul_rom_interpolation ( const float p0,
const float p1,
const float p2,
const float p3,
const float t )
static

◆ changed_tags() [1/3]

const auto & blender::bke::changed_tags ( )
static

◆ changed_tags() [2/3]

◆ changed_tags() [3/3]

const auto & blender::bke::changed_tags ( )
static

◆ check_link_selected_backward()

bool blender::bke::check_link_selected_backward ( const bNodeLink & link,
Set< const bNode * > & visited_nodes )
static

◆ check_link_selected_forward()

bool blender::bke::check_link_selected_forward ( const bNodeLink & link,
Set< const bNode * > & visited_nodes )
static

◆ color_to_bool()

bool blender::bke::color_to_bool ( const ColorGeometry4f & a)
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().

◆ color_to_byte_color()

ColorGeometry4b blender::bke::color_to_byte_color ( const ColorGeometry4f & a)
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().

◆ color_to_float()

float blender::bke::color_to_float ( const ColorGeometry4f & a)
static

◆ color_to_float2()

◆ color_to_float3()

◆ color_to_float4()

float4 blender::bke::color_to_float4 ( const ColorGeometry4f & a)
static

Definition at line 554 of file type_conversions.cc.

References color_to_float4().

Referenced by byte_color_to_float4(), and color_to_float4().

◆ color_to_int()

int32_t blender::bke::color_to_int ( const ColorGeometry4f & a)
static

◆ color_to_int2()

◆ color_to_int3()

◆ color_to_int8()

int8_t blender::bke::color_to_int8 ( const ColorGeometry4f & a)
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().

◆ color_to_short2()

◆ component_is_available()

bool blender::bke::component_is_available ( const GeometrySet & geometry,
const GeometryComponent::Type type,
const AttrDomain domain )
static

◆ compute_local_mesh_groups()

◆ construct_curve_length_gvarray()

VArray< float > blender::bke::construct_curve_length_gvarray ( const CurvesGeometry & curves,
const AttrDomain domain )
static

◆ convert_collection_to_instances()

◆ copy_attributes()

◆ copy_attributes_group_to_group()

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 )

◆ copy_curve_domain_attribute_to_mesh()

◆ copy_curve_selection_custom_knots()

◆ copy_indices_to_offset_ranges()

template<typename T>
void blender::bke::copy_indices_to_offset_ranges ( const VArray< T > & src,
const Span< int > curve_indices,
const OffsetIndices< int > mesh_offsets,
MutableSpan< T > dst )
static

◆ copy_main_point_data_to_mesh_edges()

template<typename T>
void blender::bke::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 )
static

◆ copy_main_point_data_to_mesh_faces()

template<typename T>
void blender::bke::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

◆ copy_main_point_data_to_mesh_verts()

template<typename T>
void blender::bke::copy_main_point_data_to_mesh_verts ( const Span< T > src,
const int profile_point_num,
MutableSpan< T > dst )
static

◆ copy_main_point_domain_attribute_to_mesh()

◆ copy_point_selection_custom_knots()

◆ copy_profile_point_data_to_mesh_edges()

template<typename T>
void blender::bke::copy_profile_point_data_to_mesh_edges ( const Span< T > src,
const int main_segment_num,
MutableSpan< T > dst )
static

◆ copy_profile_point_data_to_mesh_faces()

template<typename T>
void blender::bke::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

◆ copy_profile_point_data_to_mesh_verts()

template<typename T>
void blender::bke::copy_profile_point_data_to_mesh_verts ( const Span< T > src,
const int main_point_num,
MutableSpan< T > dst )
static

◆ copy_profile_point_domain_attribute_to_mesh()

void blender::bke::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 )
static

◆ cpp_type_to_attribute_type()

AttrType blender::bke::cpp_type_to_attribute_type ( const CPPType & type)

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().

◆ cpp_type_to_custom_data_type()

◆ create_auto_smooth_modifier()

◆ create_blender_project_from_toml()

void blender::bke::create_blender_project_from_toml ( Main * bmain,
std::string toml_path,
std::string project_root_path )
static

◆ create_edges_tree_data() [1/2]

BVHTreeFromMesh blender::bke::create_edges_tree_data ( const BVHTree * tree,
const Span< float3 > positions,
const Span< int2 > edges )
static

◆ create_edges_tree_data() [2/2]

BVHTreeFromMesh blender::bke::create_edges_tree_data ( std::unique_ptr< BVHTree, BVHTreeDeleter > tree,
const Span< float3 > positions,
const Span< int2 > edges )
static

Definition at line 384 of file bvhutils.cc.

References create_edges_tree_data(), and blender::data.

◆ create_implicit_conversions()

DataTypeConversions blender::bke::create_implicit_conversions ( )
static

◆ create_legacy_faces_tree_data()

BVHTreeFromMesh blender::bke::create_legacy_faces_tree_data ( const BVHTree * tree,
const Span< float3 > positions,
const MFace * face )
static

◆ create_orco_mesh()

◆ create_socket_meta_data_properties()

◆ create_toml_from_blender_project()

◆ create_tree_from_edges()

◆ create_tree_from_legacy_faces()

std::unique_ptr< BVHTree, BVHTreeDeleter > blender::bke::create_tree_from_legacy_faces ( const Span< float3 > positions,
const Span< MFace > faces )
static

◆ create_tree_from_tris() [1/2]

◆ create_tree_from_tris() [2/2]

std::unique_ptr< BVHTree, BVHTreeDeleter > blender::bke::create_tree_from_tris ( const Span< float3 > positions,
const Span< int > corner_verts,
const Span< int3 > corner_tris )
static

◆ create_tree_from_verts()

◆ create_tris_tree_data() [1/2]

BVHTreeFromMesh blender::bke::create_tris_tree_data ( const BVHTree * tree,
const Span< float3 > positions,
const Span< int > corner_verts,
const Span< int3 > corner_tris )
static

◆ create_tris_tree_data() [2/2]

BVHTreeFromMesh blender::bke::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

Definition at line 421 of file bvhutils.cc.

References create_tris_tree_data(), and blender::data.

◆ create_verts_tree_data() [1/2]

BVHTreeFromMesh blender::bke::create_verts_tree_data ( const BVHTree * tree,
const Span< float3 > positions )
static

◆ create_verts_tree_data() [2/2]

BVHTreeFromMesh blender::bke::create_verts_tree_data ( std::unique_ptr< BVHTree, BVHTreeDeleter > tree,
const Span< float3 > positions )
static

Definition at line 363 of file bvhutils.cc.

References create_verts_tree_data(), and blender::data.

◆ curve_legacy_to_curves() [1/2]

◆ curve_legacy_to_curves() [2/2]

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.

◆ curve_normal_point_domain()

◆ curve_normals_varray()

◆ curve_to_mesh_sweep()

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.

Note
Normal calculation is by far the slowest part of calculations relating to the result mesh. Although it would be a sensible decision to use the better topology information available while generating the mesh to also generate the normals, that work may wasted if the output mesh is changed anyway in a way that affects the normals. So currently this code uses the safer / simpler solution of deferring normal calculation to the rest of Blender.
Parameters
miter_limit_angleA 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().

◆ curve_to_wire_mesh()

Mesh * blender::bke::curve_to_wire_mesh ( const CurvesGeometry & curve,
const bke::AttributeFilter & attribute_filter = {} )

◆ curve_type_from_legacy()

◆ curve_types_are_valid()

◆ curves_convert_customdata_to_storage()

◆ curves_copy_curve_selection()

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().

◆ curves_copy_parameters()

◆ curves_copy_point_selection()

◆ curves_new_no_attributes()

CurvesGeometry blender::bke::curves_new_no_attributes ( int point_num,
int curve_num )

◆ curves_new_nomain() [1/2]

Curves * blender::bke::curves_new_nomain ( CurvesGeometry curves)

◆ curves_new_nomain() [2/2]

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().

◆ curves_new_nomain_single()

◆ curves_normals_point_domain_calc()

◆ curves_store_surface_in_geometry_bundle()

◆ custom_data_type_to_attr_type()

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().

◆ custom_data_type_to_cpp_type()

◆ custom_data_type_to_socket_type()

◆ custom_data_type_to_volume_grid_type()

◆ default_value_for_type()

◆ defer_free_node_type()

void blender::bke::defer_free_node_type ( bNodeType * ntype)
static

◆ defer_free_socket_type()

void blender::bke::defer_free_socket_type ( bNodeSocketType * stype)
static

◆ defer_free_tree_type()

void blender::bke::defer_free_tree_type ( bNodeTreeType * tree_type)
static

◆ direct_link_node_socket()

◆ direct_link_node_socket_default_value()

◆ direct_link_node_socket_storage()

◆ discover_tree_zones()

◆ dist_bone_deform()

◆ editbmesh_build_data()

◆ editbmesh_calc_modifiers()

GeometrySet blender::bke::editbmesh_calc_modifiers ( Depsgraph & depsgraph,
const Scene & scene,
Object & ob,
const CustomData_MeshMasks & dataMask )
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().

◆ editbmesh_get_eval_cage()

◆ editbmesh_get_eval_cage_from_orig()

◆ editbmesh_modifier_is_enabled()

◆ ensure_array_storage()

◆ ensure_is_valid_project_variable_name()

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.

See also
is_valid_project_variable_name()
Returns
The new valid variable name.

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().

◆ ENUM_OPERATORS() [1/2]

blender::bke::ENUM_OPERATORS ( ShaderNodeAncestorFlags )

References ENUM_OPERATORS().

Referenced by ENUM_OPERATORS(), and ENUM_OPERATORS().

◆ ENUM_OPERATORS() [2/2]

blender::bke::ENUM_OPERATORS ( SoundTags )

References ENUM_OPERATORS().

◆ evaluate_attribute()

◆ evaluate_generic_data_for_curve()

◆ extensions_common_prefix()

std::string blender::bke::extensions_common_prefix ( const Span< std::string > extensions)
static

◆ extensions_group_is_collapsible()

bool blender::bke::extensions_group_is_collapsible ( const Span< std::string > extensions)
static

◆ file_handler_add()

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().

◆ file_handler_find()

◆ file_handler_remove()

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().

◆ file_handlers()

◆ file_handlers_poll_file_drop()

Vector< FileHandlerType * > blender::bke::file_handlers_poll_file_drop ( const bContext * C,
const Span< std::string > paths )

◆ file_handlers_vector()

Vector< std::unique_ptr< FileHandlerType > > & blender::bke::file_handlers_vector ( )
static

◆ fill_attribute_range_default()

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().

◆ fill_mesh_positions()

void blender::bke::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

◆ fill_mesh_topology()

void blender::bke::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

◆ find_attr_or_group()

std::variant< std::monostate, Attribute *, bDeformGroup * > blender::bke::find_attr_or_group ( AttributeStorage & storage,
std::optional< ListBaseT< bDeformGroup > * > vertex_groups,
const StringRef name )
static

◆ find_duplicate_faces() [1/2]

IndexMask blender::bke::find_duplicate_faces ( const Mesh & mesh,
const IndexMask & mask,
IndexMaskMemory & memory,
const bool verbose )
static

◆ find_duplicate_faces() [2/2]

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.

Parameters
r_originalsOptional 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().

◆ find_edges_bad_verts()

IndexMask blender::bke::find_edges_bad_verts ( const Mesh & mesh,
IndexMaskMemory & memory,
const bool verbose )
static

◆ find_edges_duplicates()

◆ find_faces_bad_edges()

◆ find_faces_bad_offsets()

◆ find_faces_bad_verts()

IndexMask blender::bke::find_faces_bad_verts ( const Mesh & mesh,
const IndexMask & mask,
IndexMaskMemory & memory,
const bool verbose )
static

◆ find_faces_duplicate_verts()

◆ find_faces_missing_edges()

◆ find_nearest_edges()

void blender::bke::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

◆ find_nearest_faces()

void blender::bke::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

◆ find_nearest_tris()

void blender::bke::find_nearest_tris ( const Span< float3 > positions,
const bvh::Tree & bvhtree,
MutableSpan< int > tris,
MutableSpan< float3 > bary_coords )
static

◆ find_nearest_tris_parallel()

void blender::bke::find_nearest_tris_parallel ( const Span< float3 > positions,
const bvh::Tree & bvhtree,
MutableSpan< int > tris,
MutableSpan< float3 > bary_coords )
static

◆ find_vertex_group()

bDeformGroup * blender::bke::find_vertex_group ( ListBaseT< bDeformGroup > & vertex_groups,
const StringRef name )
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().

◆ find_zone_nodes()

◆ flip_corner_data()

template<typename T>
void blender::bke::flip_corner_data ( const OffsetIndices< int > faces,
const IndexMask & face_selection,
MutableSpan< T > data )
static

◆ flip_custom_data_type()

◆ float2_to_bool()

bool blender::bke::float2_to_bool ( const float2 & a)
static

Definition at line 128 of file type_conversions.cc.

References float2_to_bool(), and blender::math::is_zero().

Referenced by float2_to_bool().

◆ float2_to_byte_color()

ColorGeometry4b blender::bke::float2_to_byte_color ( const float2 & a)
static

◆ float2_to_color()

ColorGeometry4f blender::bke::float2_to_color ( const float2 & a)
static

Definition at line 136 of file type_conversions.cc.

References float2_to_color().

Referenced by float2_to_byte_color(), and float2_to_color().

◆ float2_to_float()

float blender::bke::float2_to_float ( const float2 & a)
static

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().

◆ float2_to_float3()

float3 blender::bke::float2_to_float3 ( const float2 & a)
static

Definition at line 100 of file type_conversions.cc.

References float2_to_float3().

Referenced by float2_to_float3().

◆ float2_to_float4()

float4 blender::bke::float2_to_float4 ( const float2 & a)
static

Definition at line 104 of file type_conversions.cc.

References float2_to_float4().

Referenced by float2_to_float4().

◆ float2_to_int()

int blender::bke::float2_to_int ( const float2 & a)
static

Definition at line 112 of file type_conversions.cc.

References float2_to_int().

Referenced by float2_to_int().

◆ float2_to_int2()

int2 blender::bke::float2_to_int2 ( const float2 & a)
static

Definition at line 120 of file type_conversions.cc.

References float2_to_int2().

Referenced by float2_to_int2().

◆ float2_to_int3()

int3 blender::bke::float2_to_int3 ( const float2 & a)
static

Definition at line 124 of file type_conversions.cc.

References float2_to_int3().

Referenced by float2_to_int3().

◆ float2_to_int8()

int8_t blender::bke::float2_to_int8 ( const float2 & a)
static

Definition at line 132 of file type_conversions.cc.

References float2_to_int8(), and float_to_int8().

Referenced by float2_to_int8().

◆ float2_to_quaternion()

math::Quaternion blender::bke::float2_to_quaternion ( const float2 & a)
static

Definition at line 144 of file type_conversions.cc.

References float2_to_quaternion(), and blender::math::to_quaternion().

Referenced by float2_to_quaternion().

◆ float2_to_short2()

short2 blender::bke::float2_to_short2 ( const float2 & a)
static

Definition at line 116 of file type_conversions.cc.

References float2_to_short2().

Referenced by float2_to_short2().

◆ float3_to_bool()

bool blender::bke::float3_to_bool ( const float3 & a)
static

Definition at line 149 of file type_conversions.cc.

References float3_to_bool(), and blender::math::is_zero().

Referenced by float3_to_bool().

◆ float3_to_byte_color()

ColorGeometry4b blender::bke::float3_to_byte_color ( const float3 & a)
static

◆ float3_to_color()

ColorGeometry4f blender::bke::float3_to_color ( const float3 & a)
static

Definition at line 185 of file type_conversions.cc.

References float3_to_color().

Referenced by float3_to_byte_color(), and float3_to_color().

◆ float3_to_float()

float blender::bke::float3_to_float ( const float3 & a)
static

Definition at line 157 of file type_conversions.cc.

References float3_to_float().

Referenced by float3_to_float(), and int3_to_float().

◆ float3_to_float2()

float2 blender::bke::float3_to_float2 ( const float3 & a)
static

Definition at line 177 of file type_conversions.cc.

References float3_to_float2().

Referenced by float3_to_float2().

◆ float3_to_float4()

float4 blender::bke::float3_to_float4 ( const float3 & a)
static

Definition at line 181 of file type_conversions.cc.

References float3_to_float4().

Referenced by float3_to_float4().

◆ float3_to_int()

int blender::bke::float3_to_int ( const float3 & a)
static

Definition at line 161 of file type_conversions.cc.

References float3_to_int().

Referenced by float3_to_int(), and int3_to_int().

◆ float3_to_int2()

int2 blender::bke::float3_to_int2 ( const float3 & a)
static

Definition at line 169 of file type_conversions.cc.

References float3_to_int2().

Referenced by float3_to_int2().

◆ float3_to_int3()

int3 blender::bke::float3_to_int3 ( const float3 & a)
static

Definition at line 173 of file type_conversions.cc.

References float3_to_int3().

Referenced by float3_to_int3().

◆ float3_to_int8()

int8_t blender::bke::float3_to_int8 ( const float3 & a)
static

Definition at line 153 of file type_conversions.cc.

References float3_to_int8(), and float_to_int8().

Referenced by float3_to_int8().

◆ float3_to_quaternion()

math::Quaternion blender::bke::float3_to_quaternion ( const float3 & a)
static

Definition at line 193 of file type_conversions.cc.

References float3_to_quaternion(), and blender::math::to_quaternion().

Referenced by float3_to_quaternion().

◆ float3_to_short2()

short2 blender::bke::float3_to_short2 ( const float3 & a)
static

Definition at line 165 of file type_conversions.cc.

References float3_to_short2().

Referenced by float3_to_short2().

◆ float4_to_bool()

bool blender::bke::float4_to_bool ( const float4 & a)
static

Definition at line 198 of file type_conversions.cc.

References float4_to_bool(), and blender::math::is_zero().

Referenced by float4_to_bool().

◆ float4_to_byte_color()

ColorGeometry4b blender::bke::float4_to_byte_color ( const float4 & a)
static

◆ float4_to_color()

ColorGeometry4f blender::bke::float4_to_color ( const float4 & a)
static

Definition at line 234 of file type_conversions.cc.

References float4_to_color().

Referenced by float4_to_byte_color(), and float4_to_color().

◆ float4_to_float()

float blender::bke::float4_to_float ( const float4 & a)
static

Definition at line 206 of file type_conversions.cc.

References float4_to_float().

Referenced by float4_to_float().

◆ float4_to_float2()

float2 blender::bke::float4_to_float2 ( const float4 & a)
static

Definition at line 226 of file type_conversions.cc.

References float4_to_float2().

Referenced by float4_to_float2().

◆ float4_to_float3()

float3 blender::bke::float4_to_float3 ( const float4 & a)
static

Definition at line 230 of file type_conversions.cc.

References float4_to_float3().

Referenced by float4_to_float3().

◆ float4_to_int()

int blender::bke::float4_to_int ( const float4 & a)
static

Definition at line 210 of file type_conversions.cc.

References float4_to_int().

Referenced by float4_to_int().

◆ float4_to_int2()

int2 blender::bke::float4_to_int2 ( const float4 & a)
static

Definition at line 218 of file type_conversions.cc.

References float4_to_int2().

Referenced by float4_to_int2().

◆ float4_to_int3()

int3 blender::bke::float4_to_int3 ( const float4 & a)
static

Definition at line 222 of file type_conversions.cc.

References float4_to_int3().

Referenced by float4_to_int3().

◆ float4_to_int8()

int8_t blender::bke::float4_to_int8 ( const float4 & a)
static

Definition at line 202 of file type_conversions.cc.

References float4_to_int8(), and float_to_int8().

Referenced by float4_to_int8().

◆ float4_to_quaternion()

math::Quaternion blender::bke::float4_to_quaternion ( const float4 & a)
static

Definition at line 242 of file type_conversions.cc.

References float4_to_quaternion().

Referenced by float4_to_quaternion().

◆ float4_to_short2()

short2 blender::bke::float4_to_short2 ( const float4 & a)
static

Definition at line 214 of file type_conversions.cc.

References float4_to_short2().

Referenced by float4_to_short2().

◆ float4x4_to_quaternion()

math::Quaternion blender::bke::float4x4_to_quaternion ( const float4x4 & a)
static

◆ float_to_bool()

bool blender::bke::float_to_bool ( const float & a)
static

Definition at line 78 of file type_conversions.cc.

References float_to_bool().

Referenced by float_to_bool().

◆ float_to_byte_color()

ColorGeometry4b blender::bke::float_to_byte_color ( const float & a)
static

◆ float_to_color()

ColorGeometry4f blender::bke::float_to_color ( const float & a)
static

Definition at line 87 of file type_conversions.cc.

References float_to_color().

Referenced by float_to_byte_color(), and float_to_color().

◆ float_to_float2()

float2 blender::bke::float_to_float2 ( const float & a)
static

Definition at line 50 of file type_conversions.cc.

References float_to_float2().

Referenced by float_to_float2().

◆ float_to_float3()

float3 blender::bke::float_to_float3 ( const float & a)
static

Definition at line 54 of file type_conversions.cc.

References float_to_float3().

Referenced by float_to_float3().

◆ float_to_float4()

float4 blender::bke::float_to_float4 ( const float & a)
static

Definition at line 58 of file type_conversions.cc.

References float_to_float4().

Referenced by float_to_float4().

◆ float_to_int()

int32_t blender::bke::float_to_int ( const float & a)
static

Definition at line 62 of file type_conversions.cc.

References float_to_int().

Referenced by float_to_int().

◆ float_to_int2()

int2 blender::bke::float_to_int2 ( const float & a)
static

Definition at line 70 of file type_conversions.cc.

References float_to_int2().

Referenced by float_to_int2().

◆ float_to_int3()

int3 blender::bke::float_to_int3 ( const float & a)
static

Definition at line 74 of file type_conversions.cc.

References float_to_int3().

Referenced by float_to_int3().

◆ float_to_int8()

int8_t blender::bke::float_to_int8 ( const float & a)
static

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().

◆ float_to_quaternion()

math::Quaternion blender::bke::float_to_quaternion ( const float & a)
static

Definition at line 95 of file type_conversions.cc.

References float_to_quaternion(), and blender::math::to_quaternion().

Referenced by float_to_quaternion().

◆ float_to_short2()

short2 blender::bke::float_to_short2 ( const float & a)
static

Definition at line 66 of file type_conversions.cc.

References float_to_short2().

Referenced by float_to_short2().

◆ foreach_curve_combination()

◆ foreach_vertex_group()

◆ free_batch_cache()

◆ free_bvh_caches()

◆ free_localized_node_groups()

void blender::bke::free_localized_node_groups ( bNodeTree * ntree)
static

◆ free_mesh_eval()

void blender::bke::free_mesh_eval ( MeshRuntime & mesh_runtime)
static

◆ gather_attributes() [1/3]

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().

◆ gather_attributes() [2/3]

◆ gather_attributes() [3/3]

◆ gather_attributes_group_to_group()

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 )

◆ gather_attributes_to_groups()

◆ gather_component_types_recursive()

◆ gather_deform_verts() [1/3]

void blender::bke::gather_deform_verts ( Span< MDeformVert > src,
const IndexMask & indices,
MutableSpan< MDeformVert > dst )

◆ gather_deform_verts() [2/3]

void blender::bke::gather_deform_verts ( Span< MDeformVert > src,
Span< int > indices,
const IndexMask & dst_mask,
MutableSpan< MDeformVert > dst )

◆ gather_deform_verts() [3/3]

◆ generate_unique_instance_ids()

◆ geo_nodes_base_cpp_type_to_socket_type()

◆ geometry_mesh_edit_hints_ensure()

MeshEditHints & blender::bke::geometry_mesh_edit_hints_ensure ( GeometrySet & geometry)
static

◆ get_armature_deform_params()

ArmatureDeformParams blender::bke::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 )
static

◆ get_attribute_domain_for_mesh()

AttrDomain blender::bke::get_attribute_domain_for_mesh ( const AttributeAccessor & mesh_attributes,
const StringRef name )
static

◆ get_current_time_in_seconds()

◆ get_curve_single_vert()

CurvesGeometry blender::bke::get_curve_single_vert ( )
static

◆ get_curves_info()

CurvesInfo blender::bke::get_curves_info ( const CurvesGeometry & main,
const CurvesGeometry & profile )
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().

◆ get_custom_data() [1/2]

const CustomData & blender::bke::get_custom_data ( const Mesh & mesh,
const AttrDomain domain )
static

◆ get_custom_data() [2/2]

CustomData & blender::bke::get_custom_data ( Mesh & mesh,
const AttrDomain domain )
static

Definition at line 284 of file attribute_legacy_convert.cc.

References get_custom_data().

◆ get_default_for_fill()

◆ get_direct_zone_relations()

◆ get_domain_size() [1/2]

◆ get_domain_size() [2/2]

int blender::bke::get_domain_size ( const void * owner,
const AttrDomain domain )
static

Definition at line 699 of file mesh_attributes.cc.

References Corner, Edge, Face, get_domain_size(), and Point.

◆ get_first_uv_map_name()

◆ get_implicit_type_conversions()

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().

◆ get_instances_accessor_functions()

◆ get_internal_link_type_priority()

int blender::bke::get_internal_link_type_priority ( const bNodeSocketType * from,
const bNodeSocketType * to )
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().

◆ get_invalid_float_mask()

IndexMask blender::bke::get_invalid_float_mask ( const Span< float > values,
const int floats_per_item,
IndexMaskMemory & memory )
static

◆ get_known_node_types_set()

Set< int > blender::bke::get_known_node_types_set ( )
static

◆ get_mesh_accessor_functions()

◆ get_mutable_attribute() [1/2]

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().

◆ get_mutable_attribute() [2/2]

template<typename T>
MutableSpan< T > blender::bke::get_mutable_attribute ( AttributeStorage & storage,
const AttrDomain domain,
const StringRef name,
const int64_t domain_size,
const T & default_value = T() )
inline

◆ get_next_auto_legacy_type()

◆ get_node_tree_type_map()

auto & blender::bke::get_node_tree_type_map ( )
static

◆ get_node_type_alias_map()

auto & blender::bke::get_node_type_alias_map ( )
static

◆ get_node_type_map()

auto & blender::bke::get_node_type_map ( )
static

◆ get_orco_coords()

◆ get_pointcloud_accessor_functions()

◆ get_random_id_attribute_name()

StringRef blender::bke::get_random_id_attribute_name ( const AttrDomain domain)
static

◆ get_socket_type_map()

auto & blender::bke::get_socket_type_map ( )
static

◆ get_socket_value()

◆ get_span_attribute() [1/2]

◆ get_span_attribute() [2/2]

template<typename T>
std::optional< Span< T > > blender::bke::get_span_attribute ( const AttributeStorage & storage,
const AttrDomain domain,
const StringRef name,
const int64_t domain_size )
inline

Definition at line 70 of file attribute_storage_access.hh.

References blender::CPPType::get(), get_span_attribute(), storage, and T.

◆ get_transform_position()

float3 blender::bke::get_transform_position ( const float4x4 & transform)
static

Definition at line 534 of file instances.cc.

References get_transform_position().

Referenced by get_transform_position().

◆ get_tree_zones()

◆ get_varray_attribute() [1/2]

◆ get_varray_attribute() [2/2]

template<typename T>
VArray< T > blender::bke::get_varray_attribute ( const AttributeStorage & storage,
const AttrDomain domain,
const StringRef name,
const int64_t domain_size,
const T & default_value )
inline

◆ get_zone_types_vector()

Vector< const bNodeZoneType * > & blender::bke::get_zone_types_vector ( )
static

◆ grease_pencil_convert_customdata_to_storage()

◆ grid_type_to_socket_type()

◆ gtest_setup()

◆ gtest_teardown()

◆ handle_type_from_legacy()

◆ has_caps()

bool blender::bke::has_caps ( const bool main_cyclic,
const bool profile_cyclic,
const int profile_segment_num )
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().

◆ hash_to_anonymous_attribute_name()

◆ initialize_new_data()

◆ instance_attribute_accessor_functions()

◆ instance_position_varray()

◆ instance_position_varray_for_write()

◆ int2_to_bool()

bool blender::bke::int2_to_bool ( const int2 & a)
static

Definition at line 338 of file type_conversions.cc.

References int2_to_bool(), and blender::math::is_zero().

Referenced by int2_to_bool().

◆ int2_to_byte_color()

ColorGeometry4b blender::bke::int2_to_byte_color ( const int2 & a)
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().

◆ int2_to_color()

ColorGeometry4f blender::bke::int2_to_color ( const int2 & a)
static

Definition at line 374 of file type_conversions.cc.

References int2_to_color().

Referenced by int2_to_byte_color(), and int2_to_color().

◆ int2_to_float()

float blender::bke::int2_to_float ( const int2 & a)
static

Definition at line 362 of file type_conversions.cc.

References float2_to_float(), and int2_to_float().

Referenced by int2_to_float().

◆ int2_to_float2()

float2 blender::bke::int2_to_float2 ( const int2 & a)
static

Definition at line 342 of file type_conversions.cc.

References int2_to_float2().

Referenced by int2_to_float2().

◆ int2_to_float3()

float3 blender::bke::int2_to_float3 ( const int2 & a)
static

Definition at line 366 of file type_conversions.cc.

References int2_to_float3().

Referenced by int2_to_float3().

◆ int2_to_float4()

float4 blender::bke::int2_to_float4 ( const int2 & a)
static

Definition at line 370 of file type_conversions.cc.

References int2_to_float4().

Referenced by int2_to_float4().

◆ int2_to_int()

int blender::bke::int2_to_int ( const int2 & a)
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().

◆ int2_to_int3()

int3 blender::bke::int2_to_int3 ( const int2 & a)
static

Definition at line 350 of file type_conversions.cc.

References int2_to_int3().

Referenced by int2_to_int3().

◆ int2_to_int8()

int8_t blender::bke::int2_to_int8 ( const int2 & a)
static

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().

◆ int2_to_short2()

short2 blender::bke::int2_to_short2 ( const int2 & a)
static

Definition at line 354 of file type_conversions.cc.

References int2_to_short2().

Referenced by int2_to_short2().

◆ int3_to_bool()

bool blender::bke::int3_to_bool ( const int3 & a)
static

Definition at line 383 of file type_conversions.cc.

References int3_to_bool(), and blender::math::is_zero().

Referenced by int3_to_bool().

◆ int3_to_byte_color()

ColorGeometry4b blender::bke::int3_to_byte_color ( const int3 & a)
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().

◆ int3_to_color()

ColorGeometry4f blender::bke::int3_to_color ( const int3 & a)
static

Definition at line 419 of file type_conversions.cc.

References int3_to_color().

Referenced by int3_to_byte_color(), and int3_to_color().

◆ int3_to_float()

float blender::bke::int3_to_float ( const int3 & a)
static

Definition at line 407 of file type_conversions.cc.

References float3_to_float(), and int3_to_float().

Referenced by int3_to_float().

◆ int3_to_float2()

float2 blender::bke::int3_to_float2 ( const int3 & a)
static

Definition at line 387 of file type_conversions.cc.

References int3_to_float2().

Referenced by int3_to_float2().

◆ int3_to_float3()

float3 blender::bke::int3_to_float3 ( const int3 & a)
static

Definition at line 411 of file type_conversions.cc.

References int3_to_float3().

Referenced by int3_to_float3().

◆ int3_to_float4()

float4 blender::bke::int3_to_float4 ( const int3 & a)
static

Definition at line 415 of file type_conversions.cc.

References int3_to_float4().

Referenced by int3_to_float4().

◆ int3_to_int()

int blender::bke::int3_to_int ( const int3 & a)
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().

◆ int3_to_int2()

int2 blender::bke::int3_to_int2 ( const int3 & a)
static

Definition at line 395 of file type_conversions.cc.

References int3_to_int2().

Referenced by int3_to_int2().

◆ int3_to_int8()

int8_t blender::bke::int3_to_int8 ( const int3 & a)
static

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().

◆ int3_to_short2()

short2 blender::bke::int3_to_short2 ( const int3 & a)
static

Definition at line 399 of file type_conversions.cc.

References int3_to_short2().

Referenced by int3_to_short2().

◆ int8_to_bool()

bool blender::bke::int8_to_bool ( const int8_t & a)
static

Definition at line 428 of file type_conversions.cc.

References int8_to_bool().

Referenced by int8_to_bool().

◆ int8_to_byte_color()

ColorGeometry4b blender::bke::int8_to_byte_color ( const int8_t & a)
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().

◆ int8_to_color()

ColorGeometry4f blender::bke::int8_to_color ( const int8_t & a)
static

Definition at line 464 of file type_conversions.cc.

References int8_to_color().

Referenced by int8_to_byte_color(), and int8_to_color().

◆ int8_to_float()

float blender::bke::int8_to_float ( const int8_t & a)
static

Definition at line 448 of file type_conversions.cc.

References float, and int8_to_float().

Referenced by int8_to_float().

◆ int8_to_float2()

float2 blender::bke::int8_to_float2 ( const int8_t & a)
static

Definition at line 452 of file type_conversions.cc.

References int8_to_float2().

Referenced by int8_to_float2().

◆ int8_to_float3()

float3 blender::bke::int8_to_float3 ( const int8_t & a)
static

Definition at line 456 of file type_conversions.cc.

References int8_to_float3().

Referenced by int8_to_float3().

◆ int8_to_float4()

float4 blender::bke::int8_to_float4 ( const int8_t & a)
static

Definition at line 460 of file type_conversions.cc.

References int8_to_float4().

Referenced by int8_to_float4().

◆ int8_to_int()

int blender::bke::int8_to_int ( const int8_t & a)
static

Definition at line 432 of file type_conversions.cc.

References int8_to_int().

Referenced by int8_to_int().

◆ int8_to_int2()

int2 blender::bke::int8_to_int2 ( const int8_t & a)
static

Definition at line 440 of file type_conversions.cc.

References int8_to_int2().

Referenced by int8_to_int2().

◆ int8_to_int3()

int3 blender::bke::int8_to_int3 ( const int8_t & a)
static

Definition at line 444 of file type_conversions.cc.

References int8_to_int3().

Referenced by int8_to_int3().

◆ int8_to_short2()

short2 blender::bke::int8_to_short2 ( const int8_t & a)
static

Definition at line 436 of file type_conversions.cc.

References int8_to_short2().

Referenced by int8_to_short2().

◆ int_to_bool()

bool blender::bke::int_to_bool ( const int32_t & a)
static

Definition at line 247 of file type_conversions.cc.

References int_to_bool().

Referenced by int_to_bool().

◆ int_to_byte_color()

ColorGeometry4b blender::bke::int_to_byte_color ( const int32_t & a)
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().

◆ int_to_color()

ColorGeometry4f blender::bke::int_to_color ( const int32_t & a)
static

Definition at line 284 of file type_conversions.cc.

References int_to_color().

Referenced by int_to_byte_color(), and int_to_color().

◆ int_to_float()

float blender::bke::int_to_float ( const int32_t & a)
static

Definition at line 268 of file type_conversions.cc.

References float, and int_to_float().

Referenced by int_to_float().

◆ int_to_float2()

float2 blender::bke::int_to_float2 ( const int32_t & a)
static

Definition at line 272 of file type_conversions.cc.

References int_to_float2().

Referenced by int_to_float2().

◆ int_to_float3()

float3 blender::bke::int_to_float3 ( const int32_t & a)
static

Definition at line 276 of file type_conversions.cc.

References int_to_float3().

Referenced by int_to_float3().

◆ int_to_float4()

float4 blender::bke::int_to_float4 ( const int32_t & a)
static

Definition at line 280 of file type_conversions.cc.

References int_to_float4().

Referenced by int_to_float4().

◆ int_to_int2()

int2 blender::bke::int_to_int2 ( const int32_t & a)
static

Definition at line 260 of file type_conversions.cc.

References int_to_int2().

Referenced by int_to_int2().

◆ int_to_int3()

int3 blender::bke::int_to_int3 ( const int32_t & a)
static

Definition at line 264 of file type_conversions.cc.

References int_to_int3().

Referenced by int_to_int3().

◆ int_to_int8()

int8_t blender::bke::int_to_int8 ( const int32_t & a)
static

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().

◆ int_to_short2()

short2 blender::bke::int_to_short2 ( const int32_t & a)
static

Definition at line 256 of file type_conversions.cc.

References int_to_short2().

Referenced by int_to_short2().

◆ is_auto_smooth_node_tree()

◆ is_node_socket_supported()

◆ is_tree_changed()

◆ is_valid_curve_type()

bool blender::bke::is_valid_curve_type ( const int8_t type)
static

◆ is_valid_project_variable_name()

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().

◆ iter_backwards_ex()

◆ knots_mode_from_legacy()

◆ library_foreach_node_socket()

◆ loose_edges_no_hidden_mask_get()

◆ loose_verts_no_hidden_mask_get()

◆ make_socket()

◆ make_vertexcos__mapFunc()

void blender::bke::make_vertexcos__mapFunc ( void * user_data,
int index,
const float co[3],
const float [3] )
static

◆ mark_bezier_vector_edges_sharp()

void blender::bke::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

◆ merge_bounds()

Bounds< float3 > blender::bke::merge_bounds ( const Bounds< float3 > & a,
const Bounds< float3 > & b )
static

◆ mesh_apply_spatial_organization()

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().

◆ mesh_attribute_accessor_functions()

◆ mesh_build_data()

◆ mesh_build_extra_data()

void blender::bke::mesh_build_extra_data ( const Depsgraph & depsgraph,
const Object & ob,
const Mesh & mesh_eval )
static

◆ mesh_calc_edges() [1/2]

◆ mesh_calc_edges() [2/2]

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().

◆ mesh_calc_modifiers()

GeometrySet blender::bke::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

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().

◆ mesh_convert_customdata_to_storage()

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().

◆ mesh_corner_tris_nearest_point()

◆ mesh_corner_tris_spherecast()

◆ mesh_create_eval_final()

◆ mesh_create_eval_no_deform()

Mesh * blender::bke::mesh_create_eval_no_deform ( Depsgraph * depsgraph,
const Scene * scene,
Object * ob,
const CustomData_MeshMasks * dataMask )

◆ mesh_create_eval_no_deform_render()

Mesh * blender::bke::mesh_create_eval_no_deform_render ( Depsgraph * depsgraph,
const Scene * scene,
Object * ob,
const CustomData_MeshMasks * dataMask )

◆ mesh_custom_normals_to_generic()

◆ mesh_data_update()

◆ mesh_edge_hide_from_vert()

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().

◆ mesh_edges_nearest_point()

void blender::bke::mesh_edges_nearest_point ( void * userdata,
int index,
const float co[3],
BVHTreeNearest * nearest )
static

Callback to BVH-tree nearest point. The tree must have been built using #bvhtree_from_mesh_edges.

Parameters
userdataMust 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().

◆ mesh_edges_spherecast()

void blender::bke::mesh_edges_spherecast ( void * userdata,
int index,
const BVHTreeRay * ray,
BVHTreeRayHit * hit )
static

◆ mesh_ensure_active_uv_map()

◆ mesh_ensure_default_color_attribute_on_add()

◆ mesh_ensure_default_uv_attribute_on_add()

◆ mesh_ensure_default_uv_map()

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().

◆ mesh_ensure_required_data_layers()

◆ mesh_eval_assign_key()

void blender::bke::mesh_eval_assign_key ( GeometrySet & geometry,
Key * key )
static

◆ mesh_face_hide_from_vert()

void blender::bke::mesh_face_hide_from_vert ( OffsetIndices< int > faces,
Span< int > corner_verts,
Span< bool > hide_vert,
MutableSpan< bool > hide_poly )

◆ mesh_faces_nearest_point()

void blender::bke::mesh_faces_nearest_point ( void * userdata,
int index,
const float co[3],
BVHTreeNearest * nearest )
static

Callback to BVH-tree nearest point. The tree must have been built using #bvhtree_from_mesh_faces.

Parameters
userdataMust 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().

◆ mesh_faces_spherecast()

void blender::bke::mesh_faces_spherecast ( void * userdata,
int index,
const BVHTreeRay * ray,
BVHTreeRayHit * hit )
static

◆ mesh_find_faces_duplicate_verts()

IndexMask blender::bke::mesh_find_faces_duplicate_verts ( const Mesh & mesh,
IndexMaskMemory & memory )

Check whether faces contain duplicate vertex indices.

Returns
a mask of all invalid faces.

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().

◆ mesh_flip_faces()

◆ mesh_freestyle_marks_to_generic()

◆ mesh_get_eval_deform()

◆ mesh_get_mapped_verts_coords()

◆ mesh_hide_face_flush()

◆ mesh_hide_vert_flush()

◆ mesh_init_origspace()

◆ mesh_is_valid()

bool blender::bke::mesh_is_valid ( const Mesh & mesh,
bool verbose = true )

Check whether the mesh upholds required invariants.

Returns
True if the mesh is valid.

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_new_no_attributes()

◆ mesh_normals_varray()

VArray< float3 > blender::bke::mesh_normals_varray ( const Mesh & mesh,
const IndexMask & mask,
AttrDomain domain,
bool no_corner_normals = false,
bool true_normals = false )

◆ mesh_remesh_reproject_attributes()

void blender::bke::mesh_remesh_reproject_attributes ( const Mesh & src,
Mesh & dst )

◆ mesh_remove_invalid_attribute_strings()

void blender::bke::mesh_remove_invalid_attribute_strings ( Mesh & mesh)

◆ mesh_sculpt_mask_to_generic()

◆ mesh_select_edge_flush()

◆ mesh_select_face_flush()

◆ mesh_select_vert_flush()

◆ mesh_set_custom_normals()

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().

Parameters
corner_normalsIs 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().

◆ mesh_set_custom_normals_from_verts()

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().

Parameters
vert_normalsIs 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().

◆ mesh_set_custom_normals_from_verts_normalized()

void blender::bke::mesh_set_custom_normals_from_verts_normalized ( Mesh & mesh,
MutableSpan< float3 > vert_normals )

◆ mesh_set_custom_normals_normalized()

◆ mesh_set_only_copy()

void blender::bke::mesh_set_only_copy ( Mesh * mesh,
const CustomData_MeshMasks * mask )
static

◆ mesh_sharp_edges_set_from_angle()

◆ mesh_skin_to_generic()

◆ mesh_skin_to_legacy()

◆ mesh_smooth_set()

◆ mesh_transform()

◆ mesh_translate()

◆ mesh_uv_select_to_single_attribute()

◆ mesh_validate()

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.

Parameters
allow_missing_edgesWhen 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.
Returns
True if the mesh was valid (fixes were not applied).

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().

◆ mesh_validate_impl()

◆ mesh_validate_material_indices()

bool blender::bke::mesh_validate_material_indices ( Mesh & mesh)

Check whether face material indices are valid, and correct them if not.

Returns
True if the indices were valid.

Definition at line 992 of file mesh_validate.cc.

References mesh_validate_material_indices(), and validate_material_indices().

Referenced by mesh_validate_material_indices().

◆ mesh_vert_normals_assign() [1/2]

void blender::bke::mesh_vert_normals_assign ( Mesh & mesh,
Span< float3 > vert_normals )

◆ mesh_vert_normals_assign() [2/2]

void blender::bke::mesh_vert_normals_assign ( Mesh & mesh,
Vector< float3 > vert_normals )

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().

◆ mesh_verts_spherecast()

void blender::bke::mesh_verts_spherecast ( void * userdata,
int index,
const BVHTreeRay * ray,
BVHTreeRayHit * hit )
static

Callback to BVH-tree ray-cast. The tree must have been built using bvhtree_from_mesh_verts.

Parameters
userdataMust 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().

◆ mesh_verts_spherecast_do()

◆ mesh_wrapper_vert_coords_ensure_for_write()

◆ mix_deform_verts()

◆ modifier_modify_mesh_and_geometry_set()

void blender::bke::modifier_modify_mesh_and_geometry_set ( ModifierData * md,
const ModifierEvalContext & mectx,
const Mesh & input_mesh,
GeometrySet & geometry_set )
static

◆ negative_bounds()

Bounds< float3 > blender::bke::negative_bounds ( )
static

◆ node_add_link()

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().

◆ node_add_node()

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().

◆ node_add_socket()

◆ node_add_sockets_from_type()

◆ node_add_static_node()

bNode * blender::bke::node_add_static_node ( const bContext * C,
bNodeTree & ntree,
int type )

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().

◆ node_add_static_socket()

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().

◆ node_attach_node()

◆ node_blend_read_data_storage()

◆ node_blend_write_storage()

◆ node_chain_iterator()

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).

Parameters
reversedfor backwards iteration
Note
Recursive

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().

◆ node_chain_iterator_backwards()

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.

Note
Needs updated socket links (ntreeUpdateTree).
Recursive

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().

◆ node_clear_active()

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().

◆ node_color_tag()

◆ node_copy_with_mapping()

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 )
Note
keeps socket list order identical, for copying links.
Parameters
dst_unique_nameThe 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_identifierSame 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().

◆ node_count_links()

int blender::bke::node_count_links ( const bNodeTree * ntree,
const bNodeSocket * socket )
static

◆ node_count_socket_links()

◆ node_create_asset_meta_data_properties()

◆ node_declaration_ensure()

bool blender::bke::node_declaration_ensure ( bNodeTree & ntree,
bNode & node )

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().

◆ node_declaration_ensure_on_outdated_node()

bool blender::bke::node_declaration_ensure_on_outdated_node ( bNodeTree & ntree,
bNode & node )

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().

◆ node_detach_node()

◆ node_dimensions_get()

float2 blender::bke::node_dimensions_get ( const bNode & node)

Definition at line 5587 of file node.cc.

References node, and node_dimensions_get().

Referenced by node_dimensions_get().

◆ node_find_enabled_input_socket()

◆ node_find_enabled_output_socket()

◆ node_find_enabled_socket()

◆ node_find_interface_input_by_identifier()

const bNodeTreeInterfaceSocket * blender::bke::node_find_interface_input_by_identifier ( const bNodeTree & ntree,
StringRef identifier )

◆ node_find_interface_output_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().

◆ node_find_node() [1/2]

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().

◆ node_find_node() [2/2]

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().

◆ node_find_node_by_name()

◆ node_find_node_try()

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().

◆ node_find_root_parent()

bNode * blender::bke::node_find_root_parent ( bNode & node)
Note
Recursive.

Definition at line 4103 of file node.cc.

References node, node_find_root_parent(), and blender::bNode::parent.

Referenced by node_find_root_parent().

◆ node_find_socket() [1/2]

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().

◆ node_find_socket() [2/2]

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().

◆ node_foreach_id()

◆ node_foreach_path()

◆ node_foreach_working_space_color()

◆ node_free_node()

◆ node_free_socket_type()

void blender::bke::node_free_socket_type ( void * socktype_v)
static

◆ node_free_type()

void blender::bke::node_free_type ( void * nodetype_v)
static

◆ node_get_active()

bNode * blender::bke::node_get_active ( bNodeTree & ntree)

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().

◆ node_get_active_paint_canvas()

◆ node_get_active_texture()

bNode * blender::bke::node_get_active_texture ( bNodeTree & ntree)

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().

◆ node_group_poll()

bool blender::bke::node_group_poll ( const bNodeTree * nodetree,
const bNodeTree * grouptree,
const char ** r_disabled_hint )

◆ node_hash_int_str()

bNodeInstanceKey blender::bke::node_hash_int_str ( bNodeInstanceKey hash,
const char * str )
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().

◆ node_ids_to_vector()

Vector< const bNode * > blender::bke::node_ids_to_vector ( const bNodeTree & tree,
const Vector< int > & node_ids )
static

◆ node_init()

◆ node_instance_key()

◆ node_internal_relink()

◆ node_is_connected_to_output()

◆ node_is_dangling_reroute()

◆ node_is_parent_and_child()

bool blender::bke::node_is_parent_and_child ( const bNode & parent,
const bNode & child )

◆ node_is_static_socket_type()

◆ node_label()

◆ node_link_is_hidden()

◆ node_link_is_selected()

◆ node_link_set_mute()

◆ node_modify_socket_type()

◆ node_modify_socket_type_static()

◆ node_node_foreach_id()

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().

◆ node_owner_pointer_get()

ID ** blender::bke::node_owner_pointer_get ( ID * id,
const bool debug_relationship_assert )
static

◆ node_parents_iterator()

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)

Note
Recursive

Definition at line 4228 of file node.cc.

References node, and node_parents_iterator().

Referenced by node_parents_iterator().

◆ node_poll_default()

bool blender::bke::node_poll_default ( const bNodeType * ,
const bNodeTree * ,
const char **  )
static

Definition at line 5839 of file node.cc.

References node_poll_default().

Referenced by node_poll_default(), and node_type_base().

◆ node_poll_instance_default()

bool blender::bke::node_poll_instance_default ( const bNode * node,
const bNodeTree * ntree,
const char ** r_disabled_hint )
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().

◆ node_position_propagate()

◆ node_position_relative()

◆ node_rebuild_id_vector()

◆ node_register_alias()

void blender::bke::node_register_alias ( bNodeType & nt,
UString alias )

◆ node_register_socket_type()

void blender::bke::node_register_socket_type ( bNodeSocketType & stype)

◆ node_register_type()

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().

◆ node_remove_link()

void blender::bke::node_remove_link ( bNodeTree * ntree,
bNodeLink & link )

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().

◆ node_remove_node()

◆ node_remove_socket()

◆ node_remove_socket_ex()

◆ node_remove_socket_links()

◆ node_set_active()

void blender::bke::node_set_active ( bNodeTree & ntree,
bNode & node )

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().

◆ node_set_selected()

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.

Returns
True if any selection was changed.

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().

◆ node_set_socket_availability()

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().

◆ node_set_typeinfo()

◆ node_set_undefined_type()

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.

Warning
The node type is not recoverable afterwards!

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().

◆ node_socket_copy()

◆ node_socket_declarations_update()

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().

◆ node_socket_free()

◆ node_socket_free_default_value()

void blender::bke::node_socket_free_default_value ( bNodeSocket * sock,
const bool do_id_user )
static

◆ node_socket_is_registered()

bool blender::bke::node_socket_is_registered ( const bNodeSocket & sock)

◆ node_socket_label()

◆ node_socket_link_limit()

◆ node_socket_move_default_value()

void blender::bke::node_socket_move_default_value ( Main & bmain,
bNodeTree & tree,
bNodeSocket & src,
bNodeSocket & dst )

◆ node_socket_set_typeinfo()

◆ node_socket_short_label()

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().

◆ node_socket_sub_type_label()

StringRefNull blender::bke::node_socket_sub_type_label ( int subtype)

◆ node_socket_translation_context()

◆ node_socket_type_find()

◆ node_socket_type_find_static()

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().

◆ node_socket_type_label()

◆ node_socket_types_get()

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().

◆ node_static_socket_interface_type_new()

◆ node_static_socket_label()

◆ node_static_socket_type()

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().

◆ node_supports_active_flag()

bool blender::bke::node_supports_active_flag ( const bNode & node,
int sub_activity )

Does the given node supports the sub active flag.

Parameters
sub_activityThe 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().

◆ node_system_exit()

◆ node_system_init()

void blender::bke::node_system_init ( )

◆ node_tag_update_id()

void blender::bke::node_tag_update_id ( bNode & node)

◆ node_tree_add_in_lib()

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().

◆ node_tree_add_tree()

◆ node_tree_add_tree_do()

◆ node_tree_add_tree_embedded()

◆ node_tree_asset_on_clear_asset()

void blender::bke::node_tree_asset_on_clear_asset ( void * asset_ptr,
AssetMetaData * asset_data )
static

◆ node_tree_asset_on_mark_asset()

void blender::bke::node_tree_asset_on_mark_asset ( void * asset_ptr,
AssetMetaData * asset_data )
static

◆ node_tree_asset_pre_save()

void blender::bke::node_tree_asset_pre_save ( void * asset_ptr,
AssetMetaData *  )
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().

◆ node_tree_blend_read_data()

void blender::bke::node_tree_blend_read_data ( BlendDataReader * reader,
ID * owner_id,
bNodeTree * ntree )
Note
ntree itself has been read!

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().

◆ node_tree_blend_write()

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().

◆ node_tree_contains_tree()

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().

◆ node_tree_copy_tree()

bNodeTree * blender::bke::node_tree_copy_tree ( Main * bmain,
const bNodeTree & ntree )

◆ node_tree_copy_tree_ex()

◆ node_tree_free_embedded_tree()

◆ node_tree_free_local_node()

◆ node_tree_free_tree()

void blender::bke::node_tree_free_tree ( bNodeTree & ntree)

◆ node_tree_from_id()

bNodeTree * blender::bke::node_tree_from_id ( ID * id)

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().

◆ node_tree_is_registered()

bool blender::bke::node_tree_is_registered ( const bNodeTree & ntree)

◆ node_tree_iterator_init()

◆ node_tree_iterator_step()

◆ node_tree_localize()

◆ node_tree_node_flag_set()

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().

◆ node_tree_ptr_from_id()

bNodeTree ** blender::bke::node_tree_ptr_from_id ( ID * id)

Get address of potential node-tree pointer of given ID.

Warning
Using this function directly is potentially dangerous, if you don't know or are not sure, please use node_tree_from_id() instead.

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().

◆ node_tree_remove_layer_n()

void blender::bke::node_tree_remove_layer_n ( bNodeTree * ntree,
Scene * scene,
int layer_index )

◆ node_tree_set_output()

void blender::bke::node_tree_set_output ( bNodeTree & ntree)

◆ node_tree_set_type()

◆ node_tree_to_dot()

◆ node_tree_type_add()

◆ node_tree_type_find()

◆ node_tree_type_find_builtin()

bNodeTreeType * blender::bke::node_tree_type_find_builtin ( const int tree_type)

◆ node_tree_type_free_link()

void blender::bke::node_tree_type_free_link ( const bNodeTreeType & nt)

◆ node_tree_type_supports_socket_type_static()

◆ node_tree_types_get()

Span< bNodeTreeType * > blender::bke::node_tree_types_get ( )

◆ node_tree_update_all_new()

◆ node_tree_update_all_users()

◆ node_type_base()

◆ node_type_base_custom()

◆ node_type_base_defaults()

◆ node_type_find()

◆ node_type_find_alias()

UString blender::bke::node_type_find_alias ( UString alias)

◆ node_type_socket_templates()

◆ node_type_storage()

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) )
Warning
Nodes defining a storage type must allocate this for new nodes. Otherwise nodes will reload as undefined (#46619). #storagename is optional due to some compositor nodes use non-DNA storage type.

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().

◆ node_types_get()

◆ node_unique_id()

◆ node_unique_name()

◆ node_unlink_attached()

void blender::bke::node_unlink_attached ( bNodeTree * ntree,
const bNode * parent )

◆ node_unlink_node()

◆ node_unregister_socket_type()

void blender::bke::node_unregister_socket_type ( bNodeSocketType & stype)

◆ node_unregister_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().

◆ node_update_asset_metadata()

◆ node_update_idname_from_experimental()

void blender::bke::node_update_idname_from_experimental ( bNode & node)
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().

◆ normal_mode_from_legacy()

◆ normalize_span()

void blender::bke::normalize_span ( MutableSpan< float3 > data)
static

◆ normalize_vecs()

◆ ntree_blend_read_after_liblink()

void blender::bke::ntree_blend_read_after_liblink ( BlendLibReader * reader,
ID * id )
static

◆ ntree_blend_read_data()

void blender::bke::ntree_blend_read_data ( BlendDataReader * reader,
ID * id )
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().

◆ ntree_blend_write()

void blender::bke::ntree_blend_write ( BlendWriter * writer,
ID * id,
const void * id_address )
static

◆ ntree_contains_tree_exec()

bool blender::bke::ntree_contains_tree_exec ( const bNodeTree & tree_to_search_in,
const bNodeTree & tree_to_search_for,
Set< const bNodeTree * > & already_passed )
static

◆ ntree_copy_data()

void blender::bke::ntree_copy_data ( Main * ,
std::optional< Library * > ,
ID * id_dst,
const ID * id_src,
const int flag )
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().

◆ ntree_free_data()

◆ ntree_free_type()

void blender::bke::ntree_free_type ( void * treetype_v)
static

◆ ntree_init_data()

◆ ntree_set_typeinfo()

◆ object_get_datamask()

◆ object_get_evaluated_geometry_set()

◆ object_has_geometry_set_instances()

◆ offsets_contain_single_point()

bool blender::bke::offsets_contain_single_point ( const OffsetIndices< int > offsets)
static

◆ operator<<() [1/3]

std::ostream & blender::bke::operator<< ( std::ostream & stream,
const bNodeTreeZone & zone )

Definition at line 631 of file node_tree_zones.cc.

◆ operator<<() [2/3]

std::ostream & blender::bke::operator<< ( std::ostream & stream,
const bNodeTreeZones & zones )

Definition at line 620 of file node_tree_zones.cc.

◆ operator<<() [3/3]

std::ostream & blender::bke::operator<< ( std::ostream & stream,
const GeometrySet & geometry_set )

Definition at line 211 of file geometry_set.cc.

◆ operator==()

bool blender::bke::operator== ( const InstanceReference & a,
const InstanceReference & b )

Definition at line 155 of file instances.cc.

◆ orco_coord_layer_ensure()

◆ partition_faces_recursively()

◆ pchan_bone_deform()

◆ pointcloud_attribute_accessor_functions()

◆ pointcloud_convert_customdata_to_storage()

◆ pointcloud_new_no_attributes()

◆ print_error_with_indices()

template<typename... T>
void blender::bke::print_error_with_indices ( const IndexMask & mask,
fmt::format_string< T... > fmt,
T &&... args )
static

◆ project_asset_libraries_to_toml()

◆ project_asset_library_add()

◆ project_variable_add()

◆ project_variables_to_toml()

◆ quaternion_to_float2()

float2 blender::bke::quaternion_to_float2 ( const math::Quaternion & a)
static

Definition at line 613 of file type_conversions.cc.

References quaternion_to_float2(), and blender::math::to_euler().

Referenced by quaternion_to_float2().

◆ quaternion_to_float3()

float3 blender::bke::quaternion_to_float3 ( const math::Quaternion & a)
static

Definition at line 617 of file type_conversions.cc.

References quaternion_to_float3(), and blender::math::to_euler().

Referenced by quaternion_to_float3().

◆ quaternion_to_float4()

float4 blender::bke::quaternion_to_float4 ( const math::Quaternion & a)
static

Definition at line 621 of file type_conversions.cc.

References quaternion_to_float4().

Referenced by quaternion_to_float4().

◆ quaternion_to_float4x4()

float4x4 blender::bke::quaternion_to_float4x4 ( const math::Quaternion & a)
static

◆ read_array_data()

bool blender::bke::read_array_data ( BlendDataReader & reader,
const int8_t dna_attr_type,
const int64_t size,
void ** data )
static

◆ read_attr_data()

◆ read_attr_domain()

std::optional< AttrDomain > blender::bke::read_attr_domain ( const int8_t dna_domain)
static

◆ read_channelbag()

◆ read_layers()

◆ read_shared_array()

void blender::bke::read_shared_array ( BlendDataReader & reader,
const int8_t dna_attr_type,
const int64_t size,
void ** data,
const ImplicitSharingInfo ** sharing_info )
static

◆ read_slots()

◆ read_strip_keyframe_data()

◆ read_strip_keyframe_data_array()

◆ reader_for_vertex_group_index()

GAttributeReader blender::bke::reader_for_vertex_group_index ( const Mesh & mesh,
const Span< MDeformVert > dverts,
const int vertex_group_index )
static

◆ register_node_zone_type()

void blender::bke::register_node_zone_type ( const bNodeZoneType & zone_type)

◆ remember_deformed_curve_positions_if_necessary()

◆ remember_deformed_grease_pencil_if_necessary()

◆ remove_defgroup_index()

◆ remove_invalid_edges()

◆ remove_invalid_faces()

◆ remove_unsupported_sockets()

void blender::bke::remove_unsupported_sockets ( ListBaseT< bNodeSocket > * sockets,
ListBaseT< bNodeLink > * links )
static

◆ rename_attributes()

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().

◆ reset_socket_declarations()

void blender::bke::reset_socket_declarations ( ListBaseT< bNodeSocket > * sockets)
static

Definition at line 5539 of file node.cc.

References reset_socket_declarations().

Referenced by node_socket_declarations_update(), and reset_socket_declarations().

◆ retrieve_attributes_for_transfer()

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.

Note
Attributes stored as single values are immediately added to the result attributes and are not included as array references in the return value.

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().

◆ reverse_curve_point_data()

template<typename T>
void blender::bke::reverse_curve_point_data ( const CurvesGeometry & curves,
const IndexMask & curve_selection,
MutableSpan< T > data )
static

◆ reverse_custom_knots()

void blender::bke::reverse_custom_knots ( MutableSpan< float > custom_knots)
static

◆ reverse_swap_curve_point_data()

◆ rotate_directions_around_axes()

void blender::bke::rotate_directions_around_axes ( MutableSpan< float3 > directions,
const Span< float3 > axes,
const Span< float > angles )
static

◆ sample_corner_attributes()

◆ sample_vertex_attributes()

◆ sanitize_curve_types()

void blender::bke::sanitize_curve_types ( MutableSpan< int8_t > types)
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().

◆ save_shared_attribute()

◆ scene_or_sequencer_scene_from_context()

Scene * blender::bke::scene_or_sequencer_scene_from_context ( const bContext & C)

◆ segments_num_no_duplicate_edge()

int blender::bke::segments_num_no_duplicate_edge ( const int points_num,
const bool cyclic )
static

◆ set_bools()

void blender::bke::set_bools ( MutableSpan< bool > bools,
const Span< int > indices_to_set )
static

◆ set_rest_position()

◆ set_transform_position()

void blender::bke::set_transform_position ( float4x4 & transform,
const float3 position )
static

Definition at line 539 of file instances.cc.

References position, and set_transform_position().

Referenced by set_transform_position().

◆ short2_to_bool()

bool blender::bke::short2_to_bool ( const short2 & a)
static

Definition at line 293 of file type_conversions.cc.

References blender::math::is_zero(), and short2_to_bool().

Referenced by short2_to_bool().

◆ short2_to_byte_color()

ColorGeometry4b blender::bke::short2_to_byte_color ( const short2 & a)
static

◆ short2_to_color()

ColorGeometry4f blender::bke::short2_to_color ( const short2 & a)
static

Definition at line 329 of file type_conversions.cc.

References short2_to_color().

Referenced by short2_to_byte_color(), and short2_to_color().

◆ short2_to_float()

float blender::bke::short2_to_float ( const short2 & a)
static

Definition at line 317 of file type_conversions.cc.

References float2_to_float(), and short2_to_float().

Referenced by short2_to_float().

◆ short2_to_float2()

float2 blender::bke::short2_to_float2 ( const short2 & a)
static

Definition at line 297 of file type_conversions.cc.

References short2_to_float2().

Referenced by short2_to_float2().

◆ short2_to_float3()

float3 blender::bke::short2_to_float3 ( const short2 & a)
static

Definition at line 321 of file type_conversions.cc.

References short2_to_float3().

Referenced by short2_to_float3().

◆ short2_to_float4()

float4 blender::bke::short2_to_float4 ( const short2 & a)
static

Definition at line 325 of file type_conversions.cc.

References short2_to_float4().

Referenced by short2_to_float4().

◆ short2_to_int()

int blender::bke::short2_to_int ( const short2 & a)
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().

◆ short2_to_int2()

int2 blender::bke::short2_to_int2 ( const short2 & a)
static

Definition at line 305 of file type_conversions.cc.

References short2_to_int2().

Referenced by short2_to_int2().

◆ short2_to_int3()

int3 blender::bke::short2_to_int3 ( const short2 & a)
static

Definition at line 309 of file type_conversions.cc.

References short2_to_int3().

Referenced by short2_to_int3().

◆ short2_to_int8()

int8_t blender::bke::short2_to_int8 ( const short2 & a)
static

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().

◆ should_add_attribute_to_mesh()

bool blender::bke::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

◆ slow_socket_type_to_geo_nodes_base_cpp_type()

const CPPType * blender::bke::slow_socket_type_to_geo_nodes_base_cpp_type ( const eNodeSocketDatatype type)
static

◆ socket_data_to_static_type()

◆ socket_type_to_custom_data_type()

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().

◆ socket_type_to_geo_nodes_base_cpp_type()

◆ socket_type_to_grid_type()

◆ socket_value_copy()

◆ socket_value_copy_content()

◆ socket_value_free()

void blender::bke::socket_value_free ( eNodeSocketDatatype type,
void * data,
bool do_id_user )

◆ socket_value_get_id_ptr()

ID * blender::bke::socket_value_get_id_ptr ( const eNodeSocketDatatype type,
void * data )
static

◆ socket_value_id_user_decrement()

void blender::bke::socket_value_id_user_decrement ( eNodeSocketDatatype type,
void * data )

◆ socket_value_id_user_increment()

void blender::bke::socket_value_id_user_increment ( eNodeSocketDatatype type,
void * data )

◆ socket_value_init()

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().

◆ socket_value_init_impl() [1/20]

template<>
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().

◆ socket_value_init_impl() [2/20]

template<>
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().

◆ socket_value_init_impl() [3/20]

template<>
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().

◆ socket_value_init_impl() [4/20]

template<>
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().

◆ socket_value_init_impl() [5/20]

template<>
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().

◆ socket_value_init_impl() [6/20]

template<>
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().

◆ socket_value_init_impl() [7/20]

template<>
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().

◆ socket_value_init_impl() [8/20]

template<>
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().

◆ socket_value_init_impl() [9/20]

template<>
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().

◆ socket_value_init_impl() [10/20]

template<>
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().

◆ socket_value_init_impl() [11/20]

template<>
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().

◆ socket_value_init_impl() [12/20]

template<>
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().

◆ socket_value_init_impl() [13/20]

template<>
void blender::bke::socket_value_init_impl ( bNodeSocketValueRotation & ,
const int  )

Definition at line 3188 of file node.cc.

References socket_value_init_impl().

◆ socket_value_init_impl() [14/20]

template<>
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().

◆ socket_value_init_impl() [15/20]

template<>
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().

◆ socket_value_init_impl() [16/20]

template<>
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().

◆ socket_value_init_impl() [17/20]

template<>
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().

◆ socket_value_init_impl() [18/20]

template<>
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().

◆ socket_value_init_impl() [19/20]

template<>
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().

◆ socket_value_init_impl() [20/20]

◆ socket_value_new()

void * blender::bke::socket_value_new ( eNodeSocketDatatype type,
int subtype = 0 )

◆ store_socket_value()

◆ tag_component_reference_index_changed()

void blender::bke::tag_component_reference_index_changed ( void * owner)
static

◆ tag_custom_normals_changed()

void blender::bke::tag_custom_normals_changed ( void * owner)
static

Definition at line 672 of file mesh_attributes.cc.

References tag_custom_normals_changed().

Referenced by changed_tags(), and tag_custom_normals_changed().

◆ tag_material_index_changed()

void blender::bke::tag_material_index_changed ( void * owner)
static

Definition at line 660 of file mesh_attributes.cc.

References tag_material_index_changed().

Referenced by changed_tags(), and tag_material_index_changed().

◆ tag_position_changed()

void blender::bke::tag_position_changed ( void * owner)
static

Definition at line 18 of file pointcloud_attributes.cc.

References tag_position_changed().

Referenced by changed_tags(), and tag_position_changed().

◆ tag_positions_changed()

void blender::bke::tag_positions_changed ( void * owner)
static

Definition at line 648 of file mesh_attributes.cc.

References tag_positions_changed().

Referenced by changed_tags(), and tag_positions_changed().

◆ tag_radius_changed()

void blender::bke::tag_radius_changed ( void * owner)
static

Definition at line 24 of file pointcloud_attributes.cc.

References tag_radius_changed().

Referenced by changed_tags(), and tag_radius_changed().

◆ tag_sharpness_changed()

void blender::bke::tag_sharpness_changed ( void * owner)
static

Definition at line 654 of file mesh_attributes.cc.

References tag_sharpness_changed().

Referenced by changed_tags(), and tag_sharpness_changed().

◆ tag_visibility_changed()

void blender::bke::tag_visibility_changed ( void * owner)
static

Definition at line 666 of file mesh_attributes.cc.

References tag_visibility_changed().

Referenced by changed_tags(), and tag_visibility_changed().

◆ toml_type_name()

std::string blender::bke::toml_type_name ( const toml::value & value)
static

◆ transform_custom_normal_attribute()

◆ translate_positions() [1/2]

void blender::bke::translate_positions ( MutableSpan< float3 > positions,
const float3 & translation )
static

◆ translate_positions() [2/2]

void blender::bke::translate_positions ( MutableSpan< float3 > positions,
const float3 & translation )
static

◆ try_adapt_data_type()

GVArray blender::bke::try_adapt_data_type ( GVArray varray,
const CPPType & to_type )
static

◆ try_add_shared_field_attribute()

bool blender::bke::try_add_shared_field_attribute ( MutableAttributeAccessor attributes,
const StringRef id_to_create,
const AttrDomain domain,
const fn::GField & field )
static

◆ try_add_single_value_attribute()

◆ try_assign_single_value()

bool blender::bke::try_assign_single_value ( MutableAttributeAccessor & attributes,
const StringRef name,
const GPointer value )
static

◆ try_capture_field_on_geometry() [1/3]

bool blender::bke::try_capture_field_on_geometry ( GeometryComponent & component,
const StringRef name,
AttrDomain domain,
const fn::Field< bool > & selection,
const fn::GField & field )
inline

◆ try_capture_field_on_geometry() [2/3]

bool blender::bke::try_capture_field_on_geometry ( GeometryComponent & component,
const StringRef name,
AttrDomain domain,
const fn::GField & field )
inline

◆ try_capture_field_on_geometry() [3/3]

bool blender::bke::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 )
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().

◆ try_capture_fields_on_geometry() [1/3]

bool blender::bke::try_capture_fields_on_geometry ( GeometryComponent & component,
Span< StringRef > names,
AttrDomain domain,
const fn::Field< bool > & selection,
Span< fn::GField > fields )

◆ try_capture_fields_on_geometry() [2/3]

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().

◆ try_capture_fields_on_geometry() [3/3]

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().

◆ try_delete_vertex_group()

◆ try_detect_field_domain()

◆ try_detect_native_field_domain()

std::optional< AttrDomain > blender::bke::try_detect_native_field_domain ( const GeometryComponent & component,
const fn::GField & field )

◆ try_direct_evaluate_point_data()

◆ try_get_field_direct_attribute_id()

std::optional< StringRefNull > blender::bke::try_get_field_direct_attribute_id ( const fn::GField & any_field)
static

◆ try_get_geometry_field_context()

std::optional< GeometryFieldContext > blender::bke::try_get_geometry_field_context ( const fn::FieldContext & context)
static

◆ try_get_vertex_group()

GAttributeReader blender::bke::try_get_vertex_group ( const void * owner,
const StringRef name )
static

◆ try_get_vertex_group_for_write()

GAttributeWriter blender::bke::try_get_vertex_group_for_write ( void * owner,
const StringRef name )
static

◆ try_sharing_point_data()

◆ try_tag_verts_no_face_none()

void blender::bke::try_tag_verts_no_face_none ( const Mesh & mesh)
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().

◆ unique_socket_template_identifier()

void blender::bke::unique_socket_template_identifier ( bNodeSocketTemplate * list,
bNodeSocketTemplate * ntemp,
const char defname[],
const char delim )
static

◆ update_socket_declarations()

void blender::bke::update_socket_declarations ( ListBaseT< bNodeSocket > * sockets,
const Span< SocketDeclaration * > declarations )
static

◆ update_typeinfo()

◆ update_zone_border_links()

◆ update_zone_depths()

void blender::bke::update_zone_depths ( bNodeTreeZone & zone)
static

◆ update_zone_per_node()

◆ validate_bool_attribute()

◆ validate_float_attribute()

◆ validate_generic_attributes()

bool blender::bke::validate_generic_attributes ( const Mesh & mesh,
const bool verbose,
Mesh * mesh_mut )
static

◆ validate_material_indices()

◆ validate_mdisps()

bool blender::bke::validate_mdisps ( const Mesh & mesh,
const bool verbose,
Mesh * mesh_mut )
static

◆ validate_selection_history()

bool blender::bke::validate_selection_history ( const Mesh & mesh,
const bool verbose,
Mesh * mesh_mut )
static

◆ validate_vertex_groups()

bool blender::bke::validate_vertex_groups ( const Mesh & mesh,
const bool verbose,
Mesh * mesh_mut )
static

◆ varray_for_deform_verts()

◆ varray_for_mutable_deform_verts()

◆ verify_armature_deform_valid()

◆ volume_grid_type_to_custom_data_type()

◆ with_blender_project_read_lock()

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.

See also
BKE_blender_project_read_callback()

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().

◆ with_blender_project_write_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.

See also
BKE_blender_project_read_callback()

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().

◆ write_array_data()

◆ write_channelbag()

◆ write_layers()

◆ write_node_socket()

◆ write_node_socket_default_value()

◆ write_shared_array()

void blender::bke::write_shared_array ( BlendWriter & writer,
const AttrType data_type,
const void * data,
const int64_t size,
const ImplicitSharingInfo * sharing_info )
static

◆ write_sharp_bezier_edges()

◆ write_slots()

◆ write_strip_keyframe_data()

◆ write_strip_keyframe_data_array()

◆ write_strips()

◆ zone_type_by_node_type()

Variable Documentation

◆ AssetType_AC

AssetTypeInfo blender::bke::AssetType_AC
static
Initial value:
= {
nullptr,
}
static void action_asset_metadata_ensure(void *asset_ptr, AssetMetaData *asset_data)

Definition at line 736 of file blenkernel/intern/action.cc.

◆ ATTR_CURVE_TYPE

◆ ATTR_CYCLIC

StringRef blender::bke::ATTR_CYCLIC = "cyclic"
constexpr

◆ ATTR_HANDLE_POSITION_LEFT

◆ ATTR_HANDLE_POSITION_RIGHT

◆ ATTR_HANDLE_TYPE_LEFT

◆ ATTR_HANDLE_TYPE_RIGHT

◆ ATTR_NORMAL_MODE

StringRef blender::bke::ATTR_NORMAL_MODE = "normal_mode"
constexpr

◆ ATTR_NURBS_KNOTS_MODE

◆ ATTR_NURBS_ORDER

◆ ATTR_NURBS_WEIGHT

◆ ATTR_POSITION

StringRef blender::bke::ATTR_POSITION = "position"
constexpr

◆ ATTR_RADIUS

StringRef blender::bke::ATTR_RADIUS = "radius"
constexpr

◆ ATTR_RESOLUTION

◆ ATTR_SURFACE_UV_COORDINATE

StringRef blender::bke::ATTR_SURFACE_UV_COORDINATE = "surface_uv_coordinate"
constexpr

◆ ATTR_TILT

StringRef blender::bke::ATTR_TILT = "tilt"
constexpr

◆ is_geometry_component_v

◆ no_procedural_access_message

const char * blender::bke::no_procedural_access_message
Initial value:
= N_(
"This attribute cannot be accessed in a procedural context")
#define N_(msgid)

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().

◆ NODE_INSTANCE_KEY_BASE

◆ NODE_INSTANCE_KEY_NONE

const bNodeInstanceKey blender::bke::NODE_INSTANCE_KEY_NONE = {0}

◆ NodeSocketTypeUndefined

◆ NodeTreeTypeUndefined

bNodeTreeType blender::bke::NodeTreeTypeUndefined

◆ NodeTypeUndefined

◆ project_schema_version

const int blender::bke::project_schema_version = 1

◆ toml_version

toml::spec blender::bke::toml_version = toml::spec::v(1, 0, 0)
constexpr