Blender V5.0
geometry_fields.cc File Reference
#include "BLI_array_utils.hh"
#include "BKE_attribute.hh"
#include "BKE_curves.hh"
#include "BKE_geometry_fields.hh"
#include "BKE_geometry_set.hh"
#include "BKE_grease_pencil.hh"
#include "BKE_instances.hh"
#include "BKE_mesh.hh"
#include "DNA_mesh_types.h"
#include "DNA_pointcloud_types.h"
#include "BLT_translation.hh"
#include <fmt/format.h>

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::bke

Functions

static StringRef blender::bke::get_random_id_attribute_name (const AttrDomain domain)
template<typename T>
void blender::bke::copy_with_checked_indices (const VArray< T > &src, const VArray< int > &indices, const IndexMask &mask, MutableSpan< T > dst)
void blender::bke::copy_with_checked_indices (const GVArray &src, const VArray< int > &indices, const IndexMask &mask, GMutableSpan dst)
static std::optional< StringRefNullblender::bke::try_get_field_direct_attribute_id (const fn::GField &any_field)
static bool blender::bke::attribute_kind_matches (const AttributeMetaData meta_data, const AttrDomain domain, const bke::AttrType data_type)
static bool blender::bke::try_add_shared_field_attribute (MutableAttributeAccessor attributes, const StringRef id_to_create, const AttrDomain domain, const fn::GField &field)
static bool blender::bke::attribute_data_matches_varray (const GAttributeReader &attribute, const GVArray &varray)
static void blender::bke::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)
bool blender::bke::try_capture_fields_on_geometry (MutableAttributeAccessor attributes, const fn::FieldContext &field_context, Span< StringRef > attribute_ids, AttrDomain domain, const fn::Field< bool > &selection, Span< fn::GField > fields)
bool blender::bke::try_capture_fields_on_geometry (GeometryComponent &component, Span< StringRef > attribute_ids, AttrDomain domain, const fn::Field< bool > &selection, Span< fn::GField > fields)
bool blender::bke::try_capture_fields_on_geometry (GeometryComponent &component, Span< StringRef > attribute_ids, AttrDomain domain, Span< fn::GField > fields)
std::optional< AttrDomainblender::bke::try_detect_field_domain (const GeometryComponent &component, const fn::GField &field)