Blender
V5.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
8
9
#pragma once
10
11
#include <optional>
12
#include <string>
13
14
namespace
blender
{
15
16
struct
Mesh
;
17
18
namespace
geometry
{
19
20
struct
ConeAttributeOutputs
{
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
27
enum class
ConeFillType
{
28
None = 0,
29
NGon
= 1,
30
Triangles
= 2,
31
};
32
33
Mesh
*
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
blender::geometry
Definition
GEO_add_curves_on_mesh.hh:23
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:662
blender::geometry::ConeFillType
ConeFillType
Definition
GEO_mesh_primitive_cylinder_cone.hh:27
blender::geometry::ConeFillType::NGon
@ NGon
Definition
GEO_mesh_primitive_cylinder_cone.hh:29
blender::geometry::ConeFillType::Triangles
@ Triangles
Definition
GEO_mesh_primitive_cylinder_cone.hh:30
blender
BMesh Iterators.
Definition
ANIM_action.hh:30
blender::Mesh
Definition
DNA_mesh_types.h:148
blender::geometry::ConeAttributeOutputs
Definition
GEO_mesh_primitive_cylinder_cone.hh:20
blender::geometry::ConeAttributeOutputs::side_id
std::optional< std::string > side_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:23
blender::geometry::ConeAttributeOutputs::top_id
std::optional< std::string > top_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:21
blender::geometry::ConeAttributeOutputs::uv_map_id
std::optional< std::string > uv_map_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:24
blender::geometry::ConeAttributeOutputs::bottom_id
std::optional< std::string > bottom_id
Definition
GEO_mesh_primitive_cylinder_cone.hh:22
Generated on
for Blender by
doxygen
1.18.0