|
Blender V5.3
|
#include <pbvh_uv_islands.hh>
Public Member Functions | |
UVBorderCorner | |
| UVBorderCorner (UVBorderEdge *first, UVBorderEdge *second, float angle) | |
| float2 | uv (const UVIsland &island, float factor, float min_uv_distance) |
| bool | connected_in_mesh (const UVIsland &island) const |
| void | print_debug (const UVIsland &island) const |
Public Attributes | |
| UVBorderEdge * | first |
| UVBorderEdge * | second |
| float | angle |
Definition at line 170 of file pbvh_uv_islands.hh.
|
explicit |
Definition at line 1229 of file pbvh_uv_islands.cc.
| bool blender::bke::pbvh::uv_islands::UVBorderCorner::connected_in_mesh | ( | const UVIsland & | island | ) | const |
Does this corner exist as 2 connected edges of the mesh.
During the extraction phase a connection can be made in uv-space that doesn't reflect to two connected edges inside the mesh.
Definition at line 1249 of file pbvh_uv_islands.cc.
References first, blender::bke::pbvh::uv_islands::UVBorderEdge::get_uv_vert(), second, and blender::bke::pbvh::uv_islands::UVIsland::uv_verts.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), and print_debug().
| void blender::bke::pbvh::uv_islands::UVBorderCorner::print_debug | ( | const UVIsland & | island | ) | const |
Definition at line 1255 of file pbvh_uv_islands.cc.
References connected_in_mesh(), first, blender::bke::pbvh::uv_islands::UVBorderEdge::get_uv_vert(), second, and blender::bke::pbvh::uv_islands::UVIsland::uv_verts.
| float2 blender::bke::pbvh::uv_islands::UVBorderCorner::uv | ( | const UVIsland & | island, |
| float | factor, | ||
| float | min_uv_distance ) |
Calculate a uv coordinate between the edges of the corner.
'min_uv_distance' is the minimum distance between the corner and the resulting uv coordinate. The distance is in uv space.
Definition at line 1234 of file pbvh_uv_islands.cc.
References angle, blender::math::angle_between(), first, from_rotation(), blender::bke::pbvh::uv_islands::UVBorderEdge::get_uv_vert(), blender::bke::pbvh::uv_islands::UVBorderEdge::length(), blender::max_ff(), normalize, blender::result, second, blender::bke::pbvh::uv_islands::UVIsland::uv_verts, and blender::v.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert().
| float blender::bke::pbvh::uv_islands::UVBorderCorner::angle |
Definition at line 173 of file pbvh_uv_islands.hh.
Referenced by blender::bke::pbvh::uv_islands::extend_at_vert(), uv(), and UVBorderCorner().
| UVBorderEdge* blender::bke::pbvh::uv_islands::UVBorderCorner::first |
Definition at line 171 of file pbvh_uv_islands.hh.
Referenced by connected_in_mesh(), blender::bke::pbvh::uv_islands::extend_at_vert(), blender::bke::pbvh::uv_islands::find_fill_primitive(), print_debug(), uv(), and UVBorderCorner().
| UVBorderEdge* blender::bke::pbvh::uv_islands::UVBorderCorner::second |
Definition at line 172 of file pbvh_uv_islands.hh.
Referenced by connected_in_mesh(), blender::bke::pbvh::uv_islands::extend_at_vert(), blender::bke::pbvh::uv_islands::find_fill_primitive(), print_debug(), uv(), and UVBorderCorner().