示例#1
0
        internal static Uvl ReadUvl(BlockStreamReader reader)
        {
            var match = uvlRegex.Match(reader.ReadLine());

            if (!match.Success)
            {
                throw new InvalidDataException($"Expected uvls at line {reader.LastLineNumber}: '{reader.LastLine}'");
            }
            var u = short.Parse(match.Groups[1].Value);
            var v = short.Parse(match.Groups[2].Value);
            var l = ushort.Parse(match.Groups[3].Value);

            return(Uvl.FromRawValues(u, v, l));
        }
示例#2
0
 public Side(Segment parent, uint sideNum, uint numVertices = MaxVertices)
 {
     Segment = parent;
     SideNum = sideNum;
     Uvls    = new Uvl[numVertices];
 }