This commit is contained in:
Massimiliano Corsini 2011-10-12 07:52:07 +00:00
parent f20ecb9db7
commit da98ec18f1
1 changed files with 3 additions and 6 deletions

View File

@ -178,14 +178,11 @@ static void GetNearFarPlanes(vcg::Shot<ScalarType> & shot, vcg::Box3<ScalarType>
for(int i = 0; i < 8; i++) {
vcg::Point3<ScalarType> c = bbox.P(i);
ScalarType d = -(zaxis * c - offset);
if(first || d < nr) {
if(first || d < nr)
nr = d;
first = false;
}
if(first || d > fr) {
if(first || d > fr)
fr = d;
first = false;
}
first = false;
}
}