|
Blender V5.3
|
Classes | |
| struct | [struct].flags |
Public Member Functions | |
| Fan (const MeshData &mesh_data, const int vert) | |
| int | count_edges_not_added () const |
| void | mark_already_added_segments (const UVIsland &uv_island, const UVVert &uv_vert) |
| bool | contains_vert_on_outside (const MeshData &mesh_data, const int vert) const |
| Vector< FanSegment * > | best_path_between (const MeshData &mesh_data, const int from_vert, const int to_vert) |
| void | print_debug (const MeshData &mesh_data) const |
Static Public Member Functions | |
| static int2 | other_fan_edge_verts (const MeshData &mesh_data, const int vert, const int tri_i) |
| static int | adjacent_tri (const MeshData &mesh_data, const Span< int > tris, const int vert, const int other_vert, const int tri_i) |
| static bool | is_path_valid (const Span< FanSegment * > path, const MeshData &mesh_data, const int from_vert, const int to_vert) |
| static Vector< FanSegment * > | path_between (const Span< FanSegment * > edge_order, const MeshData &mesh_data, const int from_vert, const int to_vert, const bool reversed) |
| static int64_t | score (const Span< FanSegment * > solution) |
Public Attributes | |
| Vector< FanSegment > | segments |
| struct | flags |
Definition at line 437 of file pbvh_uv_islands.cc.
|
inline |
Definition at line 484 of file pbvh_uv_islands.cc.
References adjacent_tri(), blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::bke::pbvh::uv_islands::MeshData::corner_tris, blender::bke::pbvh::uv_islands::MeshData::corner_verts, ELEM, blender::bke::mesh::face_triangles_range(), blender::bke::pbvh::uv_islands::MeshData::faces, blender::bke::pbvh::uv_islands::FanSegment::FanSegment(), blender::Vector< T, InlineBufferCapacity, Allocator >::first(), flags, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), other_fan_edge_verts(), segments, and blender::bke::pbvh::uv_islands::MeshData::vert_to_face_map.
|
inlinestatic |
Definition at line 466 of file pbvh_uv_islands.cc.
References blender::result, and blender::bke::pbvh::uv_islands::tri_contains_verts().
Referenced by Fan().
|
inline |
Definition at line 652 of file pbvh_uv_islands.cc.
References BLI_assert_msg, contains_vert_on_outside(), blender::Vector< T, InlineBufferCapacity, Allocator >::index_range(), is_path_valid(), path_between(), score(), segments, blender::Vector< T, InlineBufferCapacity, Allocator >::size(), and blender::Vector< T, InlineBufferCapacity, Allocator >::Vector.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert().
|
inline |
Check if the given vertex is part of the outside of the fan. Return true if the given vertex is found on the outside of the fan, otherwise returns false.
Definition at line 562 of file pbvh_uv_islands.cc.
References blender::bke::pbvh::uv_islands::MeshData::corner_verts, segments, and blender::v2.
Referenced by best_path_between().
|
inline |
Definition at line 531 of file pbvh_uv_islands.cc.
References blender::result, and segments.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert().
|
inlinestatic |
Definition at line 575 of file pbvh_uv_islands.cc.
References blender::bke::pbvh::uv_islands::MeshData::corner_verts, ELEM, and blender::v2.
Referenced by best_path_between().
|
inline |
Definition at line 542 of file pbvh_uv_islands.cc.
References segments, blender::bke::pbvh::uv_islands::UVIsland::uv_edges, blender::bke::pbvh::uv_islands::UVVert::uv_edges, and blender::bke::pbvh::uv_islands::UVEdge::uv_primitive_indices.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert().
|
inlinestatic |
Definition at line 451 of file pbvh_uv_islands.cc.
References blender::bke::pbvh::uv_islands::MeshData::corner_tris, blender::bke::pbvh::uv_islands::MeshData::corner_verts, and blender::v.
Referenced by Fan().
|
inlinestatic |
Find the closest path over the fan between from_vert and to_vert. The result contains exclude the starting and final edge.
Algorithm only uses the winding order of the given fan segments.
Definition at line 598 of file pbvh_uv_islands.cc.
References blender::bke::pbvh::uv_islands::MeshData::corner_verts, blender::result, blender::Span< T >::size(), and blender::v2.
Referenced by best_path_between().
|
inline |
Definition at line 691 of file pbvh_uv_islands.cc.
References segments.
|
inlinestatic |
Score the given solution to be the best. Best solution would have the lowest score.
Score is determined by counting the number of steps and subtracting that with steps that have not yet been visited.
Definition at line 641 of file pbvh_uv_islands.cc.
References blender::Span< T >::size().
Referenced by best_path_between().
| struct blender::bke::pbvh::uv_islands::Fan::[struct].flags blender::bke::pbvh::uv_islands::Fan::flags |
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), and Fan().
| Vector<FanSegment> blender::bke::pbvh::uv_islands::Fan::segments |
Definition at line 439 of file pbvh_uv_islands.cc.
Referenced by best_path_between(), contains_vert_on_outside(), count_edges_not_added(), Fan(), mark_already_added_segments(), and print_debug().