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

DomCR / ACadSharp / 17737836230

15 Sep 2025 03:12PM UTC coverage: 2.092% (-76.2%) from 78.245%
17737836230

push

github

web-flow
Merge pull request #790 from DomCR/addflag-refactor

addflag refactor

141 of 9225 branches covered (1.53%)

Branch coverage included in aggregate %.

0 of 93 new or added lines in 10 files covered. (0.0%)

24910 existing lines in 372 files now uncovered.

724 of 32119 relevant lines covered (2.25%)

5.76 hits per line

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

0.0
/src/ACadSharp/Entities/Vertex.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using System;
4

5
namespace ACadSharp.Entities
6
{
7
        /// <summary>
8
        /// Represents a base type for Vertex entities
9
        /// </summary>
10
        [DxfSubClass(DxfSubclassMarker.Vertex, true)]
11
        public abstract class Vertex : Entity, IVertex
12
        {
13
                /// <inheritdoc/>
14
                [DxfCodeValue(DxfReferenceType.Optional, 42)]
UNCOV
15
                public double Bulge { get; set; } = 0.0;
×
16

17
                /// <summary>
18
                /// Curve fit tangent direction
19
                /// </summary>
20
                [DxfCodeValue(DxfReferenceType.IsAngle, 50)]
UNCOV
21
                public double CurveTangent { get; set; }
×
22

23
                /// <summary>
24
                /// Ending width
25
                /// </summary>
26
                [DxfCodeValue(DxfReferenceType.Optional, 41)]
UNCOV
27
                public double EndWidth { get; set; } = 0.0;
×
28

29
                /// <summary>
30
                /// Vertex flags
31
                /// </summary>
32
                [DxfCodeValue(70)]
UNCOV
33
                public VertexFlags Flags { get; set; }
×
34

35
                /// <summary>
36
                /// Vertex identifier
37
                /// </summary>
38
                [DxfCodeValue(DxfReferenceType.Ignored, 91)]    //TODO: for some versions this code is invalid
UNCOV
39
                public int Id { get; set; }
×
40

41
                /// <summary>
42
                /// Location point (in OCS when 2D, and WCS when 3D)
43
                /// </summary>
44
                [DxfCodeValue(10, 20, 30)]
UNCOV
45
                public XYZ Location { get; set; } = XYZ.Zero;
×
46

47
                IVector IVertex.Location { get { return this.Location; } }
×
48

49
                /// <summary>
50
                /// Default constructor.
51
                /// </summary>
UNCOV
52
                public Vertex() { }
×
53

54
                /// <summary>
55
                /// Location constructor.
56
                /// </summary>
57
                /// <param name="location"></param>
UNCOV
58
                public Vertex(XYZ location)
×
UNCOV
59
                {
×
UNCOV
60
                        this.Location = location;
×
UNCOV
61
                }
×
62

63
                /// <inheritdoc/>
UNCOV
64
                public override string ObjectName => DxfFileToken.EntityVertex;
×
65

66
                /// <summary>
67
                /// Starting width
68
                /// </summary>
69
                [DxfCodeValue(DxfReferenceType.Optional, 40)]
UNCOV
70
                public double StartWidth { get; set; } = 0.0;
×
71

72
                /// <inheritdoc/>
73
                public override void ApplyTransform(Transform transform)
74
                {
×
75
                        this.Location = transform.ApplyTransform(this.Location);
×
76
                }
×
77

78
                /// <inheritdoc/>
79
                public override BoundingBox GetBoundingBox()
UNCOV
80
                {
×
UNCOV
81
                        return new BoundingBox(this.Location);
×
UNCOV
82
                }
×
83
        }
84
}
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