diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2004-07-14 00:53:51 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2004-07-14 00:53:51 +0400 |
commit | 13d4c0a5fbed0d46185abfdc528d71ba13dd2476 (patch) | |
tree | 4d9c9d43710efeeae2fe5419ed1e2f1895cf5bce /source/blender/src/unwrapper.c | |
parent | 419e5a6a0b286492342e0bb98c74017e8c293d27 (diff) |
LSCM:
Fixed a bug where the projection axis for the initial solution was wrong,
causing the solution to collapse into one point.
Made packing denser (by reducing the padding between face groups).
Diffstat (limited to 'source/blender/src/unwrapper.c')
-rw-r--r-- | source/blender/src/unwrapper.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/src/unwrapper.c b/source/blender/src/unwrapper.c index 13c31b308e6..4337c586650 100644 --- a/source/blender/src/unwrapper.c +++ b/source/blender/src/unwrapper.c @@ -559,7 +559,7 @@ static void lscm_projection_axes(float *min, float *max, float *p1, float *p2) if(dx > dz) p1[0]= p2[2]= 1.0; /* x, z */ else p1[2]= p2[0]= 1.0; /* z, x */ } - else if(dz < dx && dz < dy) { + else { if(dx > dy) p1[0]= p2[1]= 1.0; /* x, y */ else p1[1]= p2[0]= 1.0; /* y, x */ } @@ -953,8 +953,8 @@ static void pack_seam_groups(Mesh *me, int *groups, int totgroup) dy= (max[1]-min[1])*scale; /* for padding */ - dx += 0.05; - dy += 0.05; + dx += 0.01; + dy += 0.01; add[0]= add[1]= 0.0; @@ -983,8 +983,8 @@ static void pack_seam_groups(Mesh *me, int *groups, int totgroup) } /* for padding */ - add[0] += 0.025; - add[1] += 0.025; + add[0] += 0.005; + add[1] += 0.005; seam_group_scale(me, groups, a+1, scale); seam_group_move(me, groups, a+1, add); @@ -993,8 +993,8 @@ static void pack_seam_groups(Mesh *me, int *groups, int totgroup) MEM_freeN(groupscale); seam_group_normalize(me, groups, 0); - seam_group_scale(me, groups, 0, 0.9); - add[0]= add[1]= 0.05; + seam_group_scale(me, groups, 0, 0.98); + add[0]= add[1]= 0.01; seam_group_move(me, groups, 0, add); } |