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

DomCR / ACadSharp / 17737836230

15 Sep 2025 03:12PM UTC coverage: 2.092% (-76.2%) from 78.245%
17737836230

push

github

web-flow
Merge pull request #790 from DomCR/addflag-refactor

addflag refactor

141 of 9225 branches covered (1.53%)

Branch coverage included in aggregate %.

0 of 93 new or added lines in 10 files covered. (0.0%)

24910 existing lines in 372 files now uncovered.

724 of 32119 relevant lines covered (2.25%)

5.76 hits per line

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

0.0
/src/ACadSharp/Entities/PolyLine3D.cs
1
using ACadSharp.Attributes;
2
using CSMath;
3
using System;
4
using System.Collections.Generic;
5
using System.Linq;
6

7
namespace ACadSharp.Entities
8
{
9
        /// <summary>
10
        /// Represents a <see cref="Polyline3D"/> entity.
11
        /// </summary>
12
        /// <remarks>
13
        /// Object name <see cref="DxfFileToken.EntityPolyline"/> <br/>
14
        /// Dxf class name <see cref="DxfSubclassMarker.Polyline"/>
15
        /// </remarks>
16
        [DxfName(DxfFileToken.EntityPolyline)]
17
        [DxfSubClass(DxfSubclassMarker.Polyline3d)]
18
        public class Polyline3D : Polyline
19
        {
20
                /// <inheritdoc/>
UNCOV
21
                public override ObjectType ObjectType => ObjectType.POLYLINE_3D;
×
22

23
                /// <inheritdoc/>
UNCOV
24
                public override string SubclassMarker => DxfSubclassMarker.Polyline3d;
×
25

UNCOV
26
                public Polyline3D() : base()
×
UNCOV
27
                {
×
UNCOV
28
                }
×
29

UNCOV
30
                public Polyline3D(IEnumerable<XYZ> vertices, bool isClosed = false) : base(vertices.Select(v => new Vertex3D(v)), isClosed)
×
UNCOV
31
                {
×
UNCOV
32
                }
×
33

34
                public Polyline3D(IEnumerable<Vertex3D> vertices, bool isColsed) : base(vertices, isColsed)
×
35
                {
×
36
                }
×
37

38
                public override IEnumerable<Entity> Explode()
39
                {
×
40
                        return Polyline.Explode(this);
×
41
                }
×
42

43
                protected override void verticesOnAdd(object sender, CollectionChangedEventArgs e)
UNCOV
44
                {
×
UNCOV
45
                        if (e.Item is not Vertex3D)
×
46
                        {
×
47
                                this.Vertices.Remove((Vertex)e.Item);
×
48
                                throw new ArgumentException($"Wrong vertex type for {DxfSubclassMarker.Polyline3d}");
×
49
                        }
UNCOV
50
                        else if (e.Item is Vertex3D v && v.Bulge != 0)
×
51
                        {
×
52
                                throw new ArgumentException($"Bulge value cannot be different than 0 for a Vertex3D in a 3D Polyline");
×
53
                        }
UNCOV
54
                }
×
55
        }
56
}
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