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

DomCR / ACadSharp / 14305968221

07 Apr 2025 09:41AM UTC coverage: 75.187% (-1.0%) from 76.181%
14305968221

push

github

DomCR
badge fix

5615 of 8186 branches covered (68.59%)

Branch coverage included in aggregate %.

22386 of 29056 relevant lines covered (77.04%)

72281.98 hits per line

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

85.0
/src/ACadSharp/Entities/Hatch.BoundaryPath.Polyline.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using System.Collections.Generic;
4
using System.Linq;
5

6
namespace ACadSharp.Entities
7
{
8
        public partial class Hatch
9
        {
10
                public partial class BoundaryPath
11
                {
12
                        public class Polyline : Edge
13
                        {
14
                                /// <inheritdoc/>
15
                                public override EdgeType Type => EdgeType.Polyline;
×
16

17
                                /// <summary>
18
                                /// The polyline has bulges with value different than 0.
19
                                /// </summary>
20
                                [DxfCodeValue(72)]
21
                                public bool HasBulge => this.Bulges.Any(b => b != 0);
1,950✔
22

23
                                /// <summary>
24
                                /// Is closed flag.
25
                                /// </summary>
26
                                [DxfCodeValue(73)]
27
                                public bool IsClosed { get; set; }
479✔
28

29
                                /// <summary>
30
                                /// Bulges applied to each vertice, the number of bulges must be equal to the vertices or empty.
31
                                /// </summary>
32
                                /// <remarks>
33
                                /// default value, 0 if not set
34
                                /// </remarks>
35
                                [DxfCodeValue(DxfReferenceType.Optional, 42)]
36
                                public IEnumerable<double> Bulges { get { return this.Vertices.Select(v => v.Z); } }
2,730✔
37

38
                                /// <summary>
39
                                /// Position values are only X and Y.
40
                                /// </summary>
41
                                /// <remarks>
42
                                /// The vertex bulge is stored in the Z component.
43
                                /// </remarks>
44
                                [DxfCodeValue(DxfReferenceType.Count, 93)]
45
                                public List<XYZ> Vertices { get; set; } = new();
6,259✔
46

47
                                /// <inheritdoc/>
48
                                public override Entity ToEntity()
49
                                {
1✔
50
                                        List<Vertex> vertices = new();
1✔
51
                                        foreach (XYZ v in this.Vertices)
13✔
52
                                        {
5✔
53
                                                vertices.Add(new Vertex2D(v));
5✔
54
                                        }
5✔
55

56
                                        return new Polyline2D(vertices.Cast<Vertex2D>(), this.IsClosed);
1✔
57
                                }
1✔
58

59
                                /// <inheritdoc/>
60
                                public override void ApplyTransform(Transform transform)
61
                                {
×
62
                                        throw new System.NotImplementedException();
×
63
                                }
64

65
                                /// <inheritdoc/>
66
                                public override BoundingBox GetBoundingBox()
67
                                {
3✔
68
                                        return BoundingBox.FromPoints(this.Vertices);
3✔
69
                                }
3✔
70
                        }
71
                }
72
        }
73
}
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