Пример #1
0
        public void SetVertex(int vertexID, sXYZ loc, object dataIn)
        {
            sVertex v = new sVertex(vertexID, loc);

            v.data = dataIn;
            this.vertices.Add(v);
        }
Пример #2
0
        public void SetVertex(int vertexID, sXYZ loc, sColor col)
        {
            sVertex v = new sVertex(vertexID, loc);

            v.color = col;
            this.vertices.Add(v);
        }
Пример #3
0
        public sVertex DuplicatesVertex()
        {
            sVertex nv = new sVertex();

            nv.color    = this.color.DuplicatesColor();
            nv.ID       = this.ID;
            nv.location = this.location.DuplicatesXYZ();
            if (this.normal != null)
            {
                nv.normal = this.normal.DuplicatesXYZ();
            }
            if (this.faceIndices != null)
            {
                nv.faceIndices = new List <int>();
                foreach (int fid in this.faceIndices)
                {
                    nv.faceIndices.Add(fid);
                }
            }
            nv.data = this.data;

            return(nv);
        }
Пример #4
0
        public void SetVertex(int vertexID, sXYZ loc)
        {
            sVertex v = new sVertex(vertexID, loc);

            this.vertices.Add(v);
        }