19 .description(
"Side length of the plane in the X direction");
24 .description(
"Side length of the plane in the Y direction");
29 .
description(
"Number of vertices in the X direction");
34 .
description(
"Number of vertices in the Y direction");
36 b.add_output<
decl::Vector>(
"UV Map"_ustr).anonymous_attribute_output();
41 const float size_x = params.
extract_input<
float>(
"Size X"_ustr);
42 const float size_y = params.
extract_input<
float>(
"Size Y"_ustr);
43 const int verts_x = params.
extract_input<
int>(
"Vertices X"_ustr);
44 const int verts_y = params.
extract_input<
int>(
"Vertices Y"_ustr);
45 if (verts_x < 1 || verts_y < 1) {
General operations, lookup, etc. for materials.
#define NODE_CLASS_GEOMETRY
#define GEO_NODE_MESH_PRIMITIVE_GRID
#define NOD_REGISTER_NODE(REGISTER_FUNC)
std::optional< std::string > get_output_anonymous_attribute_id_if_needed(const UString output_identifier, const bool force_create=false)
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)
Mesh * create_grid_mesh(int verts_x, int verts_y, float size_x, float size_y, std::optional< StringRef > uv_map_id)
static void node_register()
static void node_geo_exec(GeoNodeExecParams params)
static void node_declare(NodeDeclarationBuilder &b)
void BKE_id_material_eval_ensure_default_slot(ID *id)
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
const char * enum_name_legacy
NodeDeclareFunction declare
static GeometrySet from_mesh(Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)