Blender V4.3
MOD_weld.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BLI_array.hh"
#include "BLI_index_range.hh"
#include "BLI_span.hh"
#include "BLI_vector.hh"
#include "BLT_translation.hh"
#include "DNA_defaults.h"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_screen_types.h"
#include "BKE_context.hh"
#include "BKE_customdata.hh"
#include "BKE_deform.hh"
#include "BKE_modifier.hh"
#include "BKE_screen.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "DEG_depsgraph.hh"
#include "MOD_modifiertypes.hh"
#include "MOD_ui_common.hh"
#include "GEO_mesh_merge_by_distance.hh"

Go to the source code of this file.

Functions

static Span< MDeformVertget_vertex_group (const Mesh &mesh, const int defgrp_index)
 
static IndexMask selected_indices_from_vertex_group (Span< MDeformVert > vertex_group, const int index, const bool invert, IndexMaskMemory &memory)
 
static Array< bool > selection_array_from_vertex_group (Span< MDeformVert > vertex_group, const int index, const bool invert)
 
static std::optional< Mesh * > calculate_weld (const Mesh &mesh, const WeldModifierData &wmd)
 
static Meshmodify_mesh (ModifierData *md, const ModifierEvalContext *, Mesh *mesh)
 
static void init_data (ModifierData *md)
 
static void required_data_mask (ModifierData *md, CustomData_MeshMasks *r_cddata_masks)
 
static void panel_draw (const bContext *, Panel *panel)
 
static void panel_register (ARegionType *region_type)
 

Variables

ModifierTypeInfo modifierType_Weld
 

Detailed Description

Weld modifier: Remove doubles.

Definition in file MOD_weld.cc.

Function Documentation

◆ calculate_weld()

◆ get_vertex_group()

static Span< MDeformVert > get_vertex_group ( const Mesh & mesh,
const int defgrp_index )
static

Definition at line 57 of file MOD_weld.cc.

References CD_MDEFORMVERT, and CustomData_get_layer().

Referenced by calculate_weld().

◆ init_data()

static void init_data ( ModifierData * md)
static

◆ modify_mesh()

static Mesh * modify_mesh ( ModifierData * md,
const ModifierEvalContext * ,
Mesh * mesh )
static

Definition at line 127 of file MOD_weld.cc.

References calculate_weld(), mesh, and result.

◆ panel_draw()

◆ panel_register()

static void panel_register ( ARegionType * region_type)
static

Definition at line 177 of file MOD_weld.cc.

References eModifierType_Weld, modifier_panel_register(), and panel_draw().

◆ required_data_mask()

static void required_data_mask ( ModifierData * md,
CustomData_MeshMasks * r_cddata_masks )
static

◆ selected_indices_from_vertex_group()

static IndexMask selected_indices_from_vertex_group ( Span< MDeformVert > vertex_group,
const int index,
const bool invert,
IndexMaskMemory & memory )
static

Definition at line 70 of file MOD_weld.cc.

References blender::Span< T >::index_range().

Referenced by calculate_weld().

◆ selection_array_from_vertex_group()

static Array< bool > selection_array_from_vertex_group ( Span< MDeformVert > vertex_group,
const int index,
const bool invert )
static

Variable Documentation

◆ modifierType_Weld

ModifierTypeInfo modifierType_Weld

Definition at line 182 of file MOD_weld.cc.