Exemplo n.º 1
0
        /// <summary>
        /// Checks if two gPolygons are coplanar.
        /// </summary>
        /// <param name="polygon">gPolygon</param>
        /// <param name="otherPolygon">Other gPolygon</param>
        /// <returns></returns>
        public static bool Coplanar(Polygon polygon, Polygon otherPolygon)
        {
            List <Vertex> joinedVertices = new List <Vertex>(polygon.Vertices);

            joinedVertices.AddRange(otherPolygon.Vertices);

            return(Vertex.Coplanar(joinedVertices));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Checks if a polygon is planar
 /// </summary>
 /// <param name="polygon">gPolygon</param>
 /// <returns>boolean</returns>
 public static bool IsPlanar(Polygon polygon)
 {
     return(Vertex.Coplanar(polygon.Vertices));
 }