Fix error in volume computation that led to weird results. Fixes all problems reported by DawnBringer :).
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1885 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
1b805666e7
commit
6e8d18baed
@ -436,9 +436,9 @@ ENDCRUSH:
|
|||||||
c->bmin=bmin; c->bmax=bmax;
|
c->bmin=bmin; c->bmax=bmax;
|
||||||
|
|
||||||
// Find the longest axis to know which way to split the cluster
|
// Find the longest axis to know which way to split the cluster
|
||||||
r=(c->rmax-c->rmin);
|
r=(c->rmax-c->rmin) + 1;
|
||||||
g=(c->vmax-c->vmin);
|
g=(c->vmax-c->vmin) + 1;
|
||||||
b=(c->bmax-c->bmin);
|
b=(c->bmax-c->bmin) + 1;
|
||||||
|
|
||||||
c->data.cut.volume = r*g*b;
|
c->data.cut.volume = r*g*b;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user