CSharpGL.OneIndexRenderer.SameLengths C# (CSharp) Method

SameLengths() private method

private SameLengths ( List primitiveInfoList ) : void
primitiveInfoList List
return void
        private void SameLengths(List<RecognizedPrimitiveInfo> primitiveInfoList)
        {
            int length = primitiveInfoList[0].VertexIds.Length;
            for (int i = 0; i < primitiveInfoList.Count; i++)
            {
                if (primitiveInfoList[i].VertexIds.Length != length)
                {
                    throw new Exception("This should not happen!");
                }
            }
        }