Blender V4.3
BKE_mesh_fair.hh File Reference
#include "BLI_math_vector_types.hh"
#include "BLI_span.hh"
#include "BLI_utildefines.h"

Go to the source code of this file.

Enumerations

enum  eMeshFairingDepth { MESH_FAIRING_DEPTH_POSITION = 1 , MESH_FAIRING_DEPTH_TANGENCY = 2 }
 

Functions

void BKE_mesh_prefair_and_fair_verts (Mesh *mesh, blender::MutableSpan< blender::float3 > deform_vert_positions, const bool affected_verts[], eMeshFairingDepth depth)
 

Detailed Description

Mesh Fairing algorithm designed by Brett Fedack, used in the addon "Mesh Fairing": https://github.com/fedackb/mesh-fairing.

Definition in file BKE_mesh_fair.hh.

Enumeration Type Documentation

◆ eMeshFairingDepth

Enumerator
MESH_FAIRING_DEPTH_POSITION 
MESH_FAIRING_DEPTH_TANGENCY 

Definition at line 23 of file BKE_mesh_fair.hh.

Function Documentation

◆ 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 )

This function can optionally use the vertex coordinates of deform_mverts to read and write the fairing result. When NULL, the function will use mesh positions directly.

Referenced by blender::ed::sculpt_paint::face_set::edit_fairing().