Exemplo n.º 1
0
        public static int DiamondPointsTest()
        {
            DiamondPoints dx = new DiamondPoints(8, 10, 200, 400);

            Console.WriteLine(dx.ToString());
            return(0);
        }
Exemplo n.º 2
0
        public static List <List <List <Point> > > DiamondPointsN(int xnum, int ynum, double xdis, double ydis)
        {
            NaaN.dynamo.Geometry.DiamondPoints xdia = new DiamondPoints(xnum, ynum, xdis, ydis);
            var retx = utils.multiLevelMapList((object x) =>
            {
                CSPoint pt = x as CSPoint;
                return(Point.ByCoordinates(pt.X, pt.Y, pt.Z));
            }, xdia.AllPanels);
            List <List <List <Point> > > ret = retx as List <List <List <Point> > >;

            return(ret);
        }
Exemplo n.º 3
0
        public static int utils_multiLevelMapListTest2()
        {
            Console.WriteLine("multiLevelMapList() Test:");
            DiamondPoints x = new DiamondPoints(8, 8, 200, 400);

            x.TransformPoints(200, 200);
            var y = utils.multiLevelMapList(lmn => { return(lmn); }, x.AllPanels);

            utils.multiLevelMapList(z => { Console.WriteLine(z.ToString()); return(0); }, x.AllPanels);
            Console.WriteLine("Type of return value: " + y.GetType().ToString());
            return(0);
        }
Exemplo n.º 4
0
 public DPoints(int xnum, int ynum, double xdis, double ydis)
 {
     this.dp = new DiamondPoints(xnum, ynum, xdis, ydis);
 }