Esempio n. 1
0
        internal static bool IfcLoopHeadToTail(IfcEdgeLoop ALoop)
        {
            // local variables
            int  N;
            bool P = true;

            N = SIZEOF(ALoop.EdgeList);
            for (var i = 2; i <= N; i++)
            {
                P = P && ALoop.EdgeList[i - 2].EdgeEnd == ALoop.EdgeList[i - 1].EdgeStart;
            }
            return(P);
        }
Esempio n. 2
0
 /// <summary>
 /// Calculates the maximum number of points in this object, does not remove geometric duplicates
 /// </summary>
 /// <param name="sbsm"></param>
 /// <returns></returns>
 public static int NumberOfPointsMax(this IfcEdgeLoop loop)
 {
     return(loop.EdgeList.Count);
 }