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

DomCR / ACadSharp / 14236951574

03 Apr 2025 07:03AM UTC coverage: 76.184% (-0.2%) from 76.343%
14236951574

Pull #525

github

web-flow
Merge cf111e118 into 04434c5d6
Pull Request #525: Issue-524 Explode Hatch

5586 of 8036 branches covered (69.51%)

Branch coverage included in aggregate %.

32 of 99 new or added lines in 17 files covered. (32.32%)

12 existing lines in 6 files now uncovered.

22084 of 28284 relevant lines covered (78.08%)

74241.73 hits per line

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

70.59
/src/ACadSharp/Entities/Vertex.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3

4
namespace ACadSharp.Entities
5
{
6
        /// <summary>
7
        /// Represents a base type for Vertex entities
8
        /// </summary>
9
        [DxfSubClass(DxfSubclassMarker.Vertex, true)]
10
        public abstract class Vertex : Entity, IVertex
11
        {
12
                /// <inheritdoc/>
13
                public override string ObjectName => DxfFileToken.EntityVertex;
264✔
14

15
                /// <summary>
16
                /// Location point (in OCS when 2D, and WCS when 3D)
17
                /// </summary>
18
                [DxfCodeValue(10, 20, 30)]
19
                public XYZ Location { get; set; } = XYZ.Zero;
65,113✔
20

21
                /// <summary>
22
                /// Starting width
23
                /// </summary>
24
                [DxfCodeValue(DxfReferenceType.Optional, 40)]
25
                public double StartWidth { get; set; } = 0.0;
49,082✔
26

27
                /// <summary>
28
                /// Ending width
29
                /// </summary>
30
                [DxfCodeValue(DxfReferenceType.Optional, 41)]
31
                public double EndWidth { get; set; } = 0.0;
49,082✔
32

33
                /// <inheritdoc/>
34
                [DxfCodeValue(DxfReferenceType.Optional, 42)]
35
                public double Bulge { get; set; } = 0.0;
50,707✔
36

37
                /// <summary>
38
                /// Vertex flags
39
                /// </summary>
40
                [DxfCodeValue(70)]
41
                public VertexFlags Flags { get; set; }
8,934✔
42

43
                /// <summary>
44
                /// Curve fit tangent direction
45
                /// </summary>
46
                [DxfCodeValue(DxfReferenceType.IsAngle, 50)]
47
                public double CurveTangent { get; set; }
5,176✔
48

49
                /// <summary>
50
                /// Vertex identifier
51
                /// </summary>
52
                [DxfCodeValue(DxfReferenceType.Ignored, 91)]    //TODO: for some versions this code is invalid
53
                public int Id { get; set; }
4,916✔
54

55
                IVector IVertex.Location { get { return this.Location; } }
×
56

57
                /// <summary>
58
                /// Default constructor.
59
                /// </summary>
60
                public Vertex() { }
131,718✔
61

62
                /// <summary>
63
                /// Location constructor.
64
                /// </summary>
65
                /// <param name="location"></param>
NEW
66
                public Vertex(XYZ location)
×
NEW
67
                {
×
NEW
68
                        this.Location = location;
×
NEW
69
                }
×
70

71
                /// <inheritdoc/>
72
                public override BoundingBox GetBoundingBox()
73
                {
4✔
74
                        return new BoundingBox(this.Location);
4✔
75
                }
4✔
76
        }
77
}
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