13 b.add_output<
decl::Bool>(
"Boolean"_ustr,
"Selection"_ustr)
14 .structure_type(StructureType::Field)
15 .
description(
"The selection of each element as a true or false value");
17 .structure_type(StructureType::Field)
18 .
description(
"The selection of each element as a floating point value");
25 static const bool value =
true;
29 static const float value = 1.0f;
43 static const bool value =
false;
47 static const float value = 0.0f;
60 case AttrDomain::Point:
61 return ".select_vert";
62 case AttrDomain::Edge:
63 return ".select_edge";
64 case AttrDomain::Face:
65 case AttrDomain::Corner:
66 return ".select_poly";
86 switch (context.type()) {
91 ".selection", domain, data_type,
true_value(data_type));
114 switch (context.type()) {
119 ".selection", domain, data_type,
true_value(data_type));
128 mask.foreach_index_optimized<
int>(
129 [&](
const int i) { selection[i] =
attribute[i] < 1.0f; },
135 mask.foreach_index_optimized<
int>(
136 [&](
const int i) { selection[i] = 1.0f -
attribute[i]; },
154 switch (object_mode) {
188 ntype.
ui_description =
"User selection of the edited geometry, for tool execution";
#define GEO_NODE_TOOL_SELECTION
#define NOD_REGISTER_NODE(REGISTER_FUNC)
#define BLI_assert_unreachable()
static GVArray from_single(const CPPType &type, int64_t size, const void *value)
static VArray from_container(ContainerT container)
GAttributeReader lookup_or_default(StringRef name, AttrDomain domain, AttrType data_type, const void *default_value=nullptr) const
GAttributeReader lookup(const StringRef name) const
static GField from_non_owning_constant(const CPPType &type, const void *value)
static GField from_input(Args &&...args)
GeoNodesUserData * user_data() const
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
AttrType cpp_type_to_attribute_type(const CPPType &type)
const CPPType & attribute_type_to_cpp_type(AttrType type)
constexpr ParallelGrainSize grain_size(int grain_size)
void search_link_ops_for_tool_node(GatherLinkSearchOpParams ¶ms)
bool check_tool_context_and_error(GeoNodeExecParams ¶ms)
@ OB_MODE_SCULPT_GREASE_PENCIL
@ OB_MODE_PAINT_GREASE_PENCIL
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeGatherSocketLinkOperationsFunction gather_link_search_ops
NodeDeclareFunction declare
GeoNodesOperatorData * operator_data
const GeoNodesCallData * call_data