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

DomCR / ACadSharp / 18314169605

07 Oct 2025 01:24PM UTC coverage: 77.952% (-0.06%) from 78.015%
18314169605

push

github

web-flow
Merge pull request #813 from DomCR/polyline-refactor

Polyline refactor

6797 of 9463 branches covered (71.83%)

Branch coverage included in aggregate %.

90 of 112 new or added lines in 10 files covered. (80.36%)

46 existing lines in 4 files now uncovered.

26133 of 32781 relevant lines covered (79.72%)

109153.14 hits per line

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

80.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)]
15
                public double Bulge { get; set; } = 0.0;
558,600✔
16

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

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

29
                /// <summary>
30
                /// Vertex flags
31
                /// </summary>
32
                [DxfCodeValue(70)]
33
                public VertexFlags Flags { get; set; }
12,210✔
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,516✔
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,079,822✔
46

NEW
47
                IVector IVertex.Location { get { return this.Location; } set { this.Location = value.Convert<XYZ>(); } }
×
48

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

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

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

66
                /// <summary>
67
                /// Starting width
68
                /// </summary>
69
                [DxfCodeValue(DxfReferenceType.Optional, 40)]
70
                public double StartWidth { get; set; } = 0.0;
558,609✔
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()
80
                {
4✔
81
                        return new BoundingBox(this.Location);
4✔
82
                }
4✔
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