From cb639a12d7697e72839f82ae35cf17846ba2b9d6 Mon Sep 17 00:00:00 2001 From: ponchio Date: Thu, 14 Jun 2012 09:40:26 +0000 Subject: [PATCH] renamed from max/min to hi/low --- vcg/space/sphere3.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vcg/space/sphere3.h b/vcg/space/sphere3.h index 5cd2ab28..f8428a30 100644 --- a/vcg/space/sphere3.h +++ b/vcg/space/sphere3.h @@ -185,16 +185,16 @@ template void Sphere3::Intersect(const Sphere3 &s) { } template int Sphere3::CreateFromBox(int n, const Point3 *points) { - Point3f max(-1e100, -1e100, -1e100); - Point3f min(1e100, 1e100, 1e100); + Point3f hi(-1e100, -1e100, -1e100); + Point3f low(1e100, 1e100, 1e100); for(int i = 0; i < n; i++) { for(int k = 0; k < 3; k++) { - if(max[k] < points[i][k]) max[k] = points[i][k]; - if(min[k] > points[i][k]) min[k] = points[i][k]; + if(hi[k] < points[i][k]) hi[k] = points[i][k]; + if(low[k] > points[i][k]) low[k] = points[i][k]; } } - Center() = (min + max)/2; - Radius() = (min - max).Norm()/2; + Center() = (low + hi)/2; + Radius() = (low - hi).Norm()/2; return 0; } template int Sphere3::CreateTight(int n, const Point3 *points,