16 b.add_input<
decl::Geometry>(
"Volume"_ustr).description(
"Volume to list the grid names of");
18 .structure_type(StructureType::List)
19 .
description(
"Names of all grids stored in the volume");
29 names.reserve(grids_num);
32 names.append(grid->name());
35 std::ranges::sort(names);
48 ntype.
ui_name =
"Get Grid Names";
50 "Retrieves the names of all grids stored in a volume as a list of strings";
#define NODE_CLASS_GEOMETRY
#define NOD_REGISTER_NODE(REGISTER_FUNC)
constexpr IndexRange()=default
static GListPtr from_container(ContainerT &&container)
T extract_input(const UString identifier)
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
static void node_register()
void node_geo_exec_with_missing_openvdb(GeoNodeExecParams ¶ms)
int BKE_volume_num_grids(const Volume *volume)
const bke::VolumeGridData * BKE_volume_grid_get(const Volume *volume, int grid_index)
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
const Volume * get_volume() const
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare