#include <opennurbs_plus_rectpack.h>
◆ ON_PackTextureRectanglesParameters()
ON_PackTextureRectanglesParameters::ON_PackTextureRectanglesParameters |
( |
| ) |
|
The default constructor sets all fields to zero.
◆ IsValid()
bool ON_PackTextureRectanglesParameters::IsValid |
( |
class ON_TextLog * |
text_log | ) |
const |
The default operator= and copy constructor work fine.
◆ m_bm_height
double ON_PackTextureRectanglesParameters::m_bm_height |
◆ m_bm_width
double ON_PackTextureRectanglesParameters::m_bm_width |
If m_bm_width > 0 and m_bm_height > 0, then they specify the size of the bitmap in pixels that the packed texture will use.
◆ m_bPreserveRectangleAspect
bool ON_PackTextureRectanglesParameters::m_bPreserveRectangleAspect |
If m_bPreserveRectangleAspect is true, the aspect of rectangle assigned to the rect will be the same as the aspect of the original rectangle.
◆ m_method
unsigned int ON_PackTextureRectanglesParameters::m_method |
The m_method parameter specifies how the rectangles are packed. Generally, 0 is the best choice. The other options are available so legacy packings can be recalculated.
0 = latest 1 = V4, V5 SR0, V5 SR1 2 = V5 SR2