Blender
V4.5
source
blender
blenkernel
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
11
#include "
BLI_math_vector_types.hh
"
12
#include "
BLI_span.hh
"
13
14
struct
Mesh
;
15
16
namespace
blender::bke::subdiv
{
17
18
struct
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. */
27
void
deform_coarse_vertices
(Subdiv *subdiv,
28
const
Mesh
*coarse_mesh,
29
MutableSpan<float3> vert_positions);
30
31
}
// namespace blender::bke::subdiv
BLI_math_vector_types.hh
BLI_span.hh
blender::bke::subdiv
Definition
BKE_multires.hh:23
blender::bke::subdiv::deform_coarse_vertices
void deform_coarse_vertices(Subdiv *subdiv, const Mesh *coarse_mesh, MutableSpan< float3 > vert_positions)
Definition
subdiv_deform.cc:179
Mesh
Definition
DNA_mesh_types.h:59
Generated on Fri Apr 3 2026 06:33:18 for Blender by
doxygen
1.11.0