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

DomCR / ACadSharp / 14237266482

03 Apr 2025 07:21AM UTC coverage: 75.361% (-0.8%) from 76.181%
14237266482

Pull #457

github

web-flow
Merge 8c727f79b into 7d5174d5a
Pull Request #457: Geometric transform

5614 of 8168 branches covered (68.73%)

Branch coverage included in aggregate %.

264 of 717 new or added lines in 47 files covered. (36.82%)

280 existing lines in 13 files now uncovered.

22376 of 28973 relevant lines covered (77.23%)

72489.1 hits per line

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

60.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;
50,707✔
16

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

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

29
                /// <summary>
30
                /// Vertex flags
31
                /// </summary>
32
                [DxfCodeValue(70)]
33
                public VertexFlags Flags { get; set; }
8,934✔
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; }
4,916✔
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;
65,113✔
46

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

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

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

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

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

72
                /// <inheritdoc/>
73
                public override void ApplyTransform(Transform transform)
NEW
74
                {
×
NEW
75
                        this.Location = transform.ApplyTransform(this.Location);
×
NEW
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