Ejemplo n.º 1
0
        public override ArrayList GetItemInfo()
        {
//            ArrayList itemInfo = new ArrayList { "Mesh flags: " };
//            GetFlagsInfo(itemInfo);
//            itemInfo.Add("Vertices number: " + NumVertices);
//            itemInfo.Add("Polys number: " + NumPolys);
//            itemInfo.Add("Length: " + Length);
//            itemInfo.Add("Height: " + Height);
//            itemInfo.Add("Depth: " + Depth);
//            itemInfo.Add("Local pos:\n  X: " + LocalPos.x + "\n  Y: " + LocalPos.y + "\n  Z: " + LocalPos.z);
//            itemInfo.Add("TextureInfo count: " + Info.Count);
            ArrayList itemInfo = new ArrayList
            {
                new InputText(this, "Name:", Name, true, "name"),
                new InputText(this, "Size:", Size.ToString(), false, ""),
                new InputText(this, "Vertices count:", NumVertices.ToString(), false, ""),
                new InputText(this, "Polygons count:", NumPolys.ToString(), false, ""),
                new InputText(this, "Length:", Length.ToString(), false, ""),
                new InputText(this, "Height:", Height.ToString(), false, ""),
                new InputText(this, "Depth:", Depth.ToString(), false, ""),
                new InputText(this, "X:", LocalPos.x.ToString(), true, "posX"),
                new InputText(this, "Y:", LocalPos.y.ToString(), true, "posY"),
                new InputText(this, "Z:", LocalPos.z.ToString(), true, "posZ")
            };

            GetFlagsInfo(itemInfo);
            return(itemInfo);
        }
Ejemplo n.º 2
0
 public bool Equals(Face other) => FirstIndex.Equals(other.FirstIndex) && NumVertices.Equals(other.NumVertices) && MinHalfAngleCompressed.Equals(other.MinHalfAngleCompressed);