Blender V5.3
multires_unsubdivide.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2020 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "BLI_span.hh"
12#include "BLI_virtual_array.hh"
13
14namespace blender {
15
16struct BMesh;
17struct Mesh;
18struct MDisps;
21
23 /* For sanity checks. */
26
29};
30
32 /* Input Mesh to un-subdivide. */
33 Mesh *original_mesh = nullptr;
35
38
40 Mesh *base_mesh = nullptr;
41
44
47
53
57
58 /* Private data. */
62};
63
64/* --------------------------------------------------------------------
65 * Construct/destruct reshape context.
66 */
67
69 Mesh *original_mesh,
72
73/* --------------------------------------------------------------------
74 * Rebuild Lower Subdivisions.
75 */
76
77/* Rebuilds all subdivision to the level 0 base mesh. */
80
81} // namespace blender
BMesh Iterators.
bool multires_unsubdivide_to_basemesh(MultiresUnsubdivideContext *context, MultiresUnsubdivideInfo &info)
void multires_unsubdivide_context_free(MultiresUnsubdivideContext *context)
void multires_unsubdivide_context_init(MultiresUnsubdivideContext *context, Mesh *original_mesh, MultiresModifierData *mmd)
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
MultiresUnsubdivideGrid * base_mesh_grids