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

DomCR / ACadSharp / 23897845185

02 Apr 2026 11:18AM UTC coverage: 76.823% (+0.01%) from 76.811%
23897845185

push

github

web-flow
Merge pull request #1017 from DomCR/issue/1003_insertpoint-for-attrib-not-inherited-from-insert

issue 1003 insertpoint for atts

8404 of 11880 branches covered (70.74%)

Branch coverage included in aggregate %.

386 of 529 new or added lines in 7 files covered. (72.97%)

15 existing lines in 4 files now uncovered.

30188 of 38355 relevant lines covered (78.71%)

150418.75 hits per line

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

87.1
/src/ACadSharp/Entities/PolyfaceMesh.cs
1
using ACadSharp.Attributes;
2

3
namespace ACadSharp.Entities;
4

5
/// <summary>
6
/// Represents a <see cref="PolyfaceMesh"/> entity.
7
/// </summary>
8
/// <remarks>
9
/// Object name <see cref="DxfFileToken.EntityPolyline"/> <br/>
10
/// Dxf class name <see cref="DxfSubclassMarker.PolyfaceMesh"/>
11
/// </remarks>
12
[DxfName(DxfFileToken.EntityPolyline)]
13
[DxfSubClass(DxfSubclassMarker.PolyfaceMesh)]
14
public class PolyfaceMesh : Polyline<VertexFaceMesh>
15
{
16
        /// <summary>
17
        /// Face records with the triangle indexes.
18
        /// </summary>
19
        [DxfCodeValue(DxfReferenceType.Count, 72)]
20
        public CadObjectCollection<VertexFaceRecord> Faces { get; private set; }
1,815✔
21

22
        /// <inheritdoc/>
23
        public override PolylineFlags Flags { get => base.Flags | (PolylineFlags.PolyfaceMesh); set => base.Flags = value; }
230✔
24

25
        /// <inheritdoc/>
26
        public override string ObjectName => DxfFileToken.EntityPolyline;
1,080✔
27

28
        /// <inheritdoc/>
29
        public override ObjectType ObjectType { get { return ObjectType.POLYLINE_PFACE; } }
3✔
30

31
        /// <inheritdoc/>
32
        public override string SubclassMarker => DxfSubclassMarker.PolyfaceMesh;
838✔
33

34
        /// <inheritdoc/>
35
        public PolyfaceMesh() : base()
357✔
36
        {
357✔
37
        }
357✔
38

39
        /// <inheritdoc/>
40
        public override CadObject Clone()
41
        {
5✔
42
                PolyfaceMesh clone = (PolyfaceMesh)base.Clone();
5✔
43

44
                foreach (VertexFaceRecord v in this.Faces)
15!
UNCOV
45
                {
×
NEW
46
                        clone.Faces.Add((VertexFaceRecord)v.Clone());
×
NEW
47
                }
×
48

49
                return clone;
5✔
50
        }
5✔
51

52
        internal override void AssignDocument(CadDocument doc)
53
        {
348✔
54
                base.AssignDocument(doc);
348✔
55
                doc.RegisterCollection(this.Faces);
348✔
56
        }
348✔
57

58
        internal override void UnassignDocument()
59
        {
20✔
60
                this.Document.UnregisterCollection(this.Faces);
20✔
61
                base.UnassignDocument();
20✔
62
        }
20✔
63

64
        protected override void initCollections()
65
        {
362✔
66
                base.initCollections();
362✔
67
                this.Faces = new CadObjectCollection<VertexFaceRecord>(this);
362✔
68
                this.Faces.OnAdd += this.onAddVertices;
362✔
69
        }
362✔
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