|
Blender V4.3
|
#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 Mesh * | modify_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 |
|
static |
Definition at line 451 of file MOD_bevel.cc.
References BKE_curveprofile_blend_read(), BLO_read_struct, and BevelModifierData::custom_profile.
|
static |
Definition at line 440 of file MOD_bevel.cc.
References BKE_curveprofile_blend_write(), BLO_write_struct, and BevelModifierData::custom_profile.
|
static |
Definition at line 58 of file MOD_bevel.cc.
References BKE_curveprofile_copy(), BKE_modifier_copydata_generic(), BevelModifierData::custom_profile, and flag.
|
static |
Definition at line 77 of file MOD_bevel.cc.
References blender::bke::allow_procedural_attribute_access(), BKE_attribute_calc_unique_name(), CD_PROP_FLOAT, AttributeOwner::from_id(), and blender::bke::AttributeAccessor::lookup_meta_data().
Referenced by modify_mesh().
|
static |
Definition at line 277 of file MOD_bevel.cc.
References BKE_curveprofile_free(), and BevelModifierData::custom_profile.
Referenced by EDBM_mesh_load_ex().
Definition at line 374 of file MOD_bevel.cc.
References BEVEL_MITER_ARC, IFACE_, Panel::layout, MOD_BEVEL_AFFECT_VERTICES, modifier_panel_get_property_pointers(), ptr, RNA_enum_get(), UI_ITEM_NONE, uiItemR(), uiItemS(), uiLayoutRow(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
|
static |
Definition at line 47 of file MOD_bevel.cc.
References BKE_curveprofile_add(), BLI_assert, BevelModifierData::custom_profile, DNA_struct_default_get, MEMCMP_STRUCT_AFTER_IS_ZERO, MEMCPY_STRUCT_AFTER, and PROF_PRESET_LINE.
|
static |
Definition at line 283 of file MOD_bevel.cc.
References BevelModifierData::value.
|
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.
Definition at line 289 of file MOD_bevel.cc.
References BEVEL_AMT_PERCENT, col, IFACE_, Panel::layout, MOD_BEVEL_AFFECT_VERTICES, MOD_BEVEL_ANGLE, MOD_BEVEL_VGROUP, MOD_BEVEL_WEIGHT, modifier_panel_end(), modifier_panel_get_property_pointers(), modifier_vgroup_ui(), ptr, RNA_enum_get(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, uiItemR(), uiItemS(), uiLayoutColumn(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
|
static |
Definition at line 429 of file MOD_bevel.cc.
References eModifierType_Bevel, geometry_panel_draw(), modifier_panel_register(), modifier_subpanel_register(), panel_draw(), profile_panel_draw(), and shading_panel_draw().
Definition at line 335 of file MOD_bevel.cc.
References ELEM, IFACE_, Panel::layout, MOD_BEVEL_AFFECT_VERTICES, MOD_BEVEL_MITER_SHARP, MOD_BEVEL_PROFILE_CUSTOM, MOD_BEVEL_PROFILE_SUPERELLIPSE, modifier_panel_get_property_pointers(), ptr, RNA_enum_get(), UI_ITEM_R_EXPAND, UI_ITEM_R_SLIDER, uiItemR(), uiLayoutColumn(), uiLayoutRow(), uiLayoutSetActive(), uiLayoutSetPropDecorate(), uiLayoutSetPropSep(), and uiTemplateCurveProfile().
Referenced by panel_register().
|
static |
Definition at line 67 of file MOD_bevel.cc.
References CD_MASK_MDEFORMVERT, BevelModifierData::defgrp_name, and CustomData_MeshMasks::vmask.
Definition at line 407 of file MOD_bevel.cc.
References col, IFACE_, Panel::layout, MOD_BEVEL_AFFECT_VERTICES, modifier_panel_get_property_pointers(), ptr, RNA_enum_get(), UI_ITEM_NONE, uiItemR(), uiLayoutColumnWithHeading(), uiLayoutSetActive(), and uiLayoutSetPropSep().
Referenced by panel_register().
| ModifierTypeInfo modifierType_Bevel |
Definition at line 461 of file MOD_bevel.cc.