Blender V4.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
5#pragma once
6
7#include <optional>
8#include <string>
9
10struct Mesh;
11
12namespace blender::geometry {
13
15 std::optional<std::string> top_id;
16 std::optional<std::string> bottom_id;
17 std::optional<std::string> side_id;
18 std::optional<std::string> uv_map_id;
19};
20
21enum class ConeFillType {
22 None = 0,
23 NGon = 1,
24 Triangles = 2,
25};
26
27Mesh *create_cylinder_or_cone_mesh(float radius_top,
28 float radius_bottom,
29 float depth,
30 int circle_segments,
31 int side_segments,
32 int fill_segments,
33 ConeFillType fill_type,
34 ConeAttributeOutputs &attribute_outputs);
35
36} // namespace blender::geometry
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)