21 .
description(
"Points that are converted to vertices in a mesh");
24 .evaluated_geometry_field()
35 if (points ==
nullptr) {
46 selection_evaluator.
add(selection_field);
63 const StringRef dst_name = src_name ==
".selection" ?
".select_vert" : src_name;
70 dst_attributes.
add(dst_name, AttrDomain::Point, data_type,
init);
78 dst_attributes.
add(dst_name, AttrDomain::Point, data_type,
init);
82 dst_name, AttrDomain::Point, data_type);
88 mesh->tag_loose_edges_none();
89 mesh->tag_overlapping_none();
105 params.
set_output(
"Mesh"_ustr, std::move(geometry_set));
113 ntype.
ui_name =
"Points to Vertices";
114 ntype.
ui_description =
"Generate a mesh vertex for each point cloud point";
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_POINTS_TO_VERTICES
#define NOD_REGISTER_NODE(REGISTER_FUNC)
CommonVArrayInfo common_info() const
const CPPType & type() const
void foreach_attribute(const FunctionRef< void(const AttributeIter &)> fn) const
bool is_builtin(const StringRef name) const
GAttributeReader get() const
bool add(const StringRef name, const AttrDomain domain, const AttrType data_type, const AttributeInit &initializer)
GSpanAttributeWriter lookup_or_add_for_write_only_span(StringRef name, AttrDomain domain, AttrType data_type)
int add(GField field, GVArray *varray_ptr)
IndexMask get_evaluated_as_mask(int field_index)
NodeAttributeFilter get_attribute_filter(const UString output_identifier) const
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
void gather(const GVArray &src, const IndexMask &indices, GMutableSpan dst, exec_mode::Mode mode=exec_mode::parallel)
void node_register_type(bNodeType &ntype)
Mesh * mesh_new_no_attributes(int verts_num, int edges_num, int faces_num, int corners_num)
void foreach_real_geometry(bke::GeometrySet &geometry, FunctionRef< void(bke::GeometrySet &geometry_set)> fn)
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(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
bool allow_skip(const StringRef name) const
const ImplicitSharingInfo * sharing_info
void keep_only(Span< GeometryComponent::Type > component_types)
const PointCloud * get_pointcloud() const
void replace_mesh(Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
const char * enum_name_legacy
NodeDeclareFunction declare