Blender V4.3
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
9#pragma once
10
12#include "BLI_span.hh"
13#include "BLI_sys_types.h"
14
15struct Mesh;
16
17namespace blender::bke::subdiv {
18
19struct Subdiv;
20
21/* Special version of subdivision surface which calculates final positions for coarse vertices.
22 * Effectively is pushing the coarse positions to the limit surface.
23 *
24 * One of the usage examples is calculation of crazy space of subdivision modifier, allowing to
25 * paint on a deformed mesh with sub-surf on it.
26 *
27 * vertex_cos are supposed to hold coordinates of the coarse mesh. */
28void deform_coarse_vertices(Subdiv *subdiv,
29 const Mesh *coarse_mesh,
30 MutableSpan<float3> vert_positions);
31
32} // namespace blender::bke::subdiv
void deform_coarse_vertices(Subdiv *subdiv, const Mesh *coarse_mesh, MutableSpan< float3 > vert_positions)