|
Blender V5.3
|
#include <algorithm>#include "MEM_guardedalloc.h"#include "DNA_curveprofile_types.h"#include "DNA_meshdata_types.h"#include "DNA_modifier_types.h"#include "BLI_alloca.hh"#include "BLI_map.hh"#include "BLI_math_base_c.hh"#include "BLI_math_base_safe.hh"#include "BLI_math_geom_c.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_rotation_c.hh"#include "BLI_math_vector_c.hh"#include "BLI_memarena.hh"#include "BLI_set.hh"#include "BLI_utildefines.hh"#include "BLI_vector.hh"#include "BKE_curveprofile.h"#include "BKE_customdata.hh"#include "BKE_deform.hh"#include "BKE_mesh.hh"#include "BKE_mesh_mapping.hh"#include "eigen_capi.h"#include "bmesh.hh"#include "bmesh_bevel.hh"#include "./intern/bmesh_private.hh"Go to the source code of this file.
Classes | |
| struct | blender::NewVert |
| struct | blender::EdgeHalf |
| struct | blender::Profile |
| struct | blender::ProfileSpacing |
| struct | blender::MathLayerInfo |
| struct | blender::UVFace |
| struct | blender::BoundVert |
| struct | blender::VMesh |
| struct | blender::BevVert |
| struct | blender::BevelParams |
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Macros | |
| #define | BEVEL_EPSILON_D 1e-6 |
| #define | BEVEL_EPSILON 1e-6f |
| #define | BEVEL_EPSILON_SQ 1e-12f |
| #define | BEVEL_EPSILON_BIG 1e-4f |
| #define | BEVEL_EPSILON_BIG_SQ 1e-8f |
| #define | BEVEL_EPSILON_ANG DEG2RADF(2.0f) |
| #define | BEVEL_SMALL_ANG DEG2RADF(10.0f) |
| #define | BEVEL_SMALL_ANG_DOT (1.0f - cosf(BEVEL_SMALL_ANG)) |
| #define | BEVEL_EPSILON_ANG_DOT (1.0f - cosf(BEVEL_EPSILON_ANG)) |
| #define | BEVEL_MAX_ADJUST_PCT 10.0f |
| #define | BEVEL_MAX_AUTO_ADJUST_PCT 300.0f |
| #define | BEVEL_MATCH_SPEC_WEIGHT 0.2 |
| #define | PRO_SQUARE_R 1e4f |
| #define | PRO_CIRCLE_R 2.0f |
| #define | PRO_LINE_R 1.0f |
| #define | PRO_SQUARE_IN_R 0.0f |
| #define | BM_ELEM_LONG_TAG (1 << 6) |
| #define | EDGE_OUT 4 |
| #define | VERT_OUT 8 |
| #define | VEC_VALUE_LEN 6 |
| #define | BEVEL_GOOD_ANGLE 0.1f |
| #define | BEV_EXTEND_EDGE_DATA_CHECK(eh, flag) |
| #define | HASNOT_SEAMSHARP(eh, flag) |
| #define | BM_BEVEL_EDGE_TAG_ENABLE(bme) |
| #define | BM_BEVEL_EDGE_TAG_DISABLE(bme) |
| #define | BM_BEVEL_EDGE_TAG_TEST(bme) |
| #define | CIRCLE_FULLNESS_SEGS 11 |
Typedefs | |
| using | blender::UVVertBucket = Set<BMLoop *> |
| using | blender::UVVertMap = Map<BMVert *, Vector<UVVertBucket>> |
Enumerations | |
| enum | blender::MeshKind { blender::M_NONE , blender::M_POLY , blender::M_ADJ , blender::M_TRI_FAN , blender::M_CUTOFF } |
| enum | blender::FKind { blender::F_NONE , blender::F_ORIG , blender::F_VERT , blender::F_EDGE , blender::F_RECON } |
| enum | blender::AngleKind { blender::ANGLE_SMALLER = -1 , blender::ANGLE_STRAIGHT = 0 , blender::ANGLE_LARGER = 1 } |
Main functions for beveling a BMesh (used by the tool and modifier)
Definition in file bmesh_bevel.cc.
| #define BEV_EXTEND_EDGE_DATA_CHECK | ( | eh, | |
| flag ) |
Definition at line 2832 of file bmesh_bevel.cc.
| #define BEVEL_EPSILON 1e-6f |
Definition at line 53 of file bmesh_bevel.cc.
Referenced by blender::bevel_build_cutoff(), blender::bevel_vert_construct(), blender::geometry_collide_offset(), blender::interp_vmesh(), blender::move_weld_profile_planes(), blender::snap_to_superellipsoid(), and blender::tri_corner_test().
| #define BEVEL_EPSILON_ANG DEG2RADF(2.0f) |
Definition at line 57 of file bmesh_bevel.cc.
Referenced by blender::make_unit_square_map(), blender::nearly_parallel(), blender::offset_meet(), blender::pipe_test(), and blender::point_between_edges().
| #define BEVEL_EPSILON_ANG_DOT (1.0f - cosf(BEVEL_EPSILON_ANG)) |
Difference in dot products that corresponds to 2.0 degree difference between vectors.
Definition at line 62 of file bmesh_bevel.cc.
Referenced by blender::nearly_parallel_normalized().
| #define BEVEL_EPSILON_BIG 1e-4f |
Definition at line 55 of file bmesh_bevel.cc.
Referenced by blender::build_boundary_terminal_edge(), blender::eh_on_plane(), blender::is_bad_uv_poly(), blender::is_outside_edge(), blender::move_profile_plane(), and blender::pipe_test().
| #define BEVEL_EPSILON_BIG_SQ 1e-8f |
Definition at line 56 of file bmesh_bevel.cc.
| #define BEVEL_EPSILON_D 1e-6 |
Definition at line 52 of file bmesh_bevel.cc.
Referenced by blender::slide_dist(), and blender::snap_to_pipe_profile().
| #define BEVEL_EPSILON_SQ 1e-12f |
Definition at line 54 of file bmesh_bevel.cc.
Referenced by blender::adj_vmesh().
| #define BEVEL_GOOD_ANGLE 0.1f |
Definition at line 2073 of file bmesh_bevel.cc.
Referenced by blender::offset_meet_edge().
| #define BEVEL_MATCH_SPEC_WEIGHT 0.2 |
Definition at line 65 of file bmesh_bevel.cc.
Referenced by blender::adjust_the_cycle_or_chain().
| #define BEVEL_MAX_ADJUST_PCT 10.0f |
Definition at line 63 of file bmesh_bevel.cc.
| #define BEVEL_MAX_AUTO_ADJUST_PCT 300.0f |
Definition at line 64 of file bmesh_bevel.cc.
| #define BEVEL_SMALL_ANG DEG2RADF(10.0f) |
Definition at line 58 of file bmesh_bevel.cc.
Referenced by blender::offset_meet(), and blender::square_out_adj_vmesh().
| #define BEVEL_SMALL_ANG_DOT (1.0f - cosf(BEVEL_SMALL_ANG)) |
Difference in dot products that corresponds to 10 degree difference between vectors.
Definition at line 60 of file bmesh_bevel.cc.
Referenced by blender::next_edgehalf_bev().
| #define BM_BEVEL_EDGE_TAG_DISABLE | ( | bme | ) |
Definition at line 6596 of file bmesh_bevel.cc.
Referenced by blender::bevel_edge_order_extend(), blender::bevel_vert_construct(), and blender::fast_bevel_edge_order().
| #define BM_BEVEL_EDGE_TAG_ENABLE | ( | bme | ) |
Definition at line 6595 of file bmesh_bevel.cc.
Referenced by blender::bevel_edge_order_extend(), blender::bevel_vert_construct(), blender::fast_bevel_edge_order(), and blender::find_bevel_edge_order().
| #define BM_BEVEL_EDGE_TAG_TEST | ( | bme | ) |
Definition at line 6597 of file bmesh_bevel.cc.
Referenced by blender::bevel_edge_order_extend(), blender::fast_bevel_edge_order(), and blender::find_bevel_edge_order().
| #define BM_ELEM_LONG_TAG (1 << 6) |
Definition at line 751 of file bmesh_bevel.cc.
Referenced by blender::bevel_build_edge_polygons(), blender::bevel_harden_normals(), and blender::BM_mesh_bevel().
| #define CIRCLE_FULLNESS_SEGS 11 |
Referenced by blender::find_profile_fullness().
| #define EDGE_OUT 4 |
Definition at line 754 of file bmesh_bevel.cc.
| #define HASNOT_SEAMSHARP | ( | eh, | |
| flag ) |
Definition at line 2848 of file bmesh_bevel.cc.
Referenced by blender::check_edge_data_seam_sharp_edges().
| #define PRO_CIRCLE_R 2.0f |
Definition at line 159 of file bmesh_bevel.cc.
Referenced by blender::BM_mesh_bevel(), blender::find_even_superellipse_chords(), blender::find_profile_fullness(), blender::set_profile_params(), and blender::snap_to_superellipsoid().
| #define PRO_LINE_R 1.0f |
Definition at line 160 of file bmesh_bevel.cc.
Referenced by blender::add_new_bound_vert(), blender::BM_mesh_bevel(), blender::build_vmesh(), blender::calculate_profile(), blender::find_even_superellipse_chords(), blender::find_profile_fullness(), and blender::set_profile_params().
| #define PRO_SQUARE_IN_R 0.0f |
Definition at line 161 of file bmesh_bevel.cc.
Referenced by blender::adj_vmesh(), blender::bevel_build_rings(), blender::BM_mesh_bevel(), blender::find_even_superellipse_chords(), blender::make_cube_corner_adj_vmesh(), and blender::snap_to_superellipsoid().
| #define PRO_SQUARE_R 1e4f |
Definition at line 158 of file bmesh_bevel.cc.
Referenced by blender::bevel_build_rings(), blender::BM_mesh_bevel(), blender::find_even_superellipse_chords(), blender::make_cube_corner_adj_vmesh(), blender::snap_to_superellipsoid(), and blender::tri_corner_test().
| #define VEC_VALUE_LEN 6 |
Referenced by blender::choose_rep_face(), and blender::geometry::construct::choose_rep_face().
| #define VERT_OUT 8 |
Definition at line 755 of file bmesh_bevel.cc.