Blender
V5.0
source
blender
blenkernel
BKE_mesh_fair.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2023 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
5
#pragma once
6
12
13
#include "
BLI_math_vector_types.hh
"
14
#include "
BLI_span.hh
"
15
16
struct
Mesh
;
17
18
/* Mesh Fairing. */
19
/* Creates a smooth as possible geometry patch in a defined area. Different values of depth allow
20
* to minimize changes in the vertex positions or tangency in the affected area. */
21
22
enum
eMeshFairingDepth
{
23
MESH_FAIRING_DEPTH_POSITION
= 1,
24
MESH_FAIRING_DEPTH_TANGENCY
= 2,
25
};
26
31
void
BKE_mesh_prefair_and_fair_verts
(
Mesh
*mesh,
32
blender::MutableSpan<blender::float3>
deform_vert_positions,
33
const
bool
affected_verts[],
34
eMeshFairingDepth
depth);
eMeshFairingDepth
eMeshFairingDepth
Definition
BKE_mesh_fair.hh:22
MESH_FAIRING_DEPTH_POSITION
@ MESH_FAIRING_DEPTH_POSITION
Definition
BKE_mesh_fair.hh:23
MESH_FAIRING_DEPTH_TANGENCY
@ MESH_FAIRING_DEPTH_TANGENCY
Definition
BKE_mesh_fair.hh:24
BKE_mesh_prefair_and_fair_verts
void BKE_mesh_prefair_and_fair_verts(Mesh *mesh, blender::MutableSpan< blender::float3 > deform_vert_positions, const bool affected_verts[], eMeshFairingDepth depth)
BLI_math_vector_types.hh
BLI_span.hh
blender::MutableSpan
Definition
BLI_span.hh:443
Mesh
Definition
DNA_mesh_types.h:58
Generated on
for Blender by
doxygen
1.16.1