corrected two small compiling errors...

This commit is contained in:
Paolo Cignoni 2009-03-19 22:11:35 +00:00
parent 2ba11ecc4a
commit 42c90d1439
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ ScalarType DistancePoint3Box3(const Point3<ScalarType> &p,
const Box3<ScalarType> &b)
{
///if fall inside return distance to a face
if (bbox.IsIn(test))
if (b.IsIn(p))
{
const ScalarType dx = std::min<ScalarType>(b.max.X()-p.X(), p.X()-b.min.X());
const ScalarType dy = std::min<ScalarType>(b.max.Y()-p.Y(), p.Y()-b.min.Y());