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

DomCR / ACadSharp / 18093480635

29 Sep 2025 10:12AM UTC coverage: 77.923% (-0.4%) from 78.349%
18093480635

push

github

web-flow
Merge pull request #776 from DomCR/svg-linetypes

Svg linetypes

6787 of 9447 branches covered (71.84%)

Branch coverage included in aggregate %.

112 of 319 new or added lines in 10 files covered. (35.11%)

11 existing lines in 3 files now uncovered.

26081 of 32733 relevant lines covered (79.68%)

109509.64 hits per line

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

46.88
/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/>
21
                public override ObjectType ObjectType => ObjectType.POLYLINE_3D;
17✔
22

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

26
                public Polyline3D() : base()
10,382✔
27
                {
10,382✔
28
                }
10,382✔
29

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

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

38
                public Polyline3D(params IEnumerable<XYZ> vertices) : base(vertices.Select(v => new Vertex3D(v)), false)
2,304✔
39
                {
9✔
40
                }
9✔
41

42
                public override IEnumerable<Entity> Explode()
43
                {
×
44
                        return Polyline.Explode(this);
×
45
                }
×
46

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