43 lines
1.1 KiB
C++
43 lines
1.1 KiB
C++
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
|
|
#include "BLI_virtual_array.hh"
|
|
|
|
#include "BKE_attribute_filter.hh"
|
|
|
|
struct Mesh;
|
|
namespace blender {
|
|
namespace fn {
|
|
template<typename T> class Field;
|
|
}
|
|
namespace bke {
|
|
enum class AttrDomain : int8_t;
|
|
} // namespace bke
|
|
} // namespace blender
|
|
|
|
namespace blender::geometry {
|
|
|
|
std::optional<Mesh *> mesh_copy_selection(const Mesh &src_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_keep_edges(
|
|
const Mesh &mesh,
|
|
const VArray<bool> &selection,
|
|
bke::AttrDomain selection_domain,
|
|
const bke::AttributeFilter &attribute_filter = {});
|
|
|
|
} // namespace blender::geometry
|