← All bug reports

FS#2078Draw > Hatch: Small gap tolerated by QCAD, not by DXF/DWG

Type
Bug
Status
Closed
Resolution
Fixed
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
3.24.3
Operating system
All
Reported
2020-05-22 by CVH
Closed
2020-06-03 by andrew

https://qcad.org/rsforum/viewtopic.php?f=33&t=7254

It seems to be an accuracy problem.
The original hatch boundaries are defined from 732 single entities.
These interconnect with an accuracy better then 1e-10 except for a gap of 0.000814 in two places.

Creating a Hatch of these entities with TA-HA is rather slow but succesfull.
After Save-Close-Open the Hatch may look different or may even be missing (=Null).

Suspected is that:
The recreation off the Hatch on load uses some other accuracy setting.
The outer boundary is not found and only some inner ones are considered as outer.

But that explains not why it looks fine after initial creation.
Nor that the outcome of a retry may vary.

Regards,
CVH

Comments (1)

andrew 2020-05-25

The cause seems to be a small gap (0.00081428) between
247.33233151,252.66476252
247.33290729,252.66418674

Possibly others as well.

This is just about acceptable by QCAD (<0.001), but not by the OpenDesign libraries or the DXF/DWG format. The implemented solution lets QCAD insert a tiny bridge element in the hatch boundary to cover that case.