Blender
V3.3
source
blender
blenkernel
BKE_mesh_fair.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#pragma once
4
11
#include "
BLI_utildefines.h
"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
/* Mesh Fairing. */
18
/* Creates a smooth as possible geometry patch in a defined area. Different values of depth allow
19
* to minimize changes in the vertex positions or tangency in the affected area. */
20
21
typedef
enum
eMeshFairingDepth
{
22
MESH_FAIRING_DEPTH_POSITION
= 1,
23
MESH_FAIRING_DEPTH_TANGENCY
= 2,
24
}
eMeshFairingDepth
;
25
26
/* affect_vertices is used to define the fairing area. Indexed by vertex index, set to true when
27
* the vertex should be modified by fairing. */
28
void
BKE_bmesh_prefair_and_fair_vertices
(
struct
BMesh
*
bm
,
29
bool
*affect_vertices,
30
eMeshFairingDepth
depth);
31
32
/* This function can optionally use the MVert coordinates of deform_mverts to read and write the
33
* fairing result. When NULL, the function will use mesh->mverts directly. */
34
void
BKE_mesh_prefair_and_fair_vertices
(
struct
Mesh
*
mesh
,
35
struct
MVert
*deform_mverts,
36
bool
*affect_vertices,
37
eMeshFairingDepth
depth);
38
39
#ifdef __cplusplus
40
}
41
#endif
eMeshFairingDepth
eMeshFairingDepth
Definition:
BKE_mesh_fair.h:21
MESH_FAIRING_DEPTH_POSITION
@ MESH_FAIRING_DEPTH_POSITION
Definition:
BKE_mesh_fair.h:22
MESH_FAIRING_DEPTH_TANGENCY
@ MESH_FAIRING_DEPTH_TANGENCY
Definition:
BKE_mesh_fair.h:23
BKE_bmesh_prefair_and_fair_vertices
void BKE_bmesh_prefair_and_fair_vertices(struct BMesh *bm, bool *affect_vertices, eMeshFairingDepth depth)
Definition:
mesh_fair.cc:481
BKE_mesh_prefair_and_fair_vertices
void BKE_mesh_prefair_and_fair_vertices(struct Mesh *mesh, struct MVert *deform_mverts, bool *affect_vertices, eMeshFairingDepth depth)
Definition:
mesh_fair.cc:471
BLI_utildefines.h
bm
ATTR_WARN_UNUSED_RESULT BMesh * bm
Definition:
bmesh_iterators_inline.h:151
mesh
Mesh mesh
Definition:
deg_eval_copy_on_write.cc:105
BMesh
Definition:
bmesh_class.h:296
MVert
Definition:
DNA_meshdata_types.h:26
Mesh
Definition:
DNA_mesh_types.h:151
Generated on Sat Jul 27 2024 14:57:55 for Blender by
doxygen
1.9.1