Blender V4.3
mesh_primitive_uv_sphere.cc File Reference

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::geometry
 

Functions

Bounds< float3blender::geometry::calculate_bounds_radial_primitive (float radius_top, float radius_bottom, int segments, float height)
 
static int blender::geometry::sphere_vert_total (const int segments, const int rings)
 
static int blender::geometry::sphere_edge_total (const int segments, const int rings)
 
static int blender::geometry::sphere_corner_total (const int segments, const int rings)
 
static int blender::geometry::sphere_face_total (const int segments, const int rings)
 
static BLI_NOINLINE void blender::geometry::calculate_sphere_vertex_data (MutableSpan< float3 > positions, MutableSpan< float3 > vert_normals, const float radius, const int segments, const int rings)
 
static BLI_NOINLINE void blender::geometry::calculate_sphere_edge_indices (MutableSpan< int2 > edges, const int segments, const int rings)
 
static BLI_NOINLINE void blender::geometry::calculate_sphere_faces (MutableSpan< int > face_offsets, const int segments)
 
static BLI_NOINLINE void blender::geometry::calculate_sphere_corners (MutableSpan< int > corner_verts, MutableSpan< int > corner_edges, const int segments, const int rings)
 
static BLI_NOINLINE void blender::geometry::calculate_sphere_uvs (Mesh *mesh, const float segments, const float rings, const StringRef uv_map_id)
 
static Bounds< float3blender::geometry::calculate_bounds_uv_sphere (const float radius, const int segments, const int rings)
 
Meshblender::geometry::create_uv_sphere_mesh (float radius, int segments, int rings, const std::optional< StringRef > &uv_map_id)