diff --git a/vcg/complex/algorithms/bitquad_support.h b/vcg/complex/algorithms/bitquad_support.h index 9a0f3837..a4dd9e5e 100644 --- a/vcg/complex/algorithms/bitquad_support.h +++ b/vcg/complex/algorithms/bitquad_support.h @@ -70,7 +70,7 @@ public: typedef typename VertexType::ScalarType ScalarType; static void Apply( const VertexType &a, const VertexType &b, ScalarType t, VertexType &res){ /*assert (&a != &b);*/ - res.P() = a.P()*(1-t) + b.P()*(t); + res.P() = a.cP()*(1-t) + b.cP()*(t); if (a.IsB()||b.IsB()) res.SetB(); } }; @@ -639,7 +639,7 @@ static bool IsSingletFF(const FaceType& f, int wedge){ // version that uses vertex valency static bool IsSinglet(const FaceType& f, int wedge){ - return (GetValency( f.V(wedge) ) == 1) && (!f.V(wedge)->IsB() ) ; + return (GetValency( f.cV(wedge) ) == 1) && (!f.cV(wedge)->IsB() ) ; } static bool CollapseEdgeDirect(FaceType &f, int w0, MeshType& m){ diff --git a/vcg/complex/algorithms/clip.h b/vcg/complex/algorithms/clip.h index ef3f2347..8741eb69 100644 --- a/vcg/complex/algorithms/clip.h +++ b/vcg/complex/algorithms/clip.h @@ -65,7 +65,7 @@ namespace tri inline void operator () (const VertexType & v0, const VertexType & v1, const VertexType & v2, const ScalarType & a, const ScalarType & b, VertexType & r) const { // position - r.P() = v0.P() + (v1.P() - v0.P()) * a + (v2.P() - v0.P()) * b; + r.P() = v0.cP() + (v1.cP() - v0.cP()) * a + (v2.cP() - v0.cP()) * b; // normal if (tri::HasPerVertexNormal(m)) diff --git a/vcg/simplex/vertex/base.h b/vcg/simplex/vertex/base.h index 14a29474..ea85af2f 100644 --- a/vcg/simplex/vertex/base.h +++ b/vcg/simplex/vertex/base.h @@ -146,7 +146,7 @@ public: template void GetBBox( BoxType & bb ) const - { bb.Set(this->P()); } + { bb.Set(this->cP()); } };