Skip to content

Commit

Permalink
dxf writer placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Sep 13, 2023
1 parent f8987af commit 92945e9
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ protected void writeEntity<T>(T entity)
switch (entity)
{
case Hatch:
case Mesh:
case Ray:
case Shape:
case Solid3D:
Expand Down Expand Up @@ -61,6 +60,9 @@ protected void writeEntity<T>(T entity)
case LwPolyline lwPolyline:
this.writeLwPolyline(lwPolyline);
break;
case Mesh mesh:
this.writeMesh(mesh);
break;
case MLine mline:
this.writeMLine(mline);
break;
Expand Down Expand Up @@ -511,6 +513,15 @@ private void writeLwPolyline(LwPolyline polyline)
this._writer.Write(210, polyline.Normal, map);
}

private void writeMesh(Mesh mesh)
{
DxfClassMap map = DxfClassMap.Create<Mesh>();

this._writer.Write(DxfCode.Subclass, DxfSubclassMarker.Mesh);

this._writer.Write(71, (short)mesh.Version, map);
}

private void writeMLine(MLine mLine)
{
DxfClassMap map = DxfClassMap.Create<MLine>();
Expand Down

0 comments on commit 92945e9

Please sign in to comment.