Blender V4.5
BKE_subdiv_deform.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2019 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
12#include "BLI_span.hh"
13
14struct Mesh;
15
16namespace blender::bke::subdiv {
17
18struct Subdiv;
19
20/* Special version of subdivision surface which calculates final positions for coarse vertices.
21 * Effectively is pushing the coarse positions to the limit surface.
22 *
23 * One of the usage examples is calculation of crazy space of subdivision modifier, allowing to
24 * paint on a deformed mesh with sub-surf on it.
25 *
26 * vertex_cos are supposed to hold coordinates of the coarse mesh. */
28 const Mesh *coarse_mesh,
29 MutableSpan<float3> vert_positions);
30
31} // namespace blender::bke::subdiv
struct Mesh Mesh
void deform_coarse_vertices(Subdiv *subdiv, const Mesh *coarse_mesh, MutableSpan< float3 > vert_positions)