21 .
description(
N_(
"Distance from the generated points to the origin"));
26 .
description(
N_(
"Number of subdivisions on top of the basic icosahedron"));
42 "create_icosphere subdivisions=%i radius=%f matrix=%m4 calc_uvs=%b",
49 params.calc_object_remap =
false;
60 const int subdivisions =
std::min(
params.extract_input<
int>(
"Subdivisions"), 10);
61 const float radius =
params.extract_input<
float>(
"Radius");
void * BKE_id_new_nomain(short type, const char *name)
General operations, lookup, etc. for materials.
void BKE_id_material_eval_ensure_default_slot(struct ID *id)
#define GEO_NODE_MESH_PRIMITIVE_ICO_SPHERE
#define NODE_CLASS_GEOMETRY
void nodeRegisterType(struct bNodeType *ntype)
void BM_data_layer_add_named(BMesh *bm, CustomData *data, int type, const char *name)
ATTR_WARN_UNUSED_RESULT BMesh * bm
void BM_mesh_free(BMesh *bm)
BMesh Free Mesh.
BMesh * BM_mesh_create(const BMAllocTemplate *allocsize, const struct BMeshCreateParams *params)
void BM_mesh_bm_to_me(Main *bmain, BMesh *bm, Mesh *me, const struct BMeshToMeshParams *params)
bool BMO_op_callf(BMesh *bm, int flag, const char *fmt,...)
#define BMO_FLAG_DEFAULTS
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
StringRefNull description() const
static Mesh * create_ico_sphere_mesh(const int subdivisions, const float radius)
static void node_declare(NodeDeclarationBuilder &b)
static void node_geo_exec(GeoNodeExecParams params)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
void register_node_type_geo_mesh_primitive_ico_sphere()
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass)
static GeometrySet create_with_mesh(Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
NodeGeometryExecFunction geometry_node_execute
NodeDeclareFunction declare
static float4x4 identity()