Exemplo n.º 1
0
        private void SetLight(object sender, EventArgs e)
        {
            var x = (double)setLightX.Value;
            var y = (double)setLightY.Value;
            var z = (double)setLightZ.Value;

            lightPoint = new DddObjects.Point(x, y, z);
            RedrawFigures();
        }
Exemplo n.º 2
0
        private void Create(object sender, EventArgs e)
        {
            DddObjects.Point lightPoint = new DddObjects.Point(0, 0, 5000);
            currentPlane = PlaneFactory.CreateXY(DefaultPoint);
            var l      = (int)length.Value;
            var w      = (int)width.Value;
            var h      = (int)height.Value;
            var r      = (int)radius.Value;
            var n      = (int)interpolationN.Value;
            var figure = DddFigureFactory.Create(new DddObjects.Point(0, 0, 0), l, w, h, r, n);
            var cone   = DddFigureFactory.CreateCone(new DddObjects.Point(0, 0, 0), l, w, h, r, n);

            projection = ProjectionsFactory.CreateFrontalProjection();

            figures = new List <DddObjects.Figure> {
                cone, figure
            };
            RedrawFigures();
        }