Blender  V3.3
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 {
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. */
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. */
35  struct MVert *deform_mverts,
36  bool *affect_vertices,
37  eMeshFairingDepth depth);
38 
39 #ifdef __cplusplus
40 }
41 #endif
eMeshFairingDepth
Definition: BKE_mesh_fair.h:21
@ MESH_FAIRING_DEPTH_POSITION
Definition: BKE_mesh_fair.h:22
@ MESH_FAIRING_DEPTH_TANGENCY
Definition: BKE_mesh_fair.h:23
void BKE_bmesh_prefair_and_fair_vertices(struct BMesh *bm, bool *affect_vertices, eMeshFairingDepth depth)
Definition: mesh_fair.cc:481
void BKE_mesh_prefair_and_fair_vertices(struct Mesh *mesh, struct MVert *deform_mverts, bool *affect_vertices, eMeshFairingDepth depth)
Definition: mesh_fair.cc:471
ATTR_WARN_UNUSED_RESULT BMesh * bm