Blender  V3.3
Functions | Variables
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.h"
#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.h"
#include "BKE_deform.h"
#include "BKE_modifier.h"
#include "BKE_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_prototypes.h"
#include "DEG_depsgraph.h"
#include "MOD_modifiertypes.h"
#include "MOD_ui_common.h"
#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 Vector< int64_tselected_indices_from_vertex_group (Span< MDeformVert > vertex_group, const int index, const bool invert)
 
static Array< boolselection_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 MeshmodifyMesh (ModifierData *md, const ModifierEvalContext *UNUSED(ctx), Mesh *mesh)
 
static void initData (ModifierData *md)
 
static void requiredDataMask (Object *UNUSED(ob), ModifierData *md, CustomData_MeshMasks *r_cddata_masks)
 
static void panel_draw (const bContext *UNUSED(C), Panel *panel)
 
static void panelRegister (ARegionType *region_type)
 

Variables

ModifierTypeInfo modifierType_Weld
 

Detailed Description

Weld modifier: Remove doubles.

Definition in file MOD_weld.cc.

Function Documentation

◆ calculate_weld()

static std::optional<Mesh *> calculate_weld ( const Mesh mesh,
const WeldModifierData wmd 
)
static

◆ get_vertex_group()

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

Definition at line 58 of file MOD_weld.cc.

References CD_MDEFORMVERT, CustomData_get_layer(), mesh, Mesh::totvert, and Mesh::vdata.

Referenced by calculate_weld().

◆ initData()

static void initData ( ModifierData md)
static

◆ modifyMesh()

static Mesh* modifyMesh ( ModifierData md,
const ModifierEvalContext UNUSEDctx,
Mesh mesh 
)
static

Definition at line 130 of file MOD_weld.cc.

References calculate_weld(), mesh, and result.

◆ panel_draw()

static void panel_draw ( const bContext UNUSEDC,
Panel panel 
)
static

◆ panelRegister()

static void panelRegister ( ARegionType region_type)
static

Definition at line 182 of file MOD_weld.cc.

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

◆ requiredDataMask()

static void requiredDataMask ( Object UNUSEDob,
ModifierData md,
CustomData_MeshMasks r_cddata_masks 
)
static

◆ selected_indices_from_vertex_group()

static Vector<int64_t> selected_indices_from_vertex_group ( Span< MDeformVert vertex_group,
const int  index,
const bool  invert 
)
static

◆ 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 187 of file MOD_weld.cc.