Just changed the default number of rotation attempt for packing OO polygons
This commit is contained in:
parent
b26b406f8f
commit
027da6f0a8
|
@ -58,7 +58,7 @@ public:
|
||||||
|
|
||||||
static Box2f getPolyOOBB(const std::vector<Point2x> &poly, float &rot)
|
static Box2f getPolyOOBB(const std::vector<Point2x> &poly, float &rot)
|
||||||
{
|
{
|
||||||
const int stepNum=16;
|
const int stepNum=64;
|
||||||
float bestAngle;
|
float bestAngle;
|
||||||
float bestArea = std::numeric_limits<float>::max();
|
float bestArea = std::numeric_limits<float>::max();
|
||||||
Box2f bestBB;
|
Box2f bestBB;
|
||||||
|
|
Loading…
Reference in New Issue