Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Aug 6, 2024
1 parent 8cc084f commit 189b39f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ACadSharp/Entities/Circle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ public Circle() : base() { }
/// <inheritdoc/>
public override BoundingBox GetBoundingBox()
{
XYZ min = new XYZ(Math.Min(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Min(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Min(this.Center.Z - this.Radius, this.Center.Z + this.Radius));
XYZ max = new XYZ(Math.Max(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Max(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Max(this.Center.Z - this.Radius, this.Center.Z + this.Radius));
XYZ min = new XYZ(Math.Min(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Min(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Min(this.Center.Z, this.Center.Z));
XYZ max = new XYZ(Math.Max(this.Center.X - this.Radius, this.Center.X + this.Radius), Math.Max(this.Center.Y - this.Radius, this.Center.Y + this.Radius), Math.Max(this.Center.Z, this.Center.Z));

return new BoundingBox(min, max);
}
Expand Down
13 changes: 13 additions & 0 deletions ACadSharp/Objects/Layout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using ACadSharp.Entities;
using ACadSharp.Tables;
using CSMath;
using System;
using System.Collections.Generic;
using System.Linq;

Expand Down Expand Up @@ -175,6 +176,17 @@ internal set
[DxfCodeValue(DxfReferenceType.Handle, 346)]
public UCS BaseUCS { get; set; }

/// <summary>
/// If true, the layout is a paper space.
/// </summary>
public bool IsPaperSpace
{
get
{
return this.Name.Equals(ModelLayoutName, StringComparison.InvariantCultureIgnoreCase);
}
}

//333 Shade plot ID

public IEnumerable<Viewport> Viewports
Expand All @@ -201,6 +213,7 @@ public Layout(string name, string blockName) : base()
this._blockRecord = new BlockRecord(blockName);
}

/// <inheritdoc/>
public override CadObject Clone()
{
Layout clone = (Layout)base.Clone();
Expand Down

0 comments on commit 189b39f

Please sign in to comment.