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

DomCR / ACadSharp / 20244298837

15 Dec 2025 07:08PM UTC coverage: 77.69% (-0.2%) from 77.847%
20244298837

push

github

web-flow
Merge pull request #919 from DomCR/image-reactor-fix

Image reactors

7578 of 10571 branches covered (71.69%)

Branch coverage included in aggregate %.

50 of 53 new or added lines in 9 files covered. (94.34%)

131 existing lines in 33 files now uncovered.

28098 of 35350 relevant lines covered (79.49%)

161916.85 hits per line

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

81.48
/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
                /// <inheritdoc/>
UNCOV
17
                public override ObjectType ObjectType { get { return ObjectType.POLYLINE_PFACE; } }
×
18

19
                /// <inheritdoc/>
20
                public override string ObjectName => DxfFileToken.EntityPolyline;
1,329✔
21

22
                /// <inheritdoc/>
23
                public override string SubclassMarker => DxfSubclassMarker.PolyfaceMesh;
507✔
24

25
                /// <summary>
26
                /// Face records with the triangle indexes.
27
                /// </summary>
28
                public CadObjectCollection<VertexFaceRecord> Faces { get; private set; }
1,540✔
29

30
                /// <inheritdoc/>
31
                public PolyfaceMesh() : base()
376✔
32
                {
376✔
33
                        this.Faces = new CadObjectCollection<VertexFaceRecord>(this);
376✔
34
                }
376✔
35

36
                /// <inheritdoc/>
37
                public override CadObject Clone()
38
                {
2✔
39
                        PolyfaceMesh clone = (PolyfaceMesh)base.Clone();
2✔
40

41
                        clone.Faces = new SeqendCollection<VertexFaceRecord>(clone);
2✔
42
                        foreach (VertexFaceRecord v in this.Faces)
6!
43
                        {
×
44
                                clone.Faces.Add((VertexFaceRecord)v.Clone());
×
45
                        }
×
46

47
                        return clone;
2✔
48
                }
2✔
49

50
                internal override void AssignDocument(CadDocument doc)
51
                {
388✔
52
                        base.AssignDocument(doc);
388✔
53
                        doc.RegisterCollection(this.Faces);
388✔
54
                }
388✔
55

56
                internal override void UnassignDocument()
57
                {
26✔
58
                        this.Document.UnregisterCollection(this.Faces);
26✔
59
                        base.UnassignDocument();
26✔
60
                }
26✔
61
        }
62
}
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