Blender
V4.3
source
blender
geometry
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
10
struct
Mesh
;
11
12
namespace
blender::geometry
{
13
14
struct
ConeAttributeOutputs
{
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
21
enum class
ConeFillType
{
22
None
= 0,
23
NGon
= 1,
24
Triangles
= 2,
25
};
26
27
Mesh
*
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
blender::geometry
Definition
GEO_add_curves_on_mesh.hh:17
blender::geometry::create_cylinder_or_cone_mesh
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)
Definition
mesh_primitive_cylinder_cone.cc:655
blender::geometry::ConeFillType
ConeFillType
Definition
GEO_mesh_primitive_cylinder_cone.hh:21
blender::geometry::ConeFillType::NGon
@ NGon
blender::geometry::ConeFillType::None
@ None
blender::geometry::ConeFillType::Triangles
@ Triangles
Mesh
Definition
DNA_mesh_types.h:56
blender::geometry::ConeAttributeOutputs
Definition
GEO_mesh_primitive_cylinder_cone.hh:14
blender::geometry::ConeAttributeOutputs::side_id
std::optional< std::string > side_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:17
blender::geometry::ConeAttributeOutputs::top_id
std::optional< std::string > top_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:15
blender::geometry::ConeAttributeOutputs::uv_map_id
std::optional< std::string > uv_map_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:18
blender::geometry::ConeAttributeOutputs::bottom_id
std::optional< std::string > bottom_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:16
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0