Blender V5.3
attribute.cc File Reference
#include <cstring>
#include <optional>
#include "BKE_anonymous_attribute_id.hh"
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_curves_types.h"
#include "DNA_customdata_types.h"
#include "DNA_mesh_types.h"
#include "DNA_pointcloud_types.h"
#include "BLI_index_range.hh"
#include "BLI_string.hh"
#include "BLI_string_utils.hh"
#include "BLT_translation.hh"
#include "BKE_attribute.hh"
#include "BKE_attribute_legacy_convert.hh"
#include "BKE_curves.hh"
#include "BKE_customdata.hh"
#include "BKE_deform.hh"
#include "BKE_editmesh.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_mesh.hh"
#include "BKE_pointcloud.hh"
#include "BKE_report.hh"

Go to the source code of this file.

Classes

struct  blender::DomainInfo

Namespaces

namespace  blender
 BMesh Iterators.

Enumerations

enum class  blender::AttrDomain

Functions

static std::array< DomainInfo, ATTR_DOMAIN_NUM > blender::get_domains (BMesh *bm)
static bool blender::bke_attribute_rename_if_exists (AttributeOwner &owner, const StringRef old_name, const StringRef new_name, ReportList *reports)
static bool blender::bke_attribute_rename_if_exists (AttributeOwner &owner, BMesh &bm, const StringRef old_name, const StringRef new_name, ReportList *reports)
static bool blender::name_valid_for_builtin_domain_and_type (const bke::AttributeAccessor attributes, const StringRef name, const AttrDomain domain, const bke::AttrType data_type, ReportList *reports)
static bool blender::mesh_attribute_valid (const Mesh &mesh, const StringRef name, const AttrDomain domain, const bke::AttrType data_type, ReportList *reports)
bool blender::BKE_attribute_rename (AttributeOwner &owner, StringRef old_name, StringRef new_name, struct ReportList *reports)
std::string blender::BKE_attribute_calc_unique_name (const AttributeOwner &owner, StringRef name)
struct CustomDataLayer * blender::BKE_attribute_new (Mesh &mesh, BMesh &bm, StringRef name, eCustomDataType type, bke::AttrDomain domain, struct ReportList *reports)
static int blender::color_name_to_index (AttributeOwner &owner, const StringRef name)
static int blender::color_clamp_index (AttributeOwner &owner, int index)
static StringRef blender::color_name_from_index (AttributeOwner &owner, int index)
static int blender::uv_name_to_index (AttributeOwner &owner, const StringRef name)
static int blender::uv_clamp_index (AttributeOwner &owner, int index)
static StringRef blender::uv_name_from_index (AttributeOwner &owner, int index)
bool blender::BKE_attribute_remove (AttributeOwner &owner, StringRef name, struct ReportList *reports)
int blender::BKE_attributes_length (const AttributeOwner &owner, AttrDomainMask domain_mask, eCustomDataMask mask, bool include_anonymous=true)
AttrDomain blender::BKE_attribute_domain (const Mesh &mesh, const BMesh &bm, const CustomDataLayer *layer)
int blender::BKE_attribute_domain_size (const AttributeOwner &owner, int domain)
bool blender::BKE_attribute_required (const AttributeOwner &owner, StringRef name)
std::optional< StringRefNull > blender::BKE_attributes_active_name_get (AttributeOwner &owner)
void blender::BKE_attributes_active_set (AttributeOwner &owner, StringRef name)
void blender::BKE_attributes_active_clear (AttributeOwner &owner)
int * blender::BKE_attributes_active_index_p (AttributeOwner &owner)
void blender::BKE_attributes_active_index_validate (AttributeOwner &owner)
std::optional< StringRef > blender::BKE_attribute_from_index (AttributeOwner &owner, int lookup_index, AttrDomainMask domain_mask, eCustomDataMask layer_mask, bool include_anonymous=true)
int blender::BKE_attribute_to_index (const AttributeOwner &owner, const StringRef name, AttrDomainMask domain_mask, eCustomDataMask layer_mask, bool include_anonymous=true)
std::optional< StringRef > blender::BKE_id_attributes_active_color_name (const ID *id)
std::optional< StringRef > blender::BKE_id_attributes_default_color_name (const ID *id)
void blender::BKE_id_attributes_active_color_set (struct ID *id, std::optional< StringRef > name)
void blender::BKE_id_attributes_active_color_clear (struct ID *id)
void blender::BKE_id_attributes_default_color_set (struct ID *id, std::optional< StringRef > name)
bool blender::BKE_id_attributes_color_find (const ID *id, const StringRef name)
StringRef blender::BKE_uv_map_pin_name_get (StringRef uv_map_name, char *buffer)

Detailed Description

Implementation of generic geometry attributes management. This is built on top of CustomData, which manages individual domains.

Definition in file blenkernel/intern/attribute.cc.