38 uiItemR(layout,
ptr,
"domain", 0,
"", ICON_NONE);
39 uiItemR(layout,
ptr,
"data_type", 0,
"", ICON_NONE);
59 if (result_attribute) {
60 return result_attribute->domain();
63 if (source_attribute) {
64 return source_attribute->domain();
75 if (source_name != result_name) {
79 if (!read_attribute) {
82 if (read_attribute->domain() != result_domain) {
108 source_name, result_domain, result_type);
109 if (!source_attribute) {
111 TIP_(
"No attribute with name \"") + source_name +
"\"");
116 result_name, result_domain, result_type);
117 if (!result_attribute) {
121 fn::GSpan source_span = source_attribute->get_span();
142 const std::string result_name =
params.extract_input<std::string>(
"Result");
143 const std::string source_name =
params.extract_input<std::string>(
"Attribute");
148 if (result_name.empty()) {
149 params.set_output(
"Geometry", geometry_set);
170 params.set_output(
"Geometry", geometry_set);
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
void node_type_storage(struct bNodeType *ntype, const char *storagename, void(*freefunc)(struct bNode *node), void(*copyfunc)(struct bNodeTree *dest_ntree, struct bNode *dest_node, const struct bNode *src_node))
#define NODE_CLASS_ATTRIBUTE
void nodeRegisterType(struct bNodeType *ntype)
static uint8 component(Color32 c, uint i)
Group RGB to Bright Vector Camera Vector Combine Material Light Line Style Layer Add Ambient Diffuse Glossy Refraction Transparent Toon Principled Hair Volume Principled Light Particle Volume Image Sky Noise Wave Voronoi Brick Texture Vector Combine Vertex Separate Vector White RGB Map Separate Set Z Dilate Combine Combine Color Channel Split ID Combine Luminance Directional Alpha Distance Hue Movie Ellipse Bokeh View Corner Anti Mix RGB Hue Separate TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC TEX_NODE_PROC Boolean Random Edge Subdivision Point Object Attribute Attribute Attribute Color Attribute Attribute Vector Point Attribute Sample Collection Attribute Attribute Combine GEO_NODE_ATTRIBUTE_CONVERT
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void apply_span_and_save()
fn::GMutableSpan get_span_for_write_only()
void copy_to_initialized_n(const void *src, void *dst, int64_t n) const
const void * data() const
void *(* MEM_callocN)(size_t len, const char *str)
GeometrySet geometry_set_realize_instances(const GeometrySet &geometry_set)
const CPPType * custom_data_type_to_cpp_type(const CustomDataType type)
std::unique_ptr< ReadAttribute > ReadAttributePtr
static void attribute_convert_calc(GeometryComponent &component, const GeoNodeExecParams ¶ms, const StringRef source_name, const StringRef result_name, const CustomDataType result_type, const AttributeDomain domain)
static void geo_node_attribute_convert_exec(GeoNodeExecParams params)
static bool conversion_can_be_skipped(const GeometryComponent &component, const StringRef source_name, const StringRef result_name, const AttributeDomain result_domain, const CustomDataType result_type)
static AttributeDomain get_result_domain(const GeometryComponent &component, StringRef source_name, StringRef result_name)
static void geo_node_attribute_convert_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
void register_node_type_geo_attribute_convert()
static bNodeSocketTemplate geo_node_attribute_convert_in[]
static void geo_node_attribute_convert_init(bNodeTree *UNUSED(tree), bNode *node)
static bNodeSocketTemplate geo_node_attribute_convert_out[]
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag)
void node_copy_standard_storage(bNodeTree *UNUSED(dest_ntree), bNode *dest_node, const bNode *src_node)
void node_free_standard_storage(bNode *node)
GeometryComponent & get_component_for_write(GeometryComponentType component_type)
bool has(const GeometryComponentType component_type) const
Compact definition of a node socket.
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)