Blender V4.3
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
14#include "BLI_span.hh"
15#include "BLI_utildefines.h"
16
17struct 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
27
33 blender::MutableSpan<blender::float3> deform_vert_positions,
34 const bool affected_verts[],
35 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)