-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #505 from DomCR/issue-504_hatchpattern-lineangle-n…
…-offset-public issue 504
- Loading branch information
Showing
2 changed files
with
40 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using ACadSharp.Attributes; | ||
using CSMath; | ||
using System.Collections.Generic; | ||
|
||
namespace ACadSharp.Entities | ||
{ | ||
public partial class HatchPattern | ||
{ | ||
public class Line | ||
{ | ||
/// <summary> | ||
/// Pattern line angle | ||
/// </summary> | ||
[DxfCodeValue(DxfReferenceType.IsAngle, 53)] | ||
public double Angle { get; set; } | ||
|
||
/// <summary> | ||
/// Pattern line base point | ||
/// </summary> | ||
[DxfCodeValue(43, 44)] | ||
public XY BasePoint { get; set; } | ||
|
||
/// <summary> | ||
/// Pattern line offset | ||
/// </summary> | ||
[DxfCodeValue(45, 46)] | ||
public XY Offset { get; set; } | ||
|
||
public List<double> DashLengths { get; set; } = new List<double>(); | ||
|
||
public Line Clone() | ||
{ | ||
Line clone = (Line)this.MemberwiseClone(); | ||
clone.DashLengths = new List<double>(this.DashLengths); | ||
return clone; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters