Opened 8 years ago
Last modified 8 years ago
#6459 closed enhancement
Improve dxf driver — at Version 1
Reported by: | perob | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 2.1.0 |
Component: | default | Version: | unspecified |
Severity: | normal | Keywords: | dxf |
Cc: |
Description (last modified by )
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
EDIT: Forgot to say that I disabled parsing of polygon/polyface meshes stored in polyline entity. It's possible to handle them. Question is in which geometry to store them? Collection of polygons?
Change History (5)
by , 8 years ago
Attachment: | ocs2wcs1.dxf added |
---|
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
ocs xy plane parallel to wcs