Blender V5.3
MOD_weighted_normal.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_array_utils.hh"
#include "BLI_math_vector_c.hh"
#include "BLT_translation.hh"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_screen_types.h"
#include "BKE_attribute.hh"
#include "BKE_context.hh"
#include "BKE_deform.hh"
#include "BKE_lib_id.hh"
#include "BKE_mesh.hh"
#include "BKE_screen.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 "bmesh.hh"

Go to the source code of this file.

Classes

struct  blender::ModePair
struct  blender::WeightedNormalDataAggregateItem
struct  blender::WeightedNormalData

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define CLNORS_VALID_VEC_LEN   (1e-6f)
#define NUM_CACHED_INVERSE_POWERS_OF_WEIGHT   128

Functions

static int blender::modepair_cmp_by_val_inverse (const void *p1, const void *p2)
static bool blender::check_item_face_strength (WeightedNormalData *wn_data, WeightedNormalDataAggregateItem *item_data, const int face_index)
static void blender::aggregate_item_normal (WeightedNormalModifierData *wnmd, WeightedNormalData *wn_data, WeightedNormalDataAggregateItem *item_data, const int mv_index, const int face_index, const float curr_val, const bool use_face_influence)
static void blender::apply_weights_vertex_normal (WeightedNormalModifierData *wnmd, WeightedNormalData *wn_data)
static void blender::wn_face_area (WeightedNormalModifierData *wnmd, WeightedNormalData *wn_data)
static void blender::wn_corner_angle (WeightedNormalModifierData *wnmd, WeightedNormalData *wn_data)
static void blender::wn_face_with_angle (WeightedNormalModifierData *wnmd, WeightedNormalData *wn_data)
static Mesh * blender::modify_mesh (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh)
static void blender::init_data (ModifierData *md)
static void blender::required_data_mask (ModifierData *md, CustomData_MeshMasks *r_cddata_masks)
static void blender::panel_draw (const bContext *, Panel *panel)
static void blender::panel_register (ARegionType *region_type)

Variables

ModifierTypeInfo blender::modifierType_WeightedNormal

Macro Definition Documentation

◆ CLNORS_VALID_VEC_LEN

#define CLNORS_VALID_VEC_LEN   (1e-6f)

Definition at line 41 of file MOD_weighted_normal.cc.

◆ NUM_CACHED_INVERSE_POWERS_OF_WEIGHT

#define NUM_CACHED_INVERSE_POWERS_OF_WEIGHT   128

Definition at line 67 of file MOD_weighted_normal.cc.

Referenced by blender::aggregate_item_normal().