Blender
V4.3
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
13
#include "
BLI_math_vector_types.hh
"
14
#include "
BLI_span.hh
"
15
#include "
BLI_utildefines.h
"
16
17
struct
Mesh
;
18
19
/* Mesh Fairing. */
20
/* Creates a smooth as possible geometry patch in a defined area. Different values of depth allow
21
* to minimize changes in the vertex positions or tangency in the affected area. */
22
23
enum
eMeshFairingDepth
{
24
MESH_FAIRING_DEPTH_POSITION
= 1,
25
MESH_FAIRING_DEPTH_TANGENCY
= 2,
26
};
27
32
void
BKE_mesh_prefair_and_fair_verts
(
Mesh
*mesh,
33
blender::MutableSpan<blender::float3>
deform_vert_positions,
34
const
bool
affected_verts[],
35
eMeshFairingDepth
depth);
eMeshFairingDepth
eMeshFairingDepth
Definition
BKE_mesh_fair.hh:23
MESH_FAIRING_DEPTH_POSITION
@ MESH_FAIRING_DEPTH_POSITION
Definition
BKE_mesh_fair.hh:24
MESH_FAIRING_DEPTH_TANGENCY
@ MESH_FAIRING_DEPTH_TANGENCY
Definition
BKE_mesh_fair.hh:25
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
BLI_utildefines.h
blender::MutableSpan
Definition
BLI_span.hh:444
Mesh
Definition
DNA_mesh_types.h:56
Generated on Thu Feb 6 2025 07:36:39 for Blender by
doxygen
1.11.0