Example #1
0
        /// <summary>
        /// Checks if two Polygons are coplanar.
        /// </summary>
        /// <param name="polygon">Other Polygon</param>
        /// <returns></returns>
        public bool AreCoplanar(Polygon polygon)
        {
            List <Vertex> joinedVertices = new List <Vertex>(this.Vertices);

            joinedVertices.AddRange(polygon.Vertices);

            return(Vertex.Coplanar(joinedVertices));
        }
Example #2
0
 /// <summary>
 /// Checks if a polygon is planar
 /// </summary>
 /// <returns>boolean</returns>
 public bool IsPlanar()
 {
     return(Vertex.Coplanar(this.Vertices));
 }