ixmilia / dxf

MIT License
205 stars 65 forks source link

SPATIAL_FILTER code 40 issue #192

Closed rocchellid closed 1 year ago

rocchellid commented 1 year ago

I have DXF (AutoCAD 2018) that crashed while loading. Analyzing the problem I saw that every 12 elements of code 40 you group them. In the DXF there are 24, but you don't add the first one to the list so in the end the second list has 11 and the assert intervenes. The 40 data starts at line 3047813 of the DXF file. If I also add the first element, as you can see, the DXF is loaded correctly (3.png on the right; AutoCAD on the left). I'll send you the DXF privately. Regards Davide

1

2

3

brettfo commented 1 year ago

Thank you for filing the issue and sending me the drawing. I wasn't properly accounting for the IsFrontClippingPlane flag. Fix has been pushed to main.