Blender V4.3
MOD_bevel.cc File Reference
#include <algorithm>
#include "MEM_guardedalloc.h"
#include "BLI_math_vector.h"
#include "BLI_string.h"
#include "BLI_utildefines.h"
#include "BLT_translation.hh"
#include "DNA_curveprofile_types.h"
#include "DNA_defaults.h"
#include "DNA_object_types.h"
#include "DNA_screen_types.h"
#include "BKE_attribute.hh"
#include "BKE_curveprofile.h"
#include "BKE_deform.hh"
#include "BKE_mesh.hh"
#include "BKE_modifier.hh"
#include "UI_interface.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_prototypes.hh"
#include "MOD_ui_common.hh"
#include "MOD_util.hh"
#include "BLO_read_write.hh"
#include "GEO_randomize.hh"
#include "bmesh.hh"
#include "bmesh_tools.hh"

Go to the source code of this file.

Functions

static void init_data (ModifierData *md)
 
static void copy_data (const ModifierData *md_src, ModifierData *md_dst, const int flag)
 
static void required_data_mask (ModifierData *md, CustomData_MeshMasks *r_cddata_masks)
 
static std::string ensure_weight_attribute_meta_data (Mesh &mesh, const blender::StringRef name, const blender::bke::AttrDomain domain, bool &r_attr_converted)
 
static Meshmodify_mesh (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh)
 
static void free_data (ModifierData *md)
 
static bool is_disabled (const Scene *, ModifierData *md, bool)
 
static void panel_draw (const bContext *, Panel *panel)
 
static void profile_panel_draw (const bContext *, Panel *panel)
 
static void geometry_panel_draw (const bContext *, Panel *panel)
 
static void shading_panel_draw (const bContext *, Panel *panel)
 
static void panel_register (ARegionType *region_type)
 
static void blend_write (BlendWriter *writer, const ID *, const ModifierData *md)
 
static void blend_read (BlendDataReader *reader, ModifierData *md)
 

Variables

ModifierTypeInfo modifierType_Bevel
 

Function Documentation

◆ blend_read()

static void blend_read ( BlendDataReader * reader,
ModifierData * md )
static

◆ blend_write()

static void blend_write ( BlendWriter * writer,
const ID * ,
const ModifierData * md )
static

◆ copy_data()

static void copy_data ( const ModifierData * md_src,
ModifierData * md_dst,
const int flag )
static

◆ ensure_weight_attribute_meta_data()

static std::string ensure_weight_attribute_meta_data ( Mesh & mesh,
const blender::StringRef name,
const blender::bke::AttrDomain domain,
bool & r_attr_converted )
static

◆ free_data()

static void free_data ( ModifierData * md)
static

Definition at line 277 of file MOD_bevel.cc.

References BKE_curveprofile_free(), and BevelModifierData::custom_profile.

Referenced by EDBM_mesh_load_ex().

◆ geometry_panel_draw()

◆ init_data()

◆ is_disabled()

static bool is_disabled ( const Scene * ,
ModifierData * md,
bool  )
static

Definition at line 283 of file MOD_bevel.cc.

References BevelModifierData::value.

◆ modify_mesh()

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

Definition at line 110 of file MOD_bevel.cc.

References BevelModifierData::affect_type, BevelModifierData::bevel_angle, BKE_defvert_array_find_weight_safe(), BKE_mesh_from_bmesh_for_eval_nomain(), BKE_mesh_to_bmesh_ex(), BLI_assert, bm, BM_edge_is_manifold(), BM_edge_loop_pair(), BM_EDGES_OF_MESH, BM_ELEM_CD_GET_FLOAT, BM_elem_flag_enable, BM_elem_index_get, BM_ELEM_TAG, BM_ITER_MESH, BM_mesh_bevel(), BM_mesh_free(), BM_VERTS_OF_MESH, BMeshFromMeshParams::calc_face_normal, CD_MASK_ORIGINDEX, CD_PROP_FLOAT, cosf, BevelModifierData::custom_profile, CustomData_get_offset_named(), blender::geometry::debug_randomize_mesh_order(), BevelModifierData::defgrp_name, dot_v3v3(), e, BMesh::edata, BevelModifierData::edge_flags, BevelModifierData::edge_weight_name, ensure_weight_attribute_meta_data(), BMesh::etoolflagpool, BMLoop::f, BevelModifierData::face_str_mode, BevelModifierData::flags, BMesh::ftoolflagpool, l_b, BevelModifierData::lim_flags, BevelModifierData::mat, BevelModifierData::miter_inner, BevelModifierData::miter_outer, MOD_BEVEL_AFFECT_VERTICES, MOD_BEVEL_ANGLE, MOD_BEVEL_EVEN_WIDTHS, MOD_BEVEL_HARDEN_NORMALS, MOD_BEVEL_INVERT_VGROUP, MOD_BEVEL_MARK_SEAM, MOD_BEVEL_MARK_SHARP, MOD_BEVEL_OVERLAP_OK, MOD_BEVEL_VGROUP, MOD_BEVEL_WEIGHT, MOD_get_vgroup(), BMFace::no, ModifierEvalContext::object, BevelModifierData::profile, BevelModifierData::profile_type, BevelModifierData::res, result, BevelModifierData::spread, Object::totcol, v, BevelModifierData::val_flags, BevelModifierData::value, BMesh::vdata, BevelModifierData::vertex_weight_name, BevelModifierData::vmesh_method, and BMesh::vtoolflagpool.

◆ panel_draw()

◆ panel_register()

◆ profile_panel_draw()

◆ required_data_mask()

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

◆ shading_panel_draw()

Variable Documentation

◆ modifierType_Bevel

ModifierTypeInfo modifierType_Bevel

Definition at line 461 of file MOD_bevel.cc.