-
-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from DomCR/DwgReader_missing-objects
Dwg reader missing objects
- Loading branch information
Showing
40 changed files
with
1,050 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
namespace ACadSharp.Entities | ||
{ | ||
/// <summary> | ||
/// Clipping boundary type | ||
/// </summary> | ||
public enum ClipType : short | ||
{ | ||
/// <summary> | ||
/// Rectangular | ||
/// </summary> | ||
Rectangular = 1, | ||
/// <summary> | ||
/// Polygonal | ||
/// </summary> | ||
Polygonal = 2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using ACadSharp.Attributes; | ||
|
||
namespace ACadSharp.Entities | ||
{ | ||
/// <summary> | ||
/// Represents a <see cref="FaceMesh"/> entity. | ||
/// </summary> | ||
/// <remarks> | ||
/// Object name <see cref="DxfFileToken.EntityVertex"/> <br/> | ||
/// Dxf class name <see cref="DxfSubclassMarker.PolyfaceMeshFace"/> | ||
/// </remarks> | ||
[DxfName(DxfFileToken.EntityVertex)] | ||
[DxfSubClass(DxfSubclassMarker.PolyfaceMeshFace)] | ||
public class FaceMesh : Entity | ||
{ | ||
/// <inheritdoc/> | ||
public override ObjectType ObjectType { get { return ObjectType.VERTEX_PFACE_FACE; } } | ||
|
||
/// <inheritdoc/> | ||
public override string ObjectName => DxfFileToken.EntityVertex; | ||
|
||
/// <summary> | ||
/// Vert index BS 71 1 - based vertex index(see DXF doc) | ||
/// </summary> | ||
[DxfCodeValue(71)] | ||
public short Index1 { get; set; } | ||
|
||
/// <summary> | ||
/// Vert index BS 72 1 - based vertex index(see DXF doc) | ||
/// </summary> | ||
[DxfCodeValue(72)] | ||
public short Index2 { get; set; } | ||
|
||
/// <summary> | ||
/// Vert index BS 73 1 - based vertex index(see DXF doc) | ||
/// </summary> | ||
[DxfCodeValue(73)] | ||
public short Index3 { get; set; } | ||
|
||
/// <summary> | ||
/// Vert index BS 74 1 - based vertex index(see DXF doc) | ||
/// </summary> | ||
[DxfCodeValue(74)] | ||
public short Index4 { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
|
||
namespace ACadSharp.Entities | ||
{ | ||
[Flags] | ||
public enum ImageDisplayFlags : short | ||
{ | ||
/// <summary> | ||
/// None | ||
/// </summary> | ||
None = 0, | ||
/// <summary> | ||
/// Show image | ||
/// </summary> | ||
ShowImage = 1, | ||
/// <summary> | ||
/// Show image when not aligned with screen | ||
/// </summary> | ||
ShowNotAlignedImage = 2, | ||
/// <summary> | ||
/// Use clipping boundary | ||
/// </summary> | ||
UseClippingBoundary = 8, | ||
/// <summary> | ||
/// Transparency is on | ||
/// </summary> | ||
TransparencyIsOn = 8 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
using ACadSharp.Attributes; | ||
using System.Drawing; | ||
using System; | ||
|
||
namespace ACadSharp.Entities | ||
{ | ||
/// <summary> | ||
/// Represents a <see cref="Mesh"/> entity. | ||
/// </summary> | ||
/// <remarks> | ||
/// Object name <see cref="DxfFileToken.EntityMesh"/> <br/> | ||
/// Dxf class name <see cref="DxfSubclassMarker.Mesh"/> | ||
/// </remarks> | ||
[DxfName(DxfFileToken.EntityMesh)] | ||
[DxfSubClass(DxfSubclassMarker.Mesh)] | ||
public class Mesh : Entity | ||
{ | ||
/// <inheritdoc/> | ||
public override ObjectType ObjectType => ObjectType.UNLISTED; | ||
|
||
/// <inheritdoc/> | ||
public override string ObjectName => DxfFileToken.EntityMesh; | ||
|
||
/// <summary> | ||
/// Version number | ||
/// </summary> | ||
[DxfCodeValue(71)] | ||
public short Version { get; internal set; } | ||
|
||
//72 "Blend Crease" property | ||
//0 = Turn off | ||
//1 = Turn on | ||
|
||
//91 Number of subdivision level | ||
|
||
//92 Vertex count of level 0 | ||
|
||
//10 Vertex position | ||
|
||
//93 Size of face list of level 0 | ||
|
||
//90 Face list item | ||
|
||
//94 Edge count of level 0 | ||
|
||
//90 Vertex index of each edge | ||
|
||
//95 Edge crease count of level 0 | ||
|
||
//140 Edge create value | ||
|
||
//90 Count of sub-entity which property has been overridden | ||
|
||
//91 Sub-entity marker | ||
|
||
//92 Count of property was overridden | ||
|
||
//90 Property type | ||
//0 = Color | ||
//1 = Material | ||
//2 = Transparency | ||
//3 = Material mapper | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
using ACadSharp.Attributes; | ||
using ACadSharp.IO.Templates; | ||
using CSMath; | ||
|
||
namespace ACadSharp.Entities | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using ACadSharp.Attributes; | ||
|
||
namespace ACadSharp.Entities | ||
{ | ||
/// <summary> | ||
/// Represents a <see cref="PolyfaceMesh"/> entity. | ||
/// </summary> | ||
/// <remarks> | ||
/// Object name <see cref="DxfFileToken.EntityPolyFaceMesh"/> <br/> | ||
/// Dxf class name <see cref="DxfSubclassMarker.PolyfaceMesh"/> | ||
/// </remarks> | ||
[DxfName(DxfFileToken.EntityPolyFaceMesh)] | ||
[DxfSubClass(DxfSubclassMarker.PolyfaceMesh)] | ||
public class PolyfaceMesh : Entity | ||
{ | ||
/// <inheritdoc/> | ||
public override ObjectType ObjectType { get { return ObjectType.POLYLINE_PFACE; } } | ||
|
||
/// <inheritdoc/> | ||
public override string ObjectName => DxfFileToken.EntityPolyFaceMesh; | ||
|
||
public SeqendCollection<Vertex3D> Vertices { get; } | ||
|
||
public SeqendCollection<FaceMesh> Faces { get; } | ||
|
||
public PolyfaceMesh() | ||
{ | ||
this.Vertices = new SeqendCollection<Vertex3D>(this); | ||
this.Faces = new SeqendCollection<FaceMesh>(this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.