/// <summary> /// Изменение типа проецирование /// </summary> /// <param name="type">Перечисление типа Engine.ProecType</param> public void SetProecType(ProecType type) { if (type == this.proecType) { return; } this.proecType = type; }
public Render(int height, int width) { canvasHeight = height; canvasWidth = width; proecType = ProecType.Parallel; rotateType = RotateType.Global; viewType = ViewType.Faces; light = new Vector3D(0, 0, 100); color = Color.DarkOrchid; // Инициализируем камеру camera = new Camera(new Point3D(300, 100, -300), new Point3D(), 5, 5000, 90, width, height); }