Blender V5.3
MOD_correctivesmooth.cc File Reference
#include <algorithm>
#include "BLI_math_base.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_vector_c.hh"
#include "BLI_utildefines.hh"
#include "BLT_translation.hh"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "MEM_guardedalloc.h"
#include "BKE_deform.hh"
#include "BKE_editmesh.hh"
#include "BKE_mesh_wrapper.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "MOD_modifiertypes.hh"
#include "MOD_ui_common.hh"
#include "MOD_util.hh"
#include "BLO_read_write.hh"
#include "DEG_depsgraph_query.hh"
#include "BLI_strict_flags.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static void blender::init_data (ModifierData *md)
static void blender::copy_data (const ModifierData *md, ModifierData *target, const int flag)
static void blender::freeBind (CorrectiveSmoothModifierData *csmd)
static void blender::free_data (ModifierData *md)
static void blender::required_data_mask (ModifierData *md, CustomData_MeshMasks *r_cddata_masks)
static void blender::mesh_get_weights (const MDeformVert *dvert, const int defgrp_index, const uint verts_num, const bool use_invert_vgroup, float *smooth_weights)
static void blender::mesh_get_boundaries (Mesh *mesh, float *smooth_weights)
static void blender::smooth_iter__simple (CorrectiveSmoothModifierData *csmd, Mesh *mesh, MutableSpan< float3 > vertexCos, const float *smooth_weights, uint iterations)
static void blender::smooth_iter__length_weight (CorrectiveSmoothModifierData *csmd, Mesh *mesh, MutableSpan< float3 > vertexCos, const float *smooth_weights, uint iterations)
static void blender::smooth_iter (CorrectiveSmoothModifierData *csmd, Mesh *mesh, MutableSpan< float3 > vertexCos, const float *smooth_weights, uint iterations)
static void blender::smooth_verts (CorrectiveSmoothModifierData *csmd, Mesh *mesh, const MDeformVert *dvert, const int defgrp_index, MutableSpan< float3 > vertexCos)
static bool blender::calc_tangent_loop (const float v_dir_prev[3], const float v_dir_next[3], float r_tspace[3][3])
static void blender::calc_tangent_spaces (const Mesh *mesh, Span< float3 > vertexCos, float(*r_tangent_spaces)[3][3], float *r_tangent_weights, float *r_tangent_weights_per_vertex)
static void blender::store_cache_settings (CorrectiveSmoothModifierData *csmd)
static bool blender::cache_settings_equal (CorrectiveSmoothModifierData *csmd)
static void blender::calc_deltas (CorrectiveSmoothModifierData *csmd, Mesh *mesh, const MDeformVert *dvert, const int defgrp_index, const Span< float3 > rest_coords)
static void blender::correctivesmooth_modifier_do (ModifierData *md, Depsgraph *depsgraph, Object *ob, Mesh *mesh, MutableSpan< float3 > vertexCos, BMEditMesh *em)
static void blender::deform_verts (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh, MutableSpan< float3 > positions)
static void blender::panel_draw (const bContext *, Panel *panel)
static void blender::panel_register (ARegionType *region_type)
static void blender::blend_write (BlendWriter *writer, const ID *id_owner, const ModifierData *md)
static void blender::blend_read (BlendDataReader *reader, ModifierData *md)

Variables

ModifierTypeInfo blender::modifierType_CorrectiveSmooth

Detailed Description

Method of smoothing deformation, also known as 'delta-mush'.

Definition in file MOD_correctivesmooth.cc.