Esempio n. 1
0
        public Pillar(Project project, string title, IEnumerable <PrecisedVertex> items, PillarImpl impl)
            : base(project, title)
        {
            IEnumerator <PrecisedVertex> iter = items.GetEnumerator();
            int count = 0;

            while (iter.MoveNext())
            {
                count++;
            }
            System.Diagnostics.Debug.Assert(count >= 5);
            this.impl = impl;
            List <PrecisedVertex> verts = new List <PrecisedVertex>(5);

            foreach (var item in items)
            {
                verts.Add(item);
            }
            if (verts[0].Z > verts[1].Z)
            {
                verts.Reverse();
            }
            vertices = verts;
            // SetVertexes(verts.ToArray());
            //impl.ConvertPillar(items);
            impl.ConvertPillar(vertices);
            RecalcMinMax();
        }
Esempio n. 2
0
 public void SetImpl(PillarImpl pillarImple)
 {
     impl = pillarImple;
     impl.ConvertPillar(vertices);
 }