Blender  V2.93
Namespaces | Functions | Variables
node_geo_mesh_primitive_uv_sphere.cc File Reference
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "BKE_mesh.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "node_geometry_util.hh"

Go to the source code of this file.

Namespaces

 blender
 
 blender::nodes
 

Functions

static int blender::nodes::sphere_vert_total (const int segments, const int rings)
 
static int blender::nodes::sphere_edge_total (const int segments, const int rings)
 
static int blender::nodes::sphere_corner_total (const int segments, const int rings)
 
static int blender::nodes::sphere_face_total (const int segments, const int rings)
 
static void blender::nodes::calculate_sphere_vertex_data (MutableSpan< MVert > verts, const float radius, const int segments, const int rings)
 
static void blender::nodes::calculate_sphere_edge_indices (MutableSpan< MEdge > edges, const int segments, const int rings)
 
static void blender::nodes::calculate_sphere_faces (MutableSpan< MLoop > loops, MutableSpan< MPoly > polys, const int segments, const int rings)
 
static void blender::nodes::calculate_sphere_uvs (Mesh *mesh, const float segments, const float rings)
 
static Meshblender::nodes::create_uv_sphere_mesh (const float radius, const int segments, const int rings)
 
static void blender::nodes::geo_node_mesh_primitive_uv_sphere_exec (GeoNodeExecParams params)
 
void register_node_type_geo_mesh_primitive_uv_sphere ()
 

Variables

static bNodeSocketTemplate geo_node_mesh_primitive_uv_sphere_in []
 
static bNodeSocketTemplate geo_node_mesh_primitive_uv_sphere_out []
 

Function Documentation

◆ register_node_type_geo_mesh_primitive_uv_sphere()

void register_node_type_geo_mesh_primitive_uv_sphere ( void  )

Variable Documentation

◆ geo_node_mesh_primitive_uv_sphere_in

bNodeSocketTemplate geo_node_mesh_primitive_uv_sphere_in[]
static
Initial value:
= {
{SOCK_INT, N_("Segments"), 32, 0.0f, 0.0f, 0.0f, 3, 1024},
{SOCK_INT, N_("Rings"), 16, 0.0f, 0.0f, 0.0f, 2, 1024},
{SOCK_FLOAT, N_("Radius"), 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, FLT_MAX, PROP_DISTANCE},
{-1, ""},
}
#define N_(msgid)
@ SOCK_INT
@ SOCK_FLOAT
@ PROP_DISTANCE
Definition: RNA_types.h:135

Definition at line 27 of file node_geo_mesh_primitive_uv_sphere.cc.

Referenced by register_node_type_geo_mesh_primitive_uv_sphere().

◆ geo_node_mesh_primitive_uv_sphere_out

bNodeSocketTemplate geo_node_mesh_primitive_uv_sphere_out[]
static
Initial value:
= {
{SOCK_GEOMETRY, N_("Geometry")},
{-1, ""},
}
@ SOCK_GEOMETRY

Definition at line 34 of file node_geo_mesh_primitive_uv_sphere.cc.

Referenced by register_node_type_geo_mesh_primitive_uv_sphere().