Blender V5.3
GEO_mesh_copy_selection.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
13#include "BLI_virtual_array.hh"
14
16
17namespace blender {
18
19struct Mesh;
20namespace fn {
21template<typename T> class Field;
22}
23namespace bke {
24enum class AttrDomain : int8_t;
25} // namespace bke
26
27namespace geometry {
28
29std::optional<Mesh *> mesh_copy_selection(const Mesh &src_mesh,
30 const VArray<bool> &selection,
31 bke::AttrDomain selection_domain,
32 const bke::AttributeFilter &attribute_filter = {});
33
34std::optional<Mesh *> mesh_copy_selection_keep_verts(
35 const Mesh &src_mesh,
36 const VArray<bool> &selection,
37 bke::AttrDomain selection_domain,
38 const bke::AttributeFilter &attribute_filter = {});
39
40std::optional<Mesh *> mesh_copy_selection_keep_edges(
41 const Mesh &mesh,
42 const VArray<bool> &selection,
43 bke::AttrDomain selection_domain,
44 const bke::AttributeFilter &attribute_filter = {});
45
46} // namespace geometry
47} // namespace blender
std::optional< Mesh * > mesh_copy_selection_keep_edges(const Mesh &mesh, const VArray< bool > &selection, bke::AttrDomain selection_domain, const bke::AttributeFilter &attribute_filter={})
std::optional< Mesh * > mesh_copy_selection_keep_verts(const Mesh &src_mesh, const VArray< bool > &selection, bke::AttrDomain selection_domain, const bke::AttributeFilter &attribute_filter={})
std::optional< Mesh * > mesh_copy_selection(const Mesh &src_mesh, const VArray< bool > &selection, bke::AttrDomain selection_domain, const bke::AttributeFilter &attribute_filter={})
BMesh Iterators.
signed char int8_t
Definition BKE_text.h:76