24 b.use_custom_socket_order();
25 b.allow_any_socket_order();
29 b.add_output<
decl::Geometry>(
"Points"_ustr).propagate_all_geometry().align_with_previous();
40 if (!geometry_set.has_pointcloud()) {
43 if (geometry_set.get_pointcloud()->type == dst_type) {
46 PointCloud *dst_pointcloud = geometry_set.get_pointcloud_for_write();
47 dst_pointcloud->
type = dst_type;
49 params.
set_output(
"Points"_ustr, std::move(geometry_set));
56 ntype.
ui_name =
"Set Point Cloud Type";
#define NODE_CLASS_GEOMETRY
General operations for point clouds.
#define NOD_REGISTER_NODE(REGISTER_FUNC)
T extract_input(const UString identifier)
T get_input(const UString identifier) const
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
void foreach_real_geometry(bke::GeometrySet &geometry, FunctionRef< void(bke::GeometrySet &geometry_set)> fn)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
const EnumPropertyItem rna_enum_pointcloud_type_items[]
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
NodeDeclareFunction declare