changes to compile previous commit with gcc
This commit is contained in:
parent
f7da79d507
commit
68d900ec7e
|
@ -233,7 +233,7 @@ namespace vcg {
|
|||
typedef FaceTmark<MESH> MarkerFace;
|
||||
MarkerFace mf;
|
||||
mf.SetMesh(&mesh);
|
||||
vcg::face::PointDistanceFunctor PDistFunct;
|
||||
vcg::face::PointDistanceFunctor<ScalarType> PDistFunct;
|
||||
_minDist=_maxDist;
|
||||
return (gr.GetClosest(PDistFunct,mf,_p,_maxDist,_minDist,_closestPt));
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ namespace vcg {
|
|||
VDistFunct fn;
|
||||
_minDist=_maxDist;
|
||||
Point3x _closestPt;
|
||||
return (gr.GetClosest/*<VDistFunct,MarkerVert>*/(fn,mv,_p,_maxDist,_minDist,_closestPt));
|
||||
return (gr.template GetClosest<VDistFunct,MarkerVert>(fn,mv,_p,_maxDist,_minDist,_closestPt));
|
||||
}
|
||||
|
||||
template <class MESH, class GRID>
|
||||
|
@ -267,7 +267,7 @@ namespace vcg {
|
|||
VDistFunct fn;
|
||||
_minDist=_maxDist;
|
||||
Point3x _closestPt;
|
||||
return (gr.GetClosest<VDistFunct,MarkerVert>(fn,mv,_p,_maxDist,_minDist,_closestPt));
|
||||
return (gr.template GetClosest <VDistFunct,MarkerVert>(fn,mv,_p,_maxDist,_minDist,_closestPt));
|
||||
}
|
||||
|
||||
template <class MESH, class GRID, class OBJPTRCONTAINER,class DISTCONTAINER, class POINTCONTAINER>
|
||||
|
@ -278,7 +278,7 @@ namespace vcg {
|
|||
typedef FaceTmark<MESH> MarkerFace;
|
||||
MarkerFace mf;
|
||||
mf.SetMesh(&mesh);
|
||||
vcg::face::PointDistanceFunctor FDistFunct;
|
||||
vcg::face::PointDistanceFunctor<typename MESH::ScalarType> FDistFunct;
|
||||
return (gr.GetKClosest /*<vcg::face::PointDistanceFunctor, MarkerFace,OBJPTRCONTAINER,DISTCONTAINER,POINTCONTAINER>*/
|
||||
(FDistFunct,mf,_k,_p,_maxDist,_objectPtrs,_distances,_points));
|
||||
}
|
||||
|
@ -309,7 +309,7 @@ namespace vcg {
|
|||
typedef FaceTmark<MESH> MarkerFace;
|
||||
MarkerFace mf;
|
||||
mf.SetMesh(&mesh);
|
||||
typedef vcg::face::PointDistanceFunctor FDistFunct;
|
||||
typedef vcg::face::PointDistanceFunctor<typename MESH::ScalarType> FDistFunct;
|
||||
return (gr.GetInSphere/*<FDistFunct,MarkerFace,OBJPTRCONTAINER,DISTCONTAINER,POINTCONTAINER>*/
|
||||
(FDistFunct(),mf,_p,_r,_objectPtrs,_distances,_points));
|
||||
}
|
||||
|
|
|
@ -68,8 +68,8 @@ namespace vcg {
|
|||
namespace face{
|
||||
/*
|
||||
Point face distance
|
||||
trova il punto <p> sulla faccia piu' vicino a <q>, con possibilità di
|
||||
rejection veloce su se la distanza trovata è maggiore di <rejdist>
|
||||
trova il punto <p> sulla faccia piu' vicino a <q>, con possibilit<EFBFBD> di
|
||||
rejection veloce su se la distanza trovata <EFBFBD> maggiore di <rejdist>
|
||||
|
||||
Commenti del 12/11/02
|
||||
Funziona solo se la faccia e di quelle di tipo E (con edge e piano per faccia gia' calcolati)
|
||||
|
@ -237,8 +237,8 @@ namespace vcg {
|
|||
template <class S>
|
||||
class PointDistanceFunctor {
|
||||
public:
|
||||
typedef typename S ScalarType;
|
||||
typedef typename Point3<ScalarType> QueryType;
|
||||
typedef S ScalarType;
|
||||
typedef Point3<ScalarType> QueryType;
|
||||
static inline const Point3<ScalarType> & Pos(const QueryType & qt) {return qt;}
|
||||
|
||||
template <class FACETYPE, class SCALARTYPE>
|
||||
|
@ -438,7 +438,7 @@ namespace vcg {
|
|||
template <class S>
|
||||
class PointDistanceBaseFunctor {
|
||||
public:
|
||||
typedef typename S ScalarType;
|
||||
typedef S ScalarType;
|
||||
typedef Point3<ScalarType> QueryType;
|
||||
|
||||
static inline const Point3<ScalarType> & Pos(const Point3<ScalarType> & qt) {return qt;}
|
||||
|
|
|
@ -76,12 +76,12 @@ template <class SCALARTYPE>
|
|||
}
|
||||
};
|
||||
|
||||
template <class VERTEXTYPE>
|
||||
template <class VERTYPE>
|
||||
class PointNormalDistanceFunctor {
|
||||
public:
|
||||
typedef typename VERTEXTYPE QueryType;
|
||||
typedef typename VERTEXTYPE::ScalarType ScalarType;
|
||||
static inline const Point3<typename VERTEXTYPE::ScalarType> & Pos(const QueryType & qt) {return qt.P();}
|
||||
typedef VERTYPE QueryType;
|
||||
typedef typename VERTYPE::ScalarType ScalarType;
|
||||
static inline const Point3<typename VERTYPE::ScalarType> & Pos(const QueryType & qt) {return qt.P();}
|
||||
|
||||
static ScalarType & Alpha(){static ScalarType alpha = 1.0; return alpha;}
|
||||
static ScalarType & Beta(){static ScalarType beta= 1.0; return beta;}
|
||||
|
|
|
@ -106,7 +106,7 @@ namespace vcg{
|
|||
typedef typename SPATIAL_INDEX::ScalarType ScalarType;
|
||||
typedef typename SPATIAL_INDEX::Box3x Box3x;
|
||||
|
||||
Point3<ScalarType> _p = typename OBJPOINTDISTFUNCTOR::Pos(_p_obj);
|
||||
Point3<ScalarType> _p = OBJPOINTDISTFUNCTOR::Pos(_p_obj);
|
||||
// Initialize min_dist with _maxDist to exploit early rejection test.
|
||||
_minDist = _maxDist;
|
||||
|
||||
|
|
Loading…
Reference in New Issue