public static IEnumerable <Face3d> DrawCuboid(this BBox3D bbox, DxfObject dxfObj, Layer layer = null) { var ents = bbox.ToFace3DList().ToList(); dxfObj.AddEntities(ents, layer); return(ents); }
/// <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); }