Blender
V4.3
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
#include "
BLI_sys_types.h
"
14
15
struct
Mesh
;
16
17
namespace
blender::bke::subdiv
{
18
19
struct
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. */
28
void
deform_coarse_vertices
(Subdiv *subdiv,
29
const
Mesh
*coarse_mesh,
30
MutableSpan<float3> vert_positions);
31
32
}
// namespace blender::bke::subdiv
BLI_math_vector_types.hh
BLI_span.hh
BLI_sys_types.h
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:183
Mesh
Definition
DNA_mesh_types.h:56
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0