Exemple #1
0
        private void parseNormal(String[] Pos)
        {
            Normal3 Norm = new Normal3(
                System.Convert.ToDecimal(Pos[1]),
                System.Convert.ToDecimal(Pos[2]),
                System.Convert.ToDecimal(Pos[3]));

            normals.Add(Norm);
        }
Exemple #2
0
        public DLVertex3(Vertex3 Vert, Normal3 Norm)
        {
            this.vertPosX = Vert.posX;
            this.vertPosY = Vert.posY;
            this.vertPosZ = Vert.posZ;

            this.normPosX = Norm.posX;
            this.normPosY = Norm.posY;
            this.normPosZ = Norm.posZ;
        }
Exemple #3
0
        public List <DLVertex3> getVertices(Poly3 Tri)
        {
            List <DLVertex3> DLVertices = new List <DLVertex3> {
            };

            for (int i = 0; i < 3; i++)
            {
                Vertex3 Vtx  = vertices[Tri.verts[i]];
                Normal3 Norm = normals[Vtx.Normal];

                DLVertices.Add(new DLVertex3(Vtx, Norm));
            }

            return(DLVertices);
        }