Blender V5.3
sculpt_hide.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2024 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BKE_paint_bvh.hh"
12
13#include "BLI_offset_indices.hh"
14#include "BLI_span.hh"
15#include "BLI_vector.hh"
16
17namespace blender {
18
19struct BMVert;
20struct Object;
21struct SubdivCCG;
22struct SubdivCCGCoord;
23namespace bke::pbvh {
24struct MeshNode;
25}
26
27namespace ed::sculpt_paint::hide {
28
29Span<int> node_visible_verts(const bke::pbvh::MeshNode &node,
30 Span<bool> hide_vert,
31 Vector<int, bke::pbvh::MESH_LEAF_LIMIT> &indices);
32Span<int> node_visible_shared_verts(const bke::pbvh::MeshNode &node,
33 Span<bool> hide_vert,
34 Vector<int> &indices);
35Span<int> node_visible_all_verts(const bke::pbvh::MeshNode &node,
36 Span<bool> hide_vert,
37 Vector<int> &indices,
38 int &unique_verts_num);
39
40/* Determines if all faces attached to a given vertex are visible. */
41bool vert_all_faces_visible_get(Span<bool> hide_poly, GroupedSpan<int> vert_to_face_map, int vert);
42bool vert_all_faces_visible_get(Span<bool> hide_poly,
43 const SubdivCCG &subdiv_ccg,
44 SubdivCCGCoord vert);
45bool vert_all_faces_visible_get(BMVert *vert);
46
47} // namespace ed::sculpt_paint::hide
48
49} // namespace blender
A BVH for high poly meshes.
Span< int > node_visible_all_verts(const bke::pbvh::MeshNode &node, const Span< bool > hide_vert, Vector< int > &indices, int &visible_unique_verts_num)
Span< int > node_visible_shared_verts(const bke::pbvh::MeshNode &node, const Span< bool > hide_vert, Vector< int > &indices)
Span< int > node_visible_verts(const bke::pbvh::MeshNode &node, const Span< bool > hide_vert, Vector< int, bke::pbvh::MESH_LEAF_LIMIT > &indices)
bool vert_all_faces_visible_get(const Span< bool > hide_poly, const GroupedSpan< int > vert_to_face_map, const int vert)
BMesh Iterators.