Skip to content

Commit

Permalink
Merge pull request #160 from DomCR/issue-159_polyline-IsClosed-flag
Browse files Browse the repository at this point in the history
Issue-159 Fix the IsClosed flag for 3D Polylines
  • Loading branch information
DomCR committed Aug 25, 2023
2 parents aa7226f + aa866a1 commit de39194
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ACadSharp/IO/DWG/DwgStreamReaders/DwgObjectReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1585,7 +1585,11 @@ private CadTemplate readPolyline3D()
//Flags RC 70 NOT DIRECTLY THE 70. Bit-coded (76543210):
//0 : Closed(70 bit 0(1))
//(Set 70 bit 3(8) because this is a 3D POLYLINE.)
bool closed = (this._objectReader.ReadByte() & 1U) > 0U;
pline.Flags |= PolylineFlags.Polyline3D;
if ((this._objectReader.ReadByte() & 1U) > 0U)
{
pline.Flags |= PolylineFlags.ClosedPolylineOrClosedPolygonMeshInM;
}

//R2004+:
if (this.R2004Plus)
Expand Down

0 comments on commit de39194

Please sign in to comment.