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

DomCR / ACadSharp / 27019790767

05 Jun 2026 02:09PM UTC coverage: 76.573% (-0.4%) from 76.999%
27019790767

Pull #1105

github

web-flow
Merge b11aedac1 into 2addb6ad2
Pull Request #1105: Hatch explode

8653 of 12269 branches covered (70.53%)

Branch coverage included in aggregate %.

350 of 644 new or added lines in 10 files covered. (54.35%)

78 existing lines in 14 files now uncovered.

31223 of 39807 relevant lines covered (78.44%)

156015.67 hits per line

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

48.0
/src/ACadSharp/Entities/Hatch.BoundaryPath.Line.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using CSMath.Geometry;
4
using System.Collections.Generic;
5

6
namespace ACadSharp.Entities;
7

8
public partial class Hatch
9
{
10
        public partial class BoundaryPath
11
        {
12
                public class Line : Edge
13
                {
14
                        /// <summary>
15
                        /// Endpoint (in OCS)
16
                        /// </summary>
17
                        [DxfCodeValue(11, 21)]
18
                        public XY End { get; set; }
20,773✔
19

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

26
                        public override EdgeType Type => EdgeType.Line;
455✔
27

28
                        /// <summary>
29
                        /// Initializes a new instance of the Line class.
30
                        /// </summary>
31
                        public Line() { }
21,984✔
32

33
                        /// <summary>
34
                        /// Initializes a new instance of the Line class using the specified line entity.
35
                        /// </summary>
36
                        /// <param name="line">The line entity from which to initialize the start and end points. Cannot be null.</param>
37
                        public Line(Entities.Line line)
11✔
38
                        {
11✔
39
                                this.Start = line.StartPoint.Convert<XY>();
11✔
40
                                this.End = line.EndPoint.Convert<XY>();
11✔
41
                        }
11✔
42

43
                        /// <inheritdoc/>
44
                        public override void ApplyTransform(Transform transform)
NEW
45
                        {
×
NEW
46
                                this.Start = transform.ApplyTransform(this.Start.Convert<XYZ>()).Convert<XY>();
×
NEW
47
                                this.End = transform.ApplyTransform(this.End.Convert<XYZ>()).Convert<XY>();
×
NEW
48
                        }
×
49

50
                        /// <inheritdoc/>
51
                        public override BoundingBox GetBoundingBox()
NEW
52
                        {
×
NEW
53
                                return BoundingBox.FromPoints([(XYZ)this.Start, (XYZ)this.End]);
×
NEW
54
                        }
×
55

56
                        /// <inheritdoc/>
57
                        public override Entity ToEntity()
58
                        {
1✔
59
                                return new Entities.Line(this.Start, this.End);
1✔
60
                        }
1✔
61

62
                        /// <inheritdoc/>
63
                        public override IEnumerable<XY> FindIntersections(Line2D line)
NEW
64
                        {
×
NEW
65
                                return new[] { this.ToSegment2D().FindIntersection(line) };
×
NEW
66
                        }
×
67

68
                        public Segment2D ToSegment2D()
UNCOV
69
                        {
×
NEW
70
                                return new Segment2D(this.Start, this.End);
×
UNCOV
71
                        }
×
72
                }
73
        }
74
}
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