Blender V4.3
geometry_attributes.cc File Reference
#include "MEM_guardedalloc.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_scene_types.h"
#include "BLI_color.hh"
#include "BKE_attribute.hh"
#include "BKE_context.hh"
#include "BKE_customdata.hh"
#include "BKE_deform.hh"
#include "BKE_geometry_set.hh"
#include "BKE_lib_id.hh"
#include "BKE_mesh.hh"
#include "BKE_object_deform.h"
#include "BKE_paint.hh"
#include "BKE_report.hh"
#include "BLI_string.h"
#include "BLT_translation.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "DEG_depsgraph.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "ED_geometry.hh"
#include "ED_mesh.hh"
#include "ED_object.hh"
#include "ED_sculpt.hh"
#include "geometry_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::ed
 
namespace  blender::ed::geometry
 

Enumerations

enum class  blender::ed::geometry::ConvertAttributeMode { blender::ed::geometry::Generic = 0 , blender::ed::geometry::VertexGroup = 1 }
 

Functions

static bool blender::ed::geometry::geometry_attributes_poll (bContext *C)
 
static bool blender::ed::geometry::geometry_attributes_remove_poll (bContext *C)
 
static const EnumPropertyItemblender::ed::geometry::geometry_attribute_domain_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
 
static int blender::ed::geometry::geometry_attribute_add_exec (bContext *C, wmOperator *op)
 
static int blender::ed::geometry::geometry_attribute_add_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
void blender::ed::geometry::GEOMETRY_OT_attribute_add (wmOperatorType *ot)
 
static int blender::ed::geometry::geometry_attribute_remove_exec (bContext *C, wmOperator *op)
 
void blender::ed::geometry::GEOMETRY_OT_attribute_remove (wmOperatorType *ot)
 
static int blender::ed::geometry::geometry_color_attribute_add_exec (bContext *C, wmOperator *op)
 
static int blender::ed::geometry::geometry_color_attribute_add_invoke (bContext *C, wmOperator *op, const wmEvent *event)
 
static bool blender::ed::geometry::geometry_attribute_convert_poll (bContext *C)
 
static int blender::ed::geometry::geometry_attribute_convert_exec (bContext *C, wmOperator *op)
 
static void blender::ed::geometry::geometry_color_attribute_add_ui (bContext *, wmOperator *op)
 
void blender::ed::geometry::GEOMETRY_OT_color_attribute_add (wmOperatorType *ot)
 
static int blender::ed::geometry::geometry_color_attribute_set_render_exec (bContext *C, wmOperator *op)
 
void blender::ed::geometry::GEOMETRY_OT_color_attribute_render_set (wmOperatorType *ot)
 
static int blender::ed::geometry::geometry_color_attribute_remove_exec (bContext *C, wmOperator *op)
 
static bool blender::ed::geometry::geometry_color_attributes_remove_poll (bContext *C)
 
void blender::ed::geometry::GEOMETRY_OT_color_attribute_remove (wmOperatorType *ot)
 
static int blender::ed::geometry::geometry_color_attribute_duplicate_exec (bContext *C, wmOperator *op)
 
static bool blender::ed::geometry::geometry_color_attributes_duplicate_poll (bContext *C)
 
void blender::ed::geometry::GEOMETRY_OT_color_attribute_duplicate (wmOperatorType *ot)
 
static int blender::ed::geometry::geometry_attribute_convert_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static void blender::ed::geometry::geometry_attribute_convert_ui (bContext *, wmOperator *op)
 
static bool blender::ed::geometry::geometry_color_attribute_convert_poll (bContext *C)
 
static int blender::ed::geometry::geometry_color_attribute_convert_exec (bContext *C, wmOperator *op)
 
static int blender::ed::geometry::geometry_color_attribute_convert_invoke (bContext *C, wmOperator *op, const wmEvent *)
 
static void blender::ed::geometry::geometry_color_attribute_convert_ui (bContext *, wmOperator *op)
 
void blender::ed::geometry::GEOMETRY_OT_color_attribute_convert (wmOperatorType *ot)
 
void blender::ed::geometry::GEOMETRY_OT_attribute_convert (wmOperatorType *ot)
 
bool ED_geometry_attribute_convert (Mesh *mesh, const char *name, const eCustomDataType dst_type, const blender::bke::AttrDomain dst_domain, ReportList *reports)
 
Attribute Value RNA Property Helpers

Functions to make it easier to register RNA properties for the various attribute types and retrieve/set their values.

StringRefNull blender::ed::geometry::rna_property_name_for_type (const eCustomDataType type)
 
PropertyRNAblender::ed::geometry::rna_property_for_type (PointerRNA &ptr, const eCustomDataType type)
 
void blender::ed::geometry::register_rna_properties_for_attribute_types (StructRNA &srna)
 
GPointer blender::ed::geometry::rna_property_for_attribute_type_retrieve_value (PointerRNA &ptr, const eCustomDataType type, void *buffer)
 
void blender::ed::geometry::rna_property_for_attribute_type_set_value (PointerRNA &ptr, PropertyRNA &prop, const GPointer value)
 
bool blender::ed::geometry::attribute_set_poll (bContext &C, const ID &object_data)
 

Function Documentation

◆ ED_geometry_attribute_convert()

bool ED_geometry_attribute_convert ( Mesh * mesh,
const char * name,
eCustomDataType dst_type,
blender::bke::AttrDomain dst_domain,
ReportList * reports )