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!");
}
}
}