Example #1
0
        /// <summary>
        /// Reads a <see cref="Polygon3f"/> from an <see cref="Ibasa.IO.BinaryReader">.
        /// </summary>
        public static Polygon3f ReadPolygon3f(this Ibasa.IO.BinaryReader reader)
        {
            var length = reader.ReadInt32();
            var array  = new Point3f[length];

            for (int i = 0; i < length; ++i)
            {
                array[i] = reader.ReadPoint3f();
            }
            return(new Polygon3f(array));
        }
Example #2
0
 /// <summary>
 /// Reads a <see cref="Line3f"/> from an <see cref="Ibasa.IO.BinaryReader">.
 /// </summary>
 public static Line3f ReadLine3f(this Ibasa.IO.BinaryReader reader)
 {
     return(new Line3f(reader.ReadPoint3f(), reader.ReadPoint3f()));
 }