Пример #1
0
        /// <summary>
        /// Creates and add dxf entities for 6 faces of a cuboid
        /// </summary>
        public static IEnumerable <EntityObject> DrawCuboid(this DxfObject dxfObj, Vector3D center, Vector3D size, Layer layer = null)
        {
            var ents = DxfKit.Cuboid(center, size).ToList();

            dxfObj.AddEntities(ents, layer);

            return(ents);
        }
Пример #2
0
        public static IEnumerable <Face3d> ToFace3DList(this BBox3D bbox)
        {
            var d = bbox.Max - bbox.Min;

            return(DxfKit.Cuboid((bbox.Max + bbox.Min) / 2, d));
        }