Opened 7 years ago
Closed 7 years ago
#7038 closed defect (fixed)
DXF: Algorithm for reading SOLIDs fails on certain shapes
Reported by: | Alan Thomas | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | OGR_SF | Version: | svn-trunk |
Severity: | normal | Keywords: | dxf |
Cc: |
Description (last modified by )
The algorithm for translating SOLID entities fails on certain shapes. On the attached parallelogram, it creates invalid self-intersecting POLYGONs. On other SOLIDs with one or two distinct points, it returns empty POLYGONs.
In the attached patch, I have reimplemented the algorithm using a Jarvis march. The patch also fixes an unrelated crash that I was hitting in PrepareLineStyle
.
Attachments (3)
Change History (10)
by , 7 years ago
Attachment: | solid-parallelogram.dxf added |
---|
by , 7 years ago
Attachment: | solid-less-than-4-vertices.dxf added |
---|
by , 7 years ago
Attachment: | OGR-DXF-solid-algorithm-fix.diff added |
---|
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
comment:2 by , 7 years ago
Note:
See TracTickets
for help on using tickets.
You might also want to edit drv_dxf.html to mention that SOLIDs may be imported as POINTs, LINESTRINGs or POLYGONs depending on the number of distinct points.