36 b.add_output<
decl::Material>(
"Materials"_ustr).structure_type(StructureType::List);
43 "Component Type"_ustr);
65 materials =
mesh->mat;
72 materials = point_cloud->mat;
73 count = point_cloud->totcol;
81 if (count == 0 || materials ==
nullptr) {
97 ntype.
ui_name =
"Geometry Materials";
98 ntype.
ui_description =
"Get a list of the materials used by a geometry component";
General operations, lookup, etc. for materials.
#define NODE_CLASS_GEOMETRY
Object is a sort of wrapper for general info.
#define NOD_REGISTER_NODE(REGISTER_FUNC)
void copy_construct_n(const void *src, void *dst, int64_t n) const
static const CPPType & get()
static GListPtr from_garray(GArray<> array)
T extract_input(const UString identifier)
void set_default_remaining_outputs()
void set_output(const UString identifier, T &&value)
void node_register_type(bNodeType &ntype)
static void node_register()
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
const EnumPropertyItem rna_enum_geometry_component_type_items[]
void geo_node_type_base(bke::bNodeType *ntype, UString idname, const std::optional< int16_t > legacy_type)
const GreasePencil * get_grease_pencil() const
const Curves * get_curves() const
const PointCloud * get_pointcloud() const
const Mesh * get_mesh() const
std::string ui_description
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare