Blender V5.3
MOD_skin.cc File Reference
#include <algorithm>
#include "MEM_guardedalloc.h"
#include "BLI_array_utils.hh"
#include "BLI_bitmap.hh"
#include "BLI_enum_flags.hh"
#include "BLI_heap_simple.hh"
#include "BLI_math_geom_c.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_stack_c.hh"
#include "BLI_vector.hh"
#include "BLT_translation.hh"
#include "DNA_mesh_types.h"
#include "DNA_meshdata_types.h"
#include "DNA_modifier_types.h"
#include "DNA_screen_types.h"
#include "BKE_attribute_legacy_convert.hh"
#include "BKE_deform.hh"
#include "BKE_lib_id.hh"
#include "BKE_mesh.hh"
#include "BKE_mesh_mapping.hh"
#include "BKE_modifier.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "WM_types.hh"
#include "MOD_ui_common.hh"
#include "bmesh.hh"

Go to the source code of this file.

Classes

struct  blender::EMat
struct  blender::Frame
struct  blender::SkinNode
struct  blender::SkinOutput
struct  blender::EdgeStackElem

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define MAX_SKIN_NODE_FRAMES   2
#define NUM_SUBDIVISIONS_MAX   128

Enumerations

enum  blender::SkinNodeFlag { blender::CAP_START = 1 , blender::CAP_END = 2 , blender::SEAM_FRAME = 4 , blender::FLIP_NORMAL = 8 }

Functions

 blender::ENUM_OPERATORS (SkinNodeFlag)
Generic BMesh Utilities
static void blender::vert_face_normal_mark_set (BMVert *v)
static void blender::vert_face_normal_mark_update (BMVert *v)
static void blender::vert_array_face_normal_update (BMVert **verts, int verts_len)
Convex Hull
static bool blender::is_quad_symmetric (BMVert *quad[4], const SkinModifierData *smd)
static bool blender::quad_crosses_symmetry_plane (BMVert *quad[4], const SkinModifierData *smd)
static bool blender::build_hull (SkinOutput *so, Frame **frames, int totframe)
static float blender::frame_len (const Frame *frame)
static void blender::merge_frame_corners (Frame **frames, int totframe)
static Frame ** blender::collect_hull_frames (int v, SkinNode *frames, GroupedSpan< int > emap, const Span< int2 > edges, int *tothullframe)
Create Frames
static void blender::node_frames_init (SkinNode *nf, int totframe)
static void blender::create_frame (Frame *frame, const float co[3], const float radius[2], const float mat[3][3], float offset)
static float blender::half_v2 (const float v[2])
static void blender::end_node_frames (int v, SkinNode *skin_nodes, const Span< float3 > vert_positions, const VArray< float2 > &radius, GroupedSpan< int > emap, EMat *emat)
static int blender::connection_node_mat (float mat[3][3], int v, GroupedSpan< int > emap, EMat *emat)
static void blender::connection_node_frames (int v, SkinNode *skin_nodes, const Span< float3 > vert_positions, const VArray< float2 > &radius, GroupedSpan< int > emap, EMat *emat)
static SkinNode * blender::build_frames (const Span< float3 > vert_positions, int verts_num, const VArray< float2 > &radius, GroupedSpan< int > emap, EMat *emat)
Edge Matrices
static void blender::calc_edge_mat (float mat[3][3], const float a[3], const float b[3])
static void blender::build_emats_stack (BLI_Stack *stack, BLI_bitmap *visited_e, EMat *emat, GroupedSpan< int > emap, const Span< int2 > edges, const VArray< bool > &is_root, const Span< float3 > vert_positions)
static EMat * blender::build_edge_mats (const VArray< bool > &is_root, const Span< float3 > vert_positions, const int verts_num, const Span< int2 > edges, GroupedSpan< int > emap, bool *has_valid_root)
Input Subdivision
static int blender::calc_edge_subdivisions (const Span< float3 > vert_positions, const VArray< float2 > &radius, const VArray< bool > &is_loose, const int2 &edge, const Span< int > degree)
static Mesh * blender::subdivide_base (const Mesh *orig)

