|
Blender V4.3
|
Public Member Functions | |
| UVMinimumEnclosingSquareFinder (const float scale, const float margin, const UVPackIsland_Params *params) | |
| float | update (const double angle) |
| void | update_recursive (const float angle0, const float quad0, const float angle1, const float quad1) |
Public Attributes | |
| const float | scale_ |
| const float | margin_ |
| const UVPackIsland_Params * | params_ |
| float | best_quad |
| float | best_angle |
| rctf | best_bounds |
| Vector< float2 > | points |
| Vector< int > | indices |
Helper to find the minimum enclosing square.
Definition at line 1438 of file uv_pack.cc.
|
inline |
Definition at line 1451 of file uv_pack.cc.
References best_angle, and best_quad.
Calculates the square associated with a rotation of angle.
Definition at line 1463 of file uv_pack.cc.
References angle(), best_angle, best_bounds, best_quad, BLI_rctf_do_minmax_v(), BLI_rctf_init_minmax(), cos(), blender::geometry::get_aspect_scaled_extent(), margin_, params_, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by blender::geometry::rotate_inside_square(), and update_recursive().
|
inline |
Search between angle0 and angle1, looking for the smallest square.
Definition at line 1489 of file uv_pack.cc.
References DEG2RADF, update(), and update_recursive().
Referenced by blender::geometry::rotate_inside_square(), and update_recursive().
| float blender::geometry::UVMinimumEnclosingSquareFinder::best_angle |
Definition at line 1445 of file uv_pack.cc.
Referenced by blender::geometry::rotate_inside_square(), update(), and UVMinimumEnclosingSquareFinder().
| rctf blender::geometry::UVMinimumEnclosingSquareFinder::best_bounds |
Definition at line 1446 of file uv_pack.cc.
Referenced by blender::geometry::rotate_inside_square(), and update().
| float blender::geometry::UVMinimumEnclosingSquareFinder::best_quad |
Definition at line 1444 of file uv_pack.cc.
Referenced by blender::geometry::rotate_inside_square(), update(), and UVMinimumEnclosingSquareFinder().
Definition at line 1449 of file uv_pack.cc.
Referenced by blender::geometry::rotate_inside_square().
| const float blender::geometry::UVMinimumEnclosingSquareFinder::margin_ |
Definition at line 1441 of file uv_pack.cc.
Referenced by update().
| const UVPackIsland_Params* blender::geometry::UVMinimumEnclosingSquareFinder::params_ |
Definition at line 1442 of file uv_pack.cc.
Referenced by update().
Definition at line 1448 of file uv_pack.cc.
Referenced by blender::geometry::rotate_inside_square().
| const float blender::geometry::UVMinimumEnclosingSquareFinder::scale_ |
Definition at line 1440 of file uv_pack.cc.