|
Blender V5.3
|
Functions | |
| static int | edge_other_vert (const ExtendableMesh &emesh, int e, int v) |
| static float3 | slide_dist (const ExtendableMesh &emesh, int e, int v, float d) |
| static bool | is_outside_edge (const ExtendableMesh &emesh, EdgeHalf *eh, const float co[3], int *ret_closer_v) |
| static bool | point_between_edges (const ExtendableMesh &emesh, const float co[3], int v, int f, EdgeHalf *e1, EdgeHalf *e2) |
| static float3 | offset_meet (const ExtendableMesh &emesh, EdgeHalf *e1, EdgeHalf *e2, int v, int f, bool edges_between, const EdgeHalf *e_in_plane) |
VMesh grid helpers | |
| static NewVert * | mesh_vert (VMesh *vm, int i, int j, int k) |
| static NewVert * | mesh_vert_canon (VMesh *vm, int i, int j, int k) |
| static bool | is_canon (const VMesh *vm, int i, int j, int k) |
| static void | vmesh_copy_equiv_verts (VMesh *vm) |
| static float3 | vmesh_center (VMesh *vm) |
| static float3 | avg4 (const NewVert *v0, const NewVert *v1, const NewVert *v2, const NewVert *v3) |
Profile geometry helpers | |
| static bool | nearly_parallel (const float3 &d1, const float3 &d2) |
| static bool | make_unit_square_map (const float3 &va, const float3 &vmid, const float3 &vb, float4x4 &r_mat) |
| static float | sabin_gamma (int n) |
Variables | |
| constexpr float | BEVEL_EPSILON_D = 1e-6f |
| constexpr float | BEVEL_EPSILON_SQ = 1e-12f |
| constexpr float | BEVEL_EPSILON_BIG = 1e-4f |
| constexpr float | BEVEL_EPSILON_ANG = DEG2RADF(2.0f) |
| constexpr float | BEVEL_SMALL_ANG = DEG2RADF(10.0f) |
| const float | BEVEL_SMALL_ANG_DOT = (1.0f - std::cos(BEVEL_SMALL_ANG)) |
| const float | BEVEL_EPSILON_ANG_DOT = (1.0f - std::cos(BEVEL_EPSILON_ANG)) |
|
static |
Definition at line 1398 of file mesh_bevel.cc.
References avg4(), blender::BMVert::co, blender::geometry::NewVert::co, and blender::v2.
Referenced by avg4(), and blender::geometry::construct::cubic_subdiv().
|
static |
Definition at line 1068 of file mesh_bevel.cc.
References blender::e, edge_other_vert(), blender::geometry::ExtendableMesh::edge_verts(), and blender::v.
Referenced by blender::geometry::construct::adjust_miter_coords(), blender::geometry::construct::adjust_miter_inner_coords(), edge_other_vert(), blender::geometry::construct::edges_angle_kind(), blender::geometry::construct::offset_in_plane(), offset_meet(), blender::geometry::construct::pipe_test(), point_between_edges(), slide_dist(), blender::geometry::construct::snap_to_pipe_profile(), and blender::geometry::construct::square_out_adj_vmesh().
|
static |
Definition at line 1352 of file mesh_bevel.cc.
References is_canon(), and blender::geometry::VMesh::seg.
Referenced by blender::geometry::construct::build_vmesh(), is_canon(), blender::geometry::construct::make_cube_corner_square(), blender::geometry::construct::pipe_adj_vmesh(), and vmesh_copy_equiv_verts().
|
static |
Definition at line 1089 of file mesh_bevel.cc.
References BEVEL_EPSILON_BIG, blender::math::dot(), blender::geometry::EdgeHalf::e, is_outside_edge(), blender::math::length(), blender::geometry::ExtendableMesh::src_edges, blender::v2, and blender::geometry::ExtendableMesh::vert_position().
Referenced by is_outside_edge(), and offset_meet().
|
static |
Builds a 4x4 matrix that maps the unit square to the triangle (va, vmid, vb). Returns false when the three points are collinear or degenerate.
Definition at line 1421 of file mesh_bevel.cc.
References blender::math::abs(), blender::math::angle_between(), BEVEL_EPSILON_ANG, blender::math::cross(), blender::math::is_zero(), M_PI, make_unit_square_map(), and blender::math::normalize().
Referenced by blender::geometry::profile::calculate_profile(), blender::geometry::construct::make_cube_corner_adj_vmesh(), make_unit_square_map(), and blender::geometry::construct::snap_to_pipe_profile().
Return a pointer to the NewVert at grid position (i, j, k) in vm. The grid layout is mesh[i * nj * nk + j * nk + k] where nj = seg/2 + 1 and nk = seg + 1.
Definition at line 1318 of file mesh_bevel.cc.
References blender::geometry::VMesh::mesh, mesh_vert(), and blender::geometry::VMesh::seg.
Referenced by blender::geometry::construct::adj_vmesh(), blender::geometry::construct::bev_rebuild_polygon(), blender::geometry::construct::bevel_build_edge_polygons(), blender::geometry::construct::bevel_build_poly(), blender::geometry::construct::bevel_build_rings(), blender::geometry::construct::bevel_build_trifan(), blender::geometry::construct::bevel_extend_edge_data(), blender::geometry::construct::bevel_vert_two_edges(), blender::geometry::construct::build_vmesh(), blender::geometry::construct::cubic_subdiv(), blender::geometry::debug::dump_edge_polygons(), blender::geometry::debug::dump_vmesh(), blender::geometry::construct::fill_vmesh_fracs(), blender::geometry::construct::interp_vmesh(), blender::geometry::construct::make_cube_corner_adj_vmesh(), blender::geometry::construct::make_cube_corner_square(), blender::geometry::construct::make_cube_corner_square_in(), mesh_vert(), mesh_vert_canon(), blender::geometry::construct::pipe_adj_vmesh(), blender::geometry::construct::square_out_adj_vmesh(), blender::geometry::construct::tri_corner_adj_vmesh(), vmesh_center(), and vmesh_copy_equiv_verts().
Return the canonical representative for vmesh position (i, j, k). Due to the rotational symmetry of the vmesh grid, many positions are equivalent; this function maps any (i, j, k) to the one canonical representative in the stored range.
Definition at line 1331 of file mesh_bevel.cc.
References blender::BLI_assert(), blender::geometry::VMesh::count, mesh_vert(), mesh_vert_canon(), and blender::geometry::VMesh::seg.
Referenced by blender::geometry::construct::cubic_subdiv(), blender::geometry::construct::interp_vmesh(), mesh_vert_canon(), and vmesh_copy_equiv_verts().
Returns true when d1 and d2 are parallel or anti-parallel.
Definition at line 1410 of file mesh_bevel.cc.
References blender::math::abs(), blender::math::angle_between(), BEVEL_EPSILON_ANG, float, M_PI, nearly_parallel(), and blender::math::normalize().
Referenced by nearly_parallel(), and blender::geometry::profile::set_profile_params().
|
static |
Definition at line 1140 of file mesh_bevel.cc.
References blender::math::abs(), blender::math::angle_between(), BEVEL_EPSILON_ANG, BEVEL_SMALL_ANG, blender::math::closest_to_plane_normalized(), blender::math::cos(), blender::math::cross(), blender::math::dot(), blender::geometry::EdgeHalf::e, edge_other_vert(), float, blender::geometry::EdgeHalf::fnext, blender::geometry::EdgeHalf::fprev, is_outside_edge(), blender::math::isect_line_line(), M_PI, blender::math::max(), blender::math::midpoint(), blender::geometry::EdgeHalf::next, blender::math::normalize(), blender::geometry::EdgeHalf::offset_l, offset_meet(), blender::geometry::EdgeHalf::offset_r, blender::math::plane_from_point_normal(), point_between_edges(), blender::geometry::EdgeHalf::prev, slide_dist(), blender::geometry::ExtendableMesh::src_face_normals, blender::geometry::ExtendableMesh::src_vert_normals, blender::v, and blender::geometry::ExtendableMesh::vert_position().
Referenced by blender::geometry::construct::build_boundary(), blender::geometry::construct::build_boundary_terminal_edge(), and offset_meet().
|
static |
Definition at line 1116 of file mesh_bevel.cc.
References blender::math::angle_between(), BEVEL_EPSILON_ANG, blender::math::cross(), blender::math::dot(), blender::geometry::EdgeHalf::e, edge_other_vert(), float, M_PI, blender::math::normalize(), point_between_edges(), blender::geometry::ExtendableMesh::src_face_normals, blender::v, blender::v2, and blender::geometry::ExtendableMesh::vert_position().
Referenced by offset_meet(), and point_between_edges().
|
static |
Returns the Sabin-modified Catmull-Clark gamma value for an n-sided corner. This controls the smoothness of the center vertex during subdivision.
Definition at line 1455 of file mesh_bevel.cc.
References cos, float, M_PI, M_SQRT3, pow, sabin_gamma(), blender::sqrt(), blender::x, and y.
Referenced by blender::geometry::construct::cubic_subdiv(), and sabin_gamma().
|
static |
Definition at line 1075 of file mesh_bevel.cc.
References BEVEL_EPSILON_D, blender::e, edge_other_vert(), len(), blender::math::normalize_and_get_length(), slide_dist(), blender::v, and blender::geometry::ExtendableMesh::vert_position().
Referenced by blender::geometry::construct::build_boundary_terminal_edge(), blender::geometry::construct::build_boundary_vertex_only(), offset_meet(), and slide_dist().
Definition at line 1383 of file mesh_bevel.cc.
References blender::geometry::NewVert::co, blender::geometry::VMesh::count, float, mesh_vert(), blender::geometry::VMesh::seg, and vmesh_center().
Referenced by blender::geometry::construct::interp_vmesh(), and vmesh_center().
|
static |
Definition at line 1362 of file mesh_bevel.cc.
References blender::geometry::NewVert::co, blender::geometry::VMesh::count, is_canon(), mesh_vert(), mesh_vert_canon(), blender::geometry::VMesh::seg, blender::geometry::NewVert::v, and vmesh_copy_equiv_verts().
Referenced by blender::geometry::construct::adj_vmesh(), blender::geometry::construct::build_vmesh(), blender::geometry::construct::cubic_subdiv(), blender::geometry::construct::interp_vmesh(), blender::geometry::construct::make_cube_corner_adj_vmesh(), blender::geometry::construct::make_cube_corner_square(), blender::geometry::construct::square_out_adj_vmesh(), and vmesh_copy_equiv_verts().
Definition at line 1063 of file mesh_bevel.cc.
Referenced by make_unit_square_map(), nearly_parallel(), offset_meet(), blender::geometry::construct::pipe_test(), and point_between_edges().
| const float blender::geometry::geom::BEVEL_EPSILON_ANG_DOT = (1.0f - std::cos(BEVEL_EPSILON_ANG)) |
Definition at line 1066 of file mesh_bevel.cc.
Referenced by blender::geometry::construct::nearly_parallel_normalized().
Definition at line 1062 of file mesh_bevel.cc.
Referenced by blender::geometry::construct::build_boundary_terminal_edge(), is_outside_edge(), blender::geometry::profile::move_profile_plane(), and blender::geometry::construct::pipe_test().
Definition at line 1060 of file mesh_bevel.cc.
Referenced by blender::geometry::construct::interp_vmesh(), blender::geometry::profile::move_weld_profile_planes(), slide_dist(), blender::geometry::construct::snap_to_pipe_profile(), blender::geometry::construct::snap_to_superellipsoid(), and blender::geometry::construct::tri_corner_test().
Definition at line 1061 of file mesh_bevel.cc.
Referenced by blender::geometry::construct::adj_vmesh().
Definition at line 1064 of file mesh_bevel.cc.
Referenced by offset_meet(), and blender::geometry::construct::square_out_adj_vmesh().
| const float blender::geometry::geom::BEVEL_SMALL_ANG_DOT = (1.0f - std::cos(BEVEL_SMALL_ANG)) |
Definition at line 1065 of file mesh_bevel.cc.
Referenced by blender::geometry::construct::next_edgehalf_bev().