/// <summary> /// Applies a transformation to the points. /// </summary> /// <param name="t">ModelTransform object.</param> public virtual void Transform(ModelTransform t) { for (int i = 0; i < _points.Count; i++) { _points[i] = t.Transform(_points[i]); } for (int j = 0; j < Triangles.Count; j++) { for (int k = 0; k < 3; k++) { Triangles[j].Points[k] = t.Transform(Triangles[j].Points[k]); } } }