}   // No code

        public N3DTTriangle(N3DTVertex p1, N3DTVertex p2, N3DTVertex p3)
        {
            this.A      = p1;
            this.B      = p2;
            this.C      = p3;
            this.Normal = this.GetNormal(this.A, this.B, this.C);
        }
        private N3DTVertex GetNormal(N3DTVertex a, N3DTVertex b, N3DTVertex c)
        {
            var     s1 = b.ToVector3() - a.ToVector3();
            var     s2 = c.ToVector3() - a.ToVector3();
            Vector3 v  = Vector3.Cross(s1, s2);

            return(new N3DTVertex(v.X, v.Y, v.Z));
        }
Beispiel #3
0
 public N3DTVertex(N3DTVertex v)
     : this(v.X, v.Y, v.Z)
 {
 }
Beispiel #4
0
        }   // No code

        public N3DTVertex(N3DTVertex v) : this(v.X, v.Y, v.Z)
        {
        }   // No code