public static void Translate(ITriangleMesh mesh, Vector3 translation) { for (int i = 0; i < mesh.GetNumberOfVertices(); i++) { mesh.SetVertex(i, Vector3.Add(mesh.GetVertex(i), translation)); } }
public static void Translate(ITriangleMesh mesh, Vector3 translation) { for (int i = 0; i < mesh.GetNumberOfVertices(); i++) { mesh.SetVertex(i, Vector3.Add(mesh.GetVertex(i), translation)); } }