changed reference to vertex function in order to compile with polygonal faces

This commit is contained in:
Nico Pietroni 2014-11-07 11:41:41 +00:00
parent af5f31d4f7
commit d93bfe908f
1 changed files with 4 additions and 4 deletions

View File

@ -226,19 +226,19 @@ public:
ScalarT cotB = 0;
// Get the edge (a pair of vertices)
VertexType * v0 = f.cV0(edge);
VertexType * v1 = f.cV1(edge);
VertexType * v0 = f.cV(edge);
VertexType * v1 = f.cV((edge+1)%f.VN());
if (fp != NULL &&
fp != &f)
{
// not a border edge
VertexType * vb = fp->cV2(f.cFFi(edge));
VertexType * vb = fp->cV((f.cFFi(edge)+2)%fp->VN());
ScalarT angleB = ComputeAngle<ScalarT>(v0, vb, v1);
cotB = vcg::math::Cos(angleB) / vcg::math::Sin(angleB);
}
VertexType * va = f.cV2(edge);
VertexType * va = f.cV((edge+2)%f.VN());
ScalarT angleA = ComputeAngle<ScalarT>(v0, va, v1);
cotA = vcg::math::Cos(angleA) / vcg::math::Sin(angleA);