Skip to content

Commit

Permalink
Read extrusion tags for dimension entities
Browse files Browse the repository at this point in the history
Dimension entities support DXF codes 210, 220, 230 and and DRW_Dimension
already had a extPoint member, but the tags were never used when
parsing.
  • Loading branch information
johreh authored and rpavlik committed Dec 22, 2021
1 parent f236550 commit 465ad9d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/drw_entities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2438,6 +2438,15 @@ void DRW_Dimension::parseCode(int code, dxfReader *reader){
case 51:
hdir = reader->getDouble();
break;
case 210:
extPoint.x = reader->getDouble();
break;
case 220:
extPoint.y = reader->getDouble();
break;
case 230:
extPoint.z = reader->getDouble();
break;
default:
DRW_Entity::parseCode(code, reader);
break;
Expand Down

0 comments on commit 465ad9d

Please sign in to comment.