25 {
SOCK_VECTOR,
N_(
"Value"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
26 {
SOCK_FLOAT,
N_(
"Value"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
27 {
SOCK_RGBA,
N_(
"Value"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
28 {
SOCK_BOOLEAN,
N_(
"Value"), 0.0f, 0.0f, 0.0f, 0.0f, -FLT_MAX, FLT_MAX},
29 {
SOCK_INT,
N_(
"Value"), 0, 0, 0, 0, -10000000.0f, 10000000.0f},
42 uiItemR(layout,
ptr,
"domain", 0,
"", ICON_NONE);
43 uiItemR(layout,
ptr,
"data_type", 0,
"", ICON_NONE);
76 if (result_attribute) {
77 return result_attribute->domain();
84 const std::string attribute_name =
params.get_input<std::string>(
"Attribute");
85 if (attribute_name.empty()) {
97 attribute_name, result_domain, data_type);
104 const float value =
params.get_input<
float>(
"Value_001");
106 attribute_span.fill(value);
112 attribute_span.fill(value);
118 attribute_span.fill(value);
122 const bool value =
params.get_input<
bool>(
"Value_003");
124 attribute_span.fill(value);
128 const int value =
params.get_input<
int>(
"Value_004");
130 attribute_span.fill(value);
152 params.set_output(
"Geometry", geometry_set);
void nodeSetSocketAvailability(struct bNodeSocket *sock, bool is_available)
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
void node_type_update(struct bNodeType *ntype, void(*updatefunc)(struct bNodeTree *ntree, struct bNode *node))
void node_type_init(struct bNodeType *ntype, void(*initfunc)(struct bNodeTree *ntree, struct bNode *node))
#define NODE_CLASS_ATTRIBUTE
void nodeRegisterType(struct bNodeType *ntype)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
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 GEO_NODE_ATTRIBUTE_FILL
void uiLayoutSetPropSep(uiLayout *layout, bool is_sep)
void uiItemR(uiLayout *layout, struct PointerRNA *ptr, const char *propname, int flag, const char *name, int icon)
void uiLayoutSetPropDecorate(uiLayout *layout, bool is_sep)
void apply_span_and_save()
fn::GMutableSpan get_span_for_write_only()
GeometrySet geometry_set_realize_instances(const GeometrySet &geometry_set)
std::unique_ptr< ReadAttribute > ReadAttributePtr
static AttributeDomain get_result_domain(const GeometryComponent &component, StringRef source_name, StringRef result_name)
static void geo_node_attribute_fill_exec(GeoNodeExecParams params)
static void fill_attribute(GeometryComponent &component, const GeoNodeExecParams ¶ms)
static void geo_node_attribute_fill_layout(uiLayout *layout, bContext *UNUSED(C), PointerRNA *ptr)
void register_node_type_geo_attribute_fill()
static bNodeSocketTemplate geo_node_attribute_fill_out[]
static bNodeSocketTemplate geo_node_attribute_fill_in[]
static void geo_node_attribute_fill_init(bNodeTree *UNUSED(tree), bNode *node)
static void geo_node_attribute_fill_update(bNodeTree *UNUSED(ntree), bNode *node)
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag)
GeometryComponent & get_component_for_write(GeometryComponentType component_type)
bool has(const GeometryComponentType component_type) const
Compact definition of a node socket.
struct bNodeSocket * next
NodeGeometryExecFunction geometry_node_execute
void(* draw_buttons)(struct uiLayout *, struct bContext *C, struct PointerRNA *ptr)