Blender V5.0
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
14#include "BLI_span.hh"
15
16struct 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
26
32 blender::MutableSpan<blender::float3> deform_vert_positions,
33 const bool affected_verts[],
34 eMeshFairingDepth depth);
eMeshFairingDepth
@ MESH_FAIRING_DEPTH_POSITION
@ MESH_FAIRING_DEPTH_TANGENCY
void BKE_mesh_prefair_and_fair_verts(Mesh *mesh, blender::MutableSpan< blender::float3 > deform_vert_positions, const bool affected_verts[], eMeshFairingDepth depth)