10 b.add_input<
decl::Bool>(
N_(
"Selection")).default_value(
true).hide_value().supports_field();
24 if (domain_size == 0) {
35 evaluator.add_with_destination(radius_field,
radii.varray);
55 params.set_output(
"Points", std::move(geometry_set));
@ GEO_COMPONENT_TYPE_POINT_CLOUD
#define GEO_NODE_SET_POINT_RADIUS
#define NODE_CLASS_GEOMETRY
void nodeRegisterType(struct bNodeType *ntype)
static uint8 component(Color32 c, uint i)
GAttributeWriter lookup_or_add_for_write(const AttributeIDRef &attribute_id, const eAttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer=AttributeInitDefault())
void set_selection(Field< bool > selection)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void set_radius_in_component(GeometryComponent &component, const Field< bool > &selection_field, const Field< float > &radius_field)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
MutableSpan< float > radii
void register_node_type_geo_set_point_radius()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
GeometryComponent & get_component_for_write(GeometryComponentType component_type)
void modify_geometry_sets(ForeachSubGeometryCallback callback)
bool has_pointcloud() const
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare