Esempio n. 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public IndexedMeshBuilder(Rcol parent) : base(parent)
        {
            gb      = new GeometryBuilder(null);
            BlockID = 0x9bffc10d;

            v1 = new Vectors3f();
            v2 = new Vectors3f();
            v3 = new Vectors2f();
            v4 = new Vectors2f();
            v5 = new Vectors2f();
            v6 = new Vectors2f();

            ia1 = new IntArrayList();
            ia2 = new IntArrayList();
            ia3 = new IntArrayList();
            ia4 = new IntArrayList();

            mbi = new IndexedMeshBuilderItems();

            zero1 = new byte[0x14];
            zero2 = new byte[0x14];

            u2 = new float[0x200];
            s1 = "face";
        }
Esempio n. 2
0
        /// <summary>
        /// Create a clone of this Object
        /// </summary>
        /// <returns>The clone</returns>
        public override object Clone()
        {
            IndexedMeshBuilderItems list = new IndexedMeshBuilderItems();

            foreach (IndexedMeshBuilderItem item in this)
            {
                list.Add(item);
            }

            return(list);
        }