Blender
V3.3
source
blender
blenkernel
BKE_subdiv_deform.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later
2
* Copyright 2019 Blender Foundation. All rights reserved. */
3
8
#pragma once
9
10
#include "
BLI_sys_types.h
"
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
16
struct
Mesh
;
17
struct
Subdiv
;
18
19
/* Special version of subdivision surface which calculates final positions for coarse vertices.
20
* Effectively is pushing the coarse positions to the limit surface.
21
*
22
* One of the usage examples is calculation of crazy space of subdivision modifier, allowing to
23
* paint on a deformed mesh with sub-surf on it.
24
*
25
* vertex_cos are supposed to hold coordinates of the coarse mesh. */
26
void
BKE_subdiv_deform_coarse_vertices
(
struct
Subdiv
*subdiv,
27
const
struct
Mesh
*coarse_mesh,
28
float
(*vertex_cos)[3],
29
int
num_verts);
30
31
#ifdef __cplusplus
32
}
33
#endif
BKE_subdiv_deform_coarse_vertices
void BKE_subdiv_deform_coarse_vertices(struct Subdiv *subdiv, const struct Mesh *coarse_mesh, float(*vertex_cos)[3], int num_verts)
Definition:
subdiv_deform.c:182
BLI_sys_types.h
Mesh
Definition:
DNA_mesh_types.h:151
Subdiv
Definition:
BKE_subdiv.h:156
Generated on Tue Oct 22 2024 13:18:25 for Blender by
doxygen
1.9.1