Blender V5.3
GEO_mesh_primitive_cylinder_cone.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#include <string>
13
14namespace blender {
15
16struct Mesh;
17
18namespace geometry {
19
21 std::optional<std::string> top_id;
22 std::optional<std::string> bottom_id;
23 std::optional<std::string> side_id;
24 std::optional<std::string> uv_map_id;
25};
26
27enum class ConeFillType {
28 None = 0,
29 NGon = 1,
31};
32
33Mesh *create_cylinder_or_cone_mesh(float radius_top,
34 float radius_bottom,
35 float depth,
36 int circle_segments,
37 int side_segments,
38 int fill_segments,
39 ConeFillType fill_type,
40 ConeAttributeOutputs &attribute_outputs);
41
42} // namespace geometry
43} // namespace blender
Mesh * create_cylinder_or_cone_mesh(float radius_top, float radius_bottom, float depth, int circle_segments, int side_segments, int fill_segments, ConeFillType fill_type, ConeAttributeOutputs &attribute_outputs)
BMesh Iterators.