private void TransformObj(GraphicsObject gObj, Matrix4 transMatrix) { Vertex v, n; for (int i = 0; i < gObj.vertices.Count; i++) { v = gObj.vertices[i]; graphController.Dehomogenize(Vector4.Transform(graphController.Homogenize(gObj.vertices[i]), transMatrix), ref v); gObj.vertices[i] = v; } for (int i = 0; i < gObj.normals.Count; i++) { n = gObj.normals[i]; graphController.Dehomogenize(Vector4.Transform(graphController.Homogenize(gObj.normals[i]), transMatrix), ref n); Normalize(n); gObj.normals[i] = n; } }