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

DomCR / ACadSharp / 13723607028

07 Mar 2025 03:14PM UTC coverage: 75.346% (-0.8%) from 76.11%
13723607028

Pull #457

github

web-flow
Merge 1ebca662a into a1ba04cda
Pull Request #457: Geometric transform

5484 of 8001 branches covered (68.54%)

Branch coverage included in aggregate %.

150 of 519 new or added lines in 40 files covered. (28.9%)

283 existing lines in 12 files now uncovered.

21823 of 28241 relevant lines covered (77.27%)

74185.34 hits per line

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

78.57
/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
                public override string ObjectName => DxfFileToken.EntityVertex;
264✔
15

16
                /// <summary>
17
                /// Location point (in OCS when 2D, and WCS when 3D)
18
                /// </summary>
19
                [DxfCodeValue(10, 20, 30)]
20
                public XYZ Location { get; set; } = XYZ.Zero;
65,095✔
21

22
                /// <summary>
23
                /// Starting width
24
                /// </summary>
25
                [DxfCodeValue(DxfReferenceType.Optional, 40)]
26
                public double StartWidth { get; set; } = 0.0;
49,069✔
27

28
                /// <summary>
29
                /// Ending width
30
                /// </summary>
31
                [DxfCodeValue(DxfReferenceType.Optional, 41)]
32
                public double EndWidth { get; set; } = 0.0;
49,069✔
33

34
                /// <inheritdoc/>
35
                [DxfCodeValue(DxfReferenceType.Optional, 42)]
36
                public double Bulge { get; set; } = 0.0;
50,694✔
37

38
                /// <summary>
39
                /// Vertex flags
40
                /// </summary>
41
                [DxfCodeValue(70)]
42
                public VertexFlags Flags { get; set; }
8,934✔
43

44
                /// <summary>
45
                /// Curve fit tangent direction
46
                /// </summary>
47
                [DxfCodeValue(DxfReferenceType.IsAngle, 50)]
48
                public double CurveTangent { get; set; }
5,172✔
49

50
                /// <summary>
51
                /// Vertex identifier
52
                /// </summary>
53
                [DxfCodeValue(DxfReferenceType.Ignored, 91)]    //TODO: for some versions this code is invalid
54
                public int Id { get; set; }
4,912✔
55

56
                IVector IVertex.Location { get { return this.Location; } }
×
57

58
                /// <inheritdoc/>
59
                public override BoundingBox GetBoundingBox()
60
                {
4✔
61
                        return new BoundingBox(this.Location);
4✔
62
                }
4✔
63

64
                public override void ApplyTransform(Transform transform)
NEW
65
                {
×
NEW
66
                        throw new NotImplementedException();
×
67
                }
68
        }
69
}
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