Blender V4.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
5#pragma once
6
7#include <optional>
8
9#include "BLI_bounds_types.hh"
11#include "BLI_string_ref.hh"
12
13struct Mesh;
14
15namespace blender::geometry {
16
21Bounds<float3> calculate_bounds_radial_primitive(float radius_top,
22 float radius_bottom,
23 int segments,
24 float height);
25
26Mesh *create_uv_sphere_mesh(float radius,
27 int segments,
28 int rings,
29 const std::optional<StringRef> &uv_map_id);
30
31} // namespace blender::geometry
Bounds< float3 > calculate_bounds_radial_primitive(float radius_top, float radius_bottom, int segments, float height)
Mesh * create_uv_sphere_mesh(float radius, int segments, int rings, const std::optional< StringRef > &uv_map_id)