removed deprecated std::unary_function
This commit is contained in:
parent
41351b9e72
commit
659d2d12f2
|
|
@ -276,7 +276,7 @@ public:
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
class CylMidPoint : public std::unary_function<PosType, CoordType>
|
class CylMidPoint
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
CylMidPoint() {assert(0);}
|
CylMidPoint() {assert(0);}
|
||||||
|
|
|
||||||
|
|
@ -318,7 +318,7 @@ private:
|
||||||
// In this implemenation we simply put the new vertex in the MidPoint position.
|
// In this implemenation we simply put the new vertex in the MidPoint position.
|
||||||
// Color and TexCoords are interpolated accordingly.
|
// Color and TexCoords are interpolated accordingly.
|
||||||
template<class MESH_TYPE>
|
template<class MESH_TYPE>
|
||||||
struct SplitMidPoint : public std::unary_function<vcg::face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType >
|
struct SplitMidPoint
|
||||||
{
|
{
|
||||||
typedef typename MESH_TYPE::VertexType VertexType;
|
typedef typename MESH_TYPE::VertexType VertexType;
|
||||||
typedef typename MESH_TYPE::FaceType FaceType;
|
typedef typename MESH_TYPE::FaceType FaceType;
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ struct BaseInterpolator
|
||||||
// providing, in the constructor, an interpolator functor that will be called for each new vertex to be created.
|
// providing, in the constructor, an interpolator functor that will be called for each new vertex to be created.
|
||||||
|
|
||||||
template<class MESH_TYPE, class InterpolatorFunctorType = BaseInterpolator< MESH_TYPE> >
|
template<class MESH_TYPE, class InterpolatorFunctorType = BaseInterpolator< MESH_TYPE> >
|
||||||
struct MidPoint : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType >
|
struct MidPoint
|
||||||
{
|
{
|
||||||
typedef typename face::Pos<typename MESH_TYPE::FaceType> PosType;
|
typedef typename face::Pos<typename MESH_TYPE::FaceType> PosType;
|
||||||
typedef typename MESH_TYPE::VertexType VertexType;
|
typedef typename MESH_TYPE::VertexType VertexType;
|
||||||
|
|
@ -179,7 +179,7 @@ struct MidPoint : public std::unary_function<face::Pos<typename MESH_TYPE::Fac
|
||||||
|
|
||||||
|
|
||||||
template<class MESH_TYPE>
|
template<class MESH_TYPE>
|
||||||
struct MidPointArc : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType>
|
struct MidPointArc
|
||||||
{
|
{
|
||||||
void operator()(typename MESH_TYPE::VertexType &nv, face::Pos<typename MESH_TYPE::FaceType> ep)
|
void operator()(typename MESH_TYPE::VertexType &nv, face::Pos<typename MESH_TYPE::FaceType> ep)
|
||||||
{
|
{
|
||||||
|
|
@ -251,7 +251,7 @@ A non linear subdivision scheme for triangle meshes
|
||||||
|
|
||||||
*/
|
*/
|
||||||
template<class MESH_TYPE>
|
template<class MESH_TYPE>
|
||||||
struct MidPointArcNaive : public std::unary_function< face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType>
|
struct MidPointArcNaive
|
||||||
{
|
{
|
||||||
typename MESH_TYPE::CoordType operator()(face::Pos<typename MESH_TYPE::FaceType> ep)
|
typename MESH_TYPE::CoordType operator()(face::Pos<typename MESH_TYPE::FaceType> ep)
|
||||||
{
|
{
|
||||||
|
|
@ -575,7 +575,7 @@ Siggraph 2000 Course Notes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template<class MESH_TYPE>
|
template<class MESH_TYPE>
|
||||||
struct MidPointButterfly : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType>
|
struct MidPointButterfly
|
||||||
{
|
{
|
||||||
MESH_TYPE &m;
|
MESH_TYPE &m;
|
||||||
MidPointButterfly(MESH_TYPE &_m):m(_m){}
|
MidPointButterfly(MESH_TYPE &_m):m(_m){}
|
||||||
|
|
@ -689,7 +689,7 @@ struct MidPointButterfly : public std::unary_function<face::Pos<typename MESH_TY
|
||||||
// Versione modificata per tenere di conto in meniara corretta dei vertici con valenza alta
|
// Versione modificata per tenere di conto in meniara corretta dei vertici con valenza alta
|
||||||
|
|
||||||
template<class MESH_TYPE>
|
template<class MESH_TYPE>
|
||||||
struct MidPointButterfly2 : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType>
|
struct MidPointButterfly2
|
||||||
{
|
{
|
||||||
typename MESH_TYPE::CoordType operator()(face::Pos<typename MESH_TYPE::FaceType> ep)
|
typename MESH_TYPE::CoordType operator()(face::Pos<typename MESH_TYPE::FaceType> ep)
|
||||||
{
|
{
|
||||||
|
|
@ -780,7 +780,7 @@ face::Pos<typename MESH_TYPE::FaceType> he(ep.f,ep.z,ep.f->V(ep.z));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
template<class MESH_TYPE>
|
template<class MESH_TYPE>
|
||||||
class QualityMidPointFunctor : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType>
|
class QualityMidPointFunctor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef Point3<typename MESH_TYPE::ScalarType> Point3x;
|
typedef Point3<typename MESH_TYPE::ScalarType> Point3x;
|
||||||
|
|
@ -843,7 +843,7 @@ class QualityEdgePredicate
|
||||||
|
|
||||||
|
|
||||||
template<class MESH_TYPE>
|
template<class MESH_TYPE>
|
||||||
struct MidPointSphere : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::CoordType>
|
struct MidPointSphere
|
||||||
{
|
{
|
||||||
Sphere3<typename MESH_TYPE::ScalarType> sph;
|
Sphere3<typename MESH_TYPE::ScalarType> sph;
|
||||||
typedef Point3<typename MESH_TYPE::ScalarType> Point3x;
|
typedef Point3<typename MESH_TYPE::ScalarType> Point3x;
|
||||||
|
|
@ -889,7 +889,7 @@ class EdgeSplSphere
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class TRIMESH_TYPE>
|
template<class TRIMESH_TYPE>
|
||||||
struct CenterPointBarycenter : public std::unary_function<typename TRIMESH_TYPE::FacePointer, typename TRIMESH_TYPE::CoordType>
|
struct CenterPointBarycenter
|
||||||
{
|
{
|
||||||
typename TRIMESH_TYPE::CoordType operator()(typename TRIMESH_TYPE::FacePointer f){
|
typename TRIMESH_TYPE::CoordType operator()(typename TRIMESH_TYPE::FacePointer f){
|
||||||
return vcg::Barycenter<typename TRIMESH_TYPE::FaceType>(*f);
|
return vcg::Barycenter<typename TRIMESH_TYPE::FaceType>(*f);
|
||||||
|
|
|
||||||
|
|
@ -340,7 +340,7 @@ struct LS3Projection {
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class MESH_TYPE, class METHOD_TYPE=Centroid<MESH_TYPE>, class WEIGHT_TYPE=LoopWeight<typename MESH_TYPE::ScalarType> >
|
template<class MESH_TYPE, class METHOD_TYPE=Centroid<MESH_TYPE>, class WEIGHT_TYPE=LoopWeight<typename MESH_TYPE::ScalarType> >
|
||||||
struct OddPointLoopGeneric : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::VertexType>
|
struct OddPointLoopGeneric
|
||||||
{
|
{
|
||||||
typedef METHOD_TYPE Projection;
|
typedef METHOD_TYPE Projection;
|
||||||
typedef WEIGHT_TYPE Weight;
|
typedef WEIGHT_TYPE Weight;
|
||||||
|
|
@ -427,7 +427,7 @@ struct OddPointLoopGeneric : public std::unary_function<face::Pos<typename MESH_
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class MESH_TYPE, class METHOD_TYPE=Centroid<MESH_TYPE>, class WEIGHT_TYPE=LoopWeight<typename MESH_TYPE::ScalarType> >
|
template<class MESH_TYPE, class METHOD_TYPE=Centroid<MESH_TYPE>, class WEIGHT_TYPE=LoopWeight<typename MESH_TYPE::ScalarType> >
|
||||||
struct EvenPointLoopGeneric : public std::unary_function<face::Pos<typename MESH_TYPE::FaceType> , typename MESH_TYPE::VertexType>
|
struct EvenPointLoopGeneric
|
||||||
{
|
{
|
||||||
typedef METHOD_TYPE Projection;
|
typedef METHOD_TYPE Projection;
|
||||||
typedef WEIGHT_TYPE Weight;
|
typedef WEIGHT_TYPE Weight;
|
||||||
|
|
|
||||||
|
|
@ -733,6 +733,7 @@ public:
|
||||||
return Point4( _v[0]*s, _v[1]*s , _v[2]*s , _v[3]*s ); }
|
return Point4( _v[0]*s, _v[1]*s , _v[2]*s , _v[3]*s ); }
|
||||||
|
|
||||||
inline PointType operator ^ ( PointType const & p ) const {
|
inline PointType operator ^ ( PointType const & p ) const {
|
||||||
|
(void)p;
|
||||||
assert(0);
|
assert(0);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue