48 "create_cube matrix=%m4 size=%f calc_uvs=%b",
54 params.calc_object_remap =
false;
64 const float size =
params.extract_input<
float>(
"Size");
void * BKE_id_new_nomain(const short type, const char *name)
void node_type_socket_templates(struct bNodeType *ntype, struct bNodeSocketTemplate *inputs, struct bNodeSocketTemplate *outputs)
#define GEO_NODE_MESH_PRIMITIVE_CUBE
#define NODE_CLASS_GEOMETRY
void nodeRegisterType(struct bNodeType *ntype)
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)
BMesh Make Mesh.
void BM_mesh_bm_to_me(Main *bmain, BMesh *bm, Mesh *me, const struct BMeshToMeshParams *params)
#define BMO_FLAG_DEFAULTS
bool BMO_op_callf(BMesh *bm, const int flag, const char *fmt,...)
SIMD_FORCE_INLINE btVector3 transform(const btVector3 &point) const
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
static void geo_node_mesh_primitive_cube_exec(GeoNodeExecParams params)
Mesh * create_cube_mesh(const float size)
static bNodeSocketTemplate geo_node_mesh_primitive_cube_in[]
void register_node_type_geo_mesh_primitive_cube()
static bNodeSocketTemplate geo_node_mesh_primitive_cube_out[]
void geo_node_type_base(bNodeType *ntype, int type, const char *name, short nclass, short flag)
static GeometrySet create_with_mesh(Mesh *mesh, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
Compact definition of a node socket.
NodeGeometryExecFunction geometry_node_execute
static float4x4 identity()