Blender V5.3
GEO_mesh_primitive_uv_sphere.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include <optional>
12
13#include "BLI_bounds_types.hh"
15#include "BLI_string_ref.hh"
16
17namespace blender {
18
19struct Mesh;
20
21namespace geometry {
22
27Bounds<float3> calculate_bounds_radial_primitive(float radius_top,
28 float radius_bottom,
29 int segments,
30 float height);
31
32Mesh *create_uv_sphere_mesh(float radius,
33 int segments,
34 int rings,
35 std::optional<StringRef> uv_map_id);
36
37} // namespace geometry
38} // namespace blender
Mesh * create_uv_sphere_mesh(float radius, int segments, int rings, std::optional< StringRef > uv_map_id)
Bounds< float3 > calculate_bounds_radial_primitive(float radius_top, float radius_bottom, int segments, float height)
BMesh Iterators.