Blender V5.3
GEO_mesh_bevel.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10#include <optional>
11
12#include "BLI_array.hh"
13#include "BLI_index_mask.hh"
15
16#include "BKE_attribute.hh"
17
18struct MDeformVert;
19struct Mesh;
20
21namespace blender::geometry {
22
28enum class BevelAffect {
30 Edges = 1,
31 /* TODO: Implement Face Bevel. */
32 // Faces = 2,
33};
34
35enum class BevelMiterType {
36 Sharp = 0,
37 Patch = 1,
38 Arc = 2,
39};
40
42 std::optional<std::string> vertex_face_id;
43 std::optional<std::string> edge_face_id;
44 std::optional<std::string> outer_edge_id;
45 std::optional<std::string> mid_edge_id;
46};
47
80
85std::optional<Mesh *> mesh_bevel(const Mesh &src_mesh,
86 const IndexMask &selection,
87 const BevelParameters &params,
88 const bke::AttributeFilter &attribute_filter);
89
90} // namespace blender::geometry
Definition patch.h:12
std::optional< Mesh * > mesh_bevel(const Mesh &src_mesh, const IndexMask &selection, const BevelParameters &params, const bke::AttributeFilter &attribute_filter)
std::optional< std::string > edge_face_id
std::optional< std::string > vertex_face_id
std::optional< std::string > mid_edge_id
std::optional< std::string > outer_edge_id
std::array< Array< float >, 4 > offsets
geometry::BevelAttributeOutputs attribute_outputs