Blender V4.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
5#pragma once
6
7#include <optional>
8
9#include "BLI_index_mask.hh"
10
12
13struct Mesh;
14namespace blender {
15namespace fn {
16template<typename T> class Field;
17}
18namespace bke {
19enum class AttrDomain : int8_t;
20} // namespace bke
21} // namespace blender
22
23namespace blender::geometry {
24
25std::optional<Mesh *> mesh_copy_selection(const Mesh &src_mesh,
26 const VArray<bool> &selection,
27 bke::AttrDomain selection_domain,
28 const bke::AttributeFilter &attribute_filter = {});
29
30std::optional<Mesh *> mesh_copy_selection_keep_verts(
31 const Mesh &src_mesh,
32 const VArray<bool> &selection,
33 bke::AttrDomain selection_domain,
34 const bke::AttributeFilter &attribute_filter = {});
35
36std::optional<Mesh *> mesh_copy_selection_keep_edges(
37 const Mesh &mesh,
38 const VArray<bool> &selection,
39 bke::AttrDomain selection_domain,
40 const bke::AttributeFilter &attribute_filter = {});
41
42} // namespace blender::geometry
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={})
signed char int8_t
Definition stdint.h:75