29 if (points ==
nullptr) {
33 if (points->totpoint == 0) {
40 selection_evaluator.
add(selection_field);
41 selection_evaluator.evaluate();
42 const IndexMask selection = selection_evaluator.get_evaluated_as_mask(0);
52 if (selection.size() == points->totpoint) {
56 mesh->verts_num = selection.size();
72 dst_attributes.
add(
id, AttrDomain::Point, data_type,
init);
76 id, AttrDomain::Point, data_type);
82 mesh->tag_loose_edges_none();
83 mesh->tag_overlapping_none();
96 geometry_set, selection_field,
params.get_attribute_filter(
"Mesh"));
99 params.set_output(
"Mesh", std::move(geometry_set));
CustomData interface, see also DNA_customdata_types.h.
bool CustomData_free_layer_named(CustomData *data, blender::StringRef name, const int totelem)
Mesh * BKE_mesh_new_nomain(int verts_num, int edges_num, int faces_num, int corners_num)
#define NODE_CLASS_GEOMETRY
#define NOD_REGISTER_NODE(REGISTER_FUNC)
const void * data() const
GSpan get_internal_span() const
GAttributeReader lookup(const StringRef attribute_id) const
bool add(const StringRef attribute_id, const AttrDomain domain, const eCustomDataType data_type, const AttributeInit &initializer)
GSpanAttributeWriter lookup_or_add_for_write_only_span(StringRef attribute_id, AttrDomain domain, eCustomDataType data_type)
int add(GField field, GVArray *varray_ptr)
local_group_size(16, 16) .push_constant(Type b
void gather(const GVArray &src, const IndexMask &indices, GMutableSpan dst, int64_t grain_size=4096)
void node_register_type(bNodeType *ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void geometry_set_points_to_vertices(GeometrySet &geometry_set, Field< bool > &selection_field, const AttributeFilter &attribute_filter)
static void node_register()
static void node_declare(NodeDeclarationBuilder &b)
void geo_node_type_base(blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
const ImplicitSharingInfo * sharing_info
void gather_attributes_for_propagation(Span< GeometryComponent::Type > component_types, GeometryComponent::Type dst_component_type, bool include_instances, const AttributeFilter &attribute_filter, Map< StringRef, AttributeKind > &r_attributes) const
void keep_only_during_modify(Span< GeometryComponent::Type > component_types)
const PointCloud * get_pointcloud() const
void modify_geometry_sets(ForeachSubGeometryCallback callback)
void replace_mesh(Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
void remove_geometry_during_modify()
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare