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

DomCR / ACadSharp / 20244298837

15 Dec 2025 07:08PM UTC coverage: 77.69% (-0.2%) from 77.847%
20244298837

push

github

web-flow
Merge pull request #919 from DomCR/image-reactor-fix

Image reactors

7578 of 10571 branches covered (71.69%)

Branch coverage included in aggregate %.

50 of 53 new or added lines in 9 files covered. (94.34%)

131 existing lines in 33 files now uncovered.

28098 of 35350 relevant lines covered (79.49%)

161916.85 hits per line

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

60.87
/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)]
15
                public double Bulge { get; set; } = 0.0;
568,359✔
16

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

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

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

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

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

47
                IVector IVertex.Location { get { return this.Location; } set { this.Location = value.Convert<XYZ>(); } }
11,886✔
48

49
                /// <summary>
50
                /// Default constructor.
51
                /// </summary>
52
                public Vertex() { }
1,655,592✔
53

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

63
                /// <inheritdoc/>
64
                public override string ObjectName => DxfFileToken.EntityVertex;
169,367✔
65

66
                /// <summary>
67
                /// Starting width
68
                /// </summary>
69
                [DxfCodeValue(DxfReferenceType.Optional, 40)]
70
                public double StartWidth { get; set; } = 0.0;
567,925✔
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
                /// <inheritdoc/>
85
                public override string ToString()
UNCOV
86
                {
×
UNCOV
87
                        return $"{this.SubclassMarker}|{this.Location.ToString()}";
×
UNCOV
88
                }
×
89
        }
90
}
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