ModelTranslator: uvpm_mode_label——UVPM4 排布生效的 UV 模式标注
This commit is contained in:
@@ -33,6 +33,11 @@ def uv_gate_ok(flipped, overlap):
|
||||
return flipped <= UV_FLIP_TOL and (overlap or 0.0) <= UV_OVERLAP_TOL
|
||||
|
||||
|
||||
def uvpm_mode_label(base, applied):
|
||||
"""UV 模式标注:UVPackmaster 排布生效时加 +uvpm 后缀。"""
|
||||
return base + "+uvpm" if applied else base
|
||||
|
||||
|
||||
def count_islands(n_faces, adjacent_pairs):
|
||||
"""union-find 数 UV 岛:n_faces 个面,adjacent_pairs 为 UV 连续的面索引对。"""
|
||||
parent = list(range(n_faces))
|
||||
|
||||
Reference in New Issue
Block a user