Updated to reflect the naming changes in updateNormals
This commit is contained in:
parent
dd520b4fc4
commit
bc3952ccc1
|
@ -66,7 +66,7 @@ void CreaseCut(MESH_TYPE &m, float angleRad)
|
||||||
tri::Allocator<MESH_TYPE>::CompactVertexVector(m);
|
tri::Allocator<MESH_TYPE>::CompactVertexVector(m);
|
||||||
tri::Allocator<MESH_TYPE>::CompactFaceVector(m);
|
tri::Allocator<MESH_TYPE>::CompactFaceVector(m);
|
||||||
|
|
||||||
tri::UpdateNormals<MESH_TYPE>::NormalizePerFace(m);
|
tri::UpdateNormal<MESH_TYPE>::NormalizePerFace(m);
|
||||||
|
|
||||||
assert(tri::HasFFAdjacency(m));
|
assert(tri::HasFFAdjacency(m));
|
||||||
typename MESH_TYPE::ScalarType cosangle=math::Cos(angleRad);
|
typename MESH_TYPE::ScalarType cosangle=math::Cos(angleRad);
|
||||||
|
@ -138,7 +138,7 @@ void CreaseCut(MESH_TYPE &m, float angleRad)
|
||||||
(*fi).V(j) = & m.vert[curVertexInd];
|
(*fi).V(j) = & m.vert[curVertexInd];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tri::UpdateNormals<MESH_TYPE>::PerVertexFromCurrentFaceNormal(m);
|
tri::UpdateNormal<MESH_TYPE>::PerVertexFromCurrentFaceNormal(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // end namespace tri
|
} // end namespace tri
|
||||||
|
|
Loading…
Reference in New Issue