• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DomCR / ACadSharp / 19033915008

03 Nov 2025 11:58AM UTC coverage: 77.79% (-0.02%) from 77.805%
19033915008

Pull #853

github

web-flow
Merge 5c0ff2d30 into ef9d8f01f
Pull Request #853: Transform hatch

6960 of 9743 branches covered (71.44%)

Branch coverage included in aggregate %.

54 of 112 new or added lines in 8 files covered. (48.21%)

11 existing lines in 6 files now uncovered.

26769 of 33616 relevant lines covered (79.63%)

101804.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

23.08
/src/ACadSharp/Entities/Hatch.BoundaryPath.Line.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Entities
5
{
6
        public partial class Hatch
7
        {
8
                public partial class BoundaryPath
9
                {
10
                        public class Line : Edge
11
                        {
12
                                /// <summary>
13
                                /// Endpoint (in OCS)
14
                                /// </summary>
15
                                [DxfCodeValue(11, 21)]
16
                                public XY End { get; set; }
22,492✔
17

18
                                /// <summary>
19
                                /// Start point (in OCS)
20
                                /// </summary>
21
                                [DxfCodeValue(10, 20)]
22
                                public XY Start { get; set; }
22,492✔
23

24
                                public override EdgeType Type => EdgeType.Line;
556✔
25

26
                                /// <inheritdoc/>
27
                                public override void ApplyTransform(Transform transform)
28
                                {
×
NEW
29
                                        this.Start = transform.ApplyTransform(this.Start.Convert<XYZ>()).Convert<XY>();
×
NEW
30
                                        this.End = transform.ApplyTransform(this.End.Convert<XYZ>()).Convert<XY>();
×
UNCOV
31
                                }
×
32

33
                                /// <inheritdoc/>
34
                                public override BoundingBox GetBoundingBox()
35
                                {
×
36
                                        return BoundingBox.FromPoints([(XYZ)this.Start, (XYZ)this.End]);
×
37
                                }
×
38

39
                                /// <inheritdoc/>
40
                                public override Entity ToEntity()
NEW
41
                                {
×
NEW
42
                                        return new Entities.Line(this.Start, this.End);
×
NEW
43
                                }
×
44
                        }
45
                }
46
        }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc