Opened 8 years ago

Last modified 8 years ago

#6459 closed enhancement

Improve dxf driver — at Initial Version

Reported by: perob Owned by: warmerdam
Priority: normal Milestone: 2.1.0
Component: default Version: unspecified
Severity: normal Keywords: dxf
Cc:

Description

Hi,

I have modified dxf driver for better support of drawings drawn in various object coordinate systems. Pull request is sent also.

Entities changed are: point, line, polyline, ellipse, spline and text.

Remove ocs transformations for: point, line and spline. Remove ocs transformations based on entity data: polyline, ellipse. Add anchor position for text entity.

Points, lines and splines are always in world coordinate system.

Polylines may be 2d (ocs, with or without elevation) or 3d (wcs) and this information is stored in polyline flag.

Ellipses are stored in wcs but calculations must be done in ocs. Added inverse transform to OCSTransformer class and updated ellipse handling accordingly.

Anchor position for text entities was added to style string.

Object coordinate system features of DXF format are rarely used so please comment if this feature is needed for dxf driver.

Screenshots of sample files show desired output in CAD program.

Thanks, bye

Change History (4)

by perob, 8 years ago

Attachment: ocs2wcs1.dxf added

ocs xy plane parallel to wcs

by perob, 8 years ago

Attachment: ocs2wcs2.dxf added

ocs xy plane NOT parallel to wcs

by perob, 8 years ago

Attachment: ocs2wcs1.png added

screenshot as drawn

by perob, 8 years ago

Attachment: ocs2wcs2.png added

screenshot as drawn

Note: See TracTickets for help on using tickets.