changed Dist Function to PointDistance... the function is on vcg::face::PointDistance this file will contain all distance functions between a face and othe entities
This commit is contained in:
parent
a8a6b48bc0
commit
b7b23d4140
|
@ -24,16 +24,22 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.1 2004/05/12 18:50:25 ganovelli
|
||||||
|
created
|
||||||
|
|
||||||
|
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifndef __VCGLIB_FACE_DISTANCE
|
#ifndef __VCGLIB_FACE_DISTANCE
|
||||||
#define __VCGLIB_FACE_DISTANCE
|
#define __VCGLIB_FACE_DISTANCE
|
||||||
|
|
||||||
|
|
||||||
#include <vcg/space/point3.h>
|
#include <vcg/space/point3.h>
|
||||||
|
|
||||||
namespace vcg {
|
using namespace std;
|
||||||
|
|
||||||
|
namespace vcg {
|
||||||
|
namespace face{
|
||||||
/*
|
/*
|
||||||
Point face distance
|
Point face distance
|
||||||
trova il punto <p> sulla faccia piu' vicino a <q>, con possibilità di
|
trova il punto <p> sulla faccia piu' vicino a <q>, con possibilità di
|
||||||
|
@ -60,7 +66,7 @@ namespace vcg {
|
||||||
|
|
||||||
*/
|
*/
|
||||||
template <class FaceType>
|
template <class FaceType>
|
||||||
bool Dist( const FaceType &f,
|
bool PointDistance( const FaceType &f,
|
||||||
const Point3<typename FaceType::ScalarType> & q,
|
const Point3<typename FaceType::ScalarType> & q,
|
||||||
typename FaceType::ScalarType & dist,
|
typename FaceType::ScalarType & dist,
|
||||||
Point3<typename FaceType::ScalarType> & p )
|
Point3<typename FaceType::ScalarType> & p )
|
||||||
|
@ -202,7 +208,7 @@ namespace vcg {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // end namespace face
|
||||||
|
|
||||||
} // end namespace vcg
|
} // end namespace vcg
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue