Esempio n. 1
0
        /// <summary>
        /// Reads a <see cref="Polygon3d"/> from an <see cref="Ibasa.IO.BinaryReader">.
        /// </summary>
        public static Polygon3d ReadPolygon3d(this Ibasa.IO.BinaryReader reader)
        {
            var length = reader.ReadInt32();
            var array  = new Point3d[length];

            for (int i = 0; i < length; ++i)
            {
                array[i] = reader.ReadPoint3d();
            }
            return(new Polygon3d(array));
        }
Esempio n. 2
0
 /// <summary>
 /// Reads a <see cref="Line3d"/> from an <see cref="Ibasa.IO.BinaryReader">.
 /// </summary>
 public static Line3d ReadLine3d(this Ibasa.IO.BinaryReader reader)
 {
     return(new Line3d(reader.ReadPoint3d(), reader.ReadPoint3d()));
 }