Blender V4.5
blender::geometry::UVMinimumEnclosingSquareFinder Class Reference

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_Paramsparams_
 
float best_quad
 
float best_angle
 
rctf best_bounds
 
Vector< float2points
 
Vector< int > indices
 

Detailed Description

Helper to find the minimum enclosing square.

Definition at line 1426 of file uv_pack.cc.

Constructor & Destructor Documentation

◆ UVMinimumEnclosingSquareFinder()

blender::geometry::UVMinimumEnclosingSquareFinder::UVMinimumEnclosingSquareFinder ( const float scale,
const float margin,
const UVPackIsland_Params * params )
inline

Definition at line 1439 of file uv_pack.cc.

References best_angle, and best_quad.

Member Function Documentation

◆ update()

float blender::geometry::UVMinimumEnclosingSquareFinder::update ( const double angle)
inline

◆ update_recursive()

void blender::geometry::UVMinimumEnclosingSquareFinder::update_recursive ( const float angle0,
const float quad0,
const float angle1,
const float quad1 )
inline

Search between angle0 and angle1, looking for the smallest square.

Definition at line 1477 of file uv_pack.cc.

References DEG2RADF, update(), and update_recursive().

Referenced by blender::geometry::rotate_inside_square(), and update_recursive().

Member Data Documentation

◆ best_angle

float blender::geometry::UVMinimumEnclosingSquareFinder::best_angle

◆ best_bounds

rctf blender::geometry::UVMinimumEnclosingSquareFinder::best_bounds

Definition at line 1434 of file uv_pack.cc.

Referenced by blender::geometry::rotate_inside_square(), and update().

◆ best_quad

float blender::geometry::UVMinimumEnclosingSquareFinder::best_quad

◆ indices

Vector<int> blender::geometry::UVMinimumEnclosingSquareFinder::indices

Definition at line 1437 of file uv_pack.cc.

Referenced by blender::geometry::rotate_inside_square(), and update().

◆ margin_

const float blender::geometry::UVMinimumEnclosingSquareFinder::margin_

Definition at line 1429 of file uv_pack.cc.

Referenced by update().

◆ params_

const UVPackIsland_Params* blender::geometry::UVMinimumEnclosingSquareFinder::params_

Definition at line 1430 of file uv_pack.cc.

Referenced by update().

◆ points

Vector<float2> blender::geometry::UVMinimumEnclosingSquareFinder::points

Definition at line 1436 of file uv_pack.cc.

Referenced by blender::geometry::rotate_inside_square(), and update().

◆ scale_

const float blender::geometry::UVMinimumEnclosingSquareFinder::scale_

Definition at line 1428 of file uv_pack.cc.


The documentation for this class was generated from the following file: