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

DomCR / ACadSharp / 13724198625

07 Mar 2025 03:46PM UTC coverage: 75.325% (-0.8%) from 76.11%
13724198625

Pull #457

github

web-flow
Merge 094f366de into a1ba04cda
Pull Request #457: Geometric transform

5484 of 8003 branches covered (68.52%)

Branch coverage included in aggregate %.

220 of 606 new or added lines in 40 files covered. (36.3%)

287 existing lines in 14 files now uncovered.

21826 of 28253 relevant lines covered (77.25%)

74153.78 hits per line

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

73.33
/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,694✔
16

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

23
                /// <summary>
24
                /// Ending width
25
                /// </summary>
26
                [DxfCodeValue(DxfReferenceType.Optional, 41)]
27
                public double EndWidth { get; set; } = 0.0;
49,069✔
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,912✔
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,095✔
46

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

49
                /// <inheritdoc/>
50
                public override string ObjectName => DxfFileToken.EntityVertex;
264✔
51

52
                /// <summary>
53
                /// Starting width
54
                /// </summary>
55
                [DxfCodeValue(DxfReferenceType.Optional, 40)]
56
                public double StartWidth { get; set; } = 0.0;
49,069✔
57

58
                /// <inheritdoc/>
59
                public override void ApplyTransform(Transform transform)
NEW
60
                {
×
NEW
61
                        this.Location = transform.ApplyTransform(this.Location);
×
NEW
62
                }
×
63

64
                /// <inheritdoc/>
65
                public override BoundingBox GetBoundingBox()
66
                {
4✔
67
                        return new BoundingBox(this.Location);
4✔
68
                }
4✔
69
        }
70
}
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