Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2004-07-14 00:53:51 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2004-07-14 00:53:51 +0400
commit13d4c0a5fbed0d46185abfdc528d71ba13dd2476 (patch)
tree4d9c9d43710efeeae2fe5419ed1e2f1895cf5bce /source
parent419e5a6a0b286492342e0bb98c74017e8c293d27 (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')
-rw-r--r--source/blender/src/editsima.c6
-rw-r--r--source/blender/src/unwrapper.c14
2 files changed, 10 insertions, 10 deletions
diff --git a/source/blender/src/editsima.c b/source/blender/src/editsima.c
index a55de075504..35c49cb9c04 100644
--- a/source/blender/src/editsima.c
+++ b/source/blender/src/editsima.c
@@ -123,11 +123,11 @@ static void setLinkedLimit(float *limit)
{
if(G.sima->image && G.sima->image->ibuf && G.sima->image->ibuf->x > 0 &&
G.sima->image->ibuf->y > 0) {
- limit[0]= 5.0/(float)G.sima->image->ibuf->x;
- limit[1]= 5.0/(float)G.sima->image->ibuf->y;
+ limit[0]= 0.5/(float)G.sima->image->ibuf->x;
+ limit[1]= 0.5/(float)G.sima->image->ibuf->y;
}
else
- limit[0]= limit[1]= 5.0/256.0;
+ limit[0]= limit[1]= 0.5/256.0;
}
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);
}