Output

#define PRINT_HOLE_INFO   0
enum  blender::eSkinErrorFlag { blender::SKIN_ERROR_NO_VALID_ROOT = (1 << 0) , blender::SKIN_ERROR_HULL = (1 << 1) }
static void blender::add_poly (SkinOutput *so, BMVert *v1, BMVert *v2, BMVert *v3, BMVert *v4)
static void blender::connect_frames (SkinOutput *so, BMVert *frame1[4], BMVert *frame2[4])
static void blender::output_frames (BMesh *bm, SkinNode *sn, const MDeformVert *input_dvert)
static void blender::calc_frame_center (float center[3], const Frame *frame)
static int blender::isect_ray_poly (const float ray_start[3], const float ray_dir[3], BMFace *f, float *r_lambda)
static BMFace * blender::collapse_face_corners (BMesh *bm, BMFace *f, int n, BMVert **orig_verts)
static BMFace * blender::skin_hole_target_face (BMesh *bm, Frame *frame)
static void blender::skin_choose_quad_bridge_order (BMVert *a[4], BMVert *b[4], int best_order[4])
static void blender::skin_fix_hole_no_good_verts (BMesh *bm, Frame *frame, BMFace *split_face)
static void blender::skin_hole_detach_partially_attached_frame (BMesh *bm, Frame *frame)
static void blender::quad_from_tris (BMEdge *e, BMFace *adj[2], BMVert *ndx[4])
static void blender::add_quad_from_tris (SkinOutput *so, BMEdge *e, BMFace *adj[2])
static void blender::hull_merge_triangles (SkinOutput *so, const SkinModifierData *smd)
static void blender::skin_merge_close_frame_verts (SkinNode *skin_nodes, int verts_num, GroupedSpan< int > emap, const Span< int2 > edges)
static void blender::skin_update_merged_vertices (SkinNode *skin_nodes, int verts_num)
static void blender::skin_fix_hull_topology (BMesh *bm, SkinNode *skin_nodes, int verts_num)
static void blender::skin_output_end_nodes (SkinOutput *so, SkinNode *skin_nodes, int verts_num)
static void blender::skin_output_connections (SkinOutput *so, SkinNode *skin_nodes, const Span< int2 > edges)
static void blender::skin_smooth_hulls (BMesh *bm, SkinNode *skin_nodes, int verts_num, const SkinModifierData *smd)
static bool blender::skin_output_branch_hulls (SkinOutput *so, SkinNode *skin_nodes, int verts_num, GroupedSpan< int > emap, const Span< int2 > edges)
 blender::ENUM_OPERATORS (eSkinErrorFlag)
static BMesh * blender::build_skin (SkinNode *skin_nodes, int verts_num, GroupedSpan< int > emap, const Span< int2 > edges, const MDeformVert *input_dvert, SkinModifierData *smd, eSkinErrorFlag *r_error)
static void blender::skin_set_orig_indices (Mesh *mesh)
static Mesh * blender::base_skin (Mesh *origmesh, SkinModifierData *smd, eSkinErrorFlag *r_error)
static Mesh * blender::final_skin (SkinModifierData *smd, Mesh *mesh, eSkinErrorFlag *r_error)

Skin Modifier

ModifierTypeInfo blender::modifierType_Skin
static void blender::init_data (ModifierData *md)
static Mesh * blender::modify_mesh (ModifierData *md, const ModifierEvalContext *ctx, Mesh *mesh)
static void blender::required_data_mask (ModifierData *, CustomData_MeshMasks *r_cddata_masks)
static void blender::panel_draw (const bContext *, Panel *panel)
static void blender::panel_register (ARegionType *region_type)

Macro Definition Documentation

◆ MAX_SKIN_NODE_FRAMES

#define MAX_SKIN_NODE_FRAMES   2

Definition at line 159 of file MOD_skin.cc.

◆ NUM_SUBDIVISIONS_MAX

#define NUM_SUBDIVISIONS_MAX   128

◆ PRINT_HOLE_INFO

#define PRINT_HOLE_INFO   0

Definition at line 1149 of file MOD_skin.cc.