public static IBufferable GetModel(float radius = 1.0f) { TeapotModel model = TeapotLoader.GetModel(); if (radius != 1.0f) { for (int i = 0; i < model.positions.Count; i++) { model.positions[i] *= radius; } } return(model); }
internal static TeapotModel GetModel(float radius = 1.0f) { TeapotModel model = TeapotLoader.GetModel(); if (radius != 1.0f) { for (int i = 0; i < model.positions.Count; i++) { model.positions[i] *= radius; } } model.positions = model.positions.Move2Center(); return(model); }