Пример #1
0
        public void LoadDemo()
        {
            var c = new Circle();
            c.EditorPosition = new Vector2(50f, 50f);
            AddOperator(c);

            var m = new Mirror();
            m.EditorPosition = new Vector2(300f, 50f);
            AddOperator(m);

            var co = c.GetOutput("Output");
            var mi = m.GetInput("Input");
            Connect(c, co, m, mi);

            var c2 = new Circle();
            c2.EditorPosition = new Vector2(300f, 200f);
            AddOperator(c2);

            var f = new FloatValue();
            f.EditorPosition = new Vector2(50f, 350f);
            AddOperator(f);

            var ff = f.GetOutput("Float");
            var c2r = c2.GetInput("Radius");
            Connect(f, ff, c2, c2r);
        }
Пример #2
0
		public static Geometry Process(Geometry geometry) {
			var mirror = new Mirror(geometry);
			return mirror.Output();
		}
Пример #3
0
 public static Geometry Process(Geometry geometry)
 {
     var mirror = new Mirror(geometry);
     return mirror.Output();
 }