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

DomCR / ACadSharp / 14214082189

02 Apr 2025 07:34AM UTC coverage: 75.523% (-0.8%) from 76.343%
14214082189

Pull #457

github

web-flow
Merge b2c68aa3f into 04434c5d6
Pull Request #457: Geometric transform

5606 of 8150 branches covered (68.79%)

Branch coverage included in aggregate %.

282 of 716 new or added lines in 47 files covered. (39.39%)

318 existing lines in 23 files now uncovered.

22348 of 28864 relevant lines covered (77.43%)

72757.24 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,702✔
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,077✔
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,103✔
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,077✔
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