From 96f676cae0f94c2efeedcda07cc78b17f1da668c Mon Sep 17 00:00:00 2001 From: Jeremy Hu Date: Sat, 10 Aug 2019 10:31:23 +0930 Subject: [PATCH] Improve UV quality Now there are more pieces been generated during unwrapping but the overall quality is better than before. --- thirdparty/simpleuv/simpleuv/uvunwrapper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/thirdparty/simpleuv/simpleuv/uvunwrapper.h b/thirdparty/simpleuv/simpleuv/uvunwrapper.h index c057a86f..14c60a4d 100644 --- a/thirdparty/simpleuv/simpleuv/uvunwrapper.h +++ b/thirdparty/simpleuv/simpleuv/uvunwrapper.h @@ -57,10 +57,10 @@ private: std::vector m_chartRects; std::vector m_chartSourcePartitions; bool m_segmentByNormal = true; - float m_segmentDotProductThreshold = 0.00; + float m_segmentDotProductThreshold = -0.5; //120 degrees float m_texelSizePerUnit = 1.0; float m_resultTextureSize = 0; - bool m_segmentPreferMorePieces = false; + bool m_segmentPreferMorePieces = true; }; }