[SOLVED] Only a partial hatch appears in a closed shape

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
BrianLogan
Newbie Member
Posts: 7
Joined: Thu Oct 22, 2020 9:49 am

[SOLVED] Only a partial hatch appears in a closed shape

Post by BrianLogan » Fri Mar 08, 2024 4:25 pm

Hi,

Windows 11
QCAD 3.29.4.0 (3.29.4)

I'm seeing only a partial hatch in the shape in the attached file. This is a single polyline, so no gaps. Any ideas?

Image

Image
Attachments
Hatch incomplete.png
Hatch incomplete.png (8.58 KiB) Viewed 570 times
Hatch settings.png
Hatch settings.png (10.79 KiB) Viewed 570 times
Hatch fail.dxf
(96.34 KiB) Downloaded 22 times
Last edited by BrianLogan on Sat Mar 16, 2024 10:38 am, edited 1 time in total.

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Only a partial hatch appears in a closed shape

Post by CVH » Sat Mar 09, 2024 8:53 am

Hi,
I can confirm that it doesn't renders the Hatch correctly seeing your result.
Using QCAD 3.27.6.0 nothing is rendered at all. :shock:
Solid filled works fine.

Although your polyline is a perfectly singular and logically closed.
I presume that some near verticals are most likely intentionally. :wink:
Scaling nor rotating helps in this case.
Nor does altering the Hatching origin or the starting point of your polyline.

We have seen such rare cases of incomplete rendering before, most likely a mathematical issue.
Probably something for reporting as a bug on QCAD Bugtracker:
https://www.ribbonsoft.com/bugtracker/

Regards,
CVH

BrianLogan
Newbie Member
Posts: 7
Joined: Thu Oct 22, 2020 9:49 am

Re: Only a partial hatch appears in a closed shape

Post by BrianLogan » Fri Mar 15, 2024 6:47 pm

Thanks for confirming. This is a side profile of a plastic enclosure which has a moulding draft, hence the vertical lines are slanted intentionally. I'll report it as a bug.

CVH
Premier Member
Posts: 3480
Joined: Wed Sep 27, 2017 4:17 pm

Re: Only a partial hatch appears in a closed shape

Post by CVH » Sat Mar 16, 2024 6:36 am

Hi,

Found the culprit ...
The polyline is drawn at Z level -1.8e-15 ... e_surprised
This doesn't show in the Property Editor even when displaying Z values by preference and with 8 decimal digits.

My bad :oops: ... All Z values were displayed as '0' and I did not tried to flatten your file to 2D.
See menu Misc .. Modify .. Flatten Drawing to 2D

Another solution:
Forcing Global Z to zero won't work because the difference is to small.
First force it to a larger value, for example 1, and then back to zero.

On the other hand ...
- I would have expected scientific notation for very small and very large values.
- A value of -1.8e-15 is less than the threshold to be diversified from zero (RS.PointTolerance = 1e-9).
- It eludes me why Hatch boundaries are stored in 3D if QCAD does not render them well.


When considered as solved then please include [SOLVED] in the title of your initial post by editing it.
I already added a comment to your bug report: https://qcad.org/bugtracker/index.php?d ... sk_id=2550

Regards,
CVH

BrianLogan
Newbie Member
Posts: 7
Joined: Thu Oct 22, 2020 9:49 am

Re: Only a partial hatch appears in a closed shape

Post by BrianLogan » Sat Mar 16, 2024 10:35 am

Wow! Thanks, CVH. I would never have found that. I'd seen Z coordinates here and there around QCAD, but always ignored them as I couldn't see their purpose in a 2D CAD package. I guess DXF and DWG format carry the Z coordinates from AutCAD. This shape originated from a drawing done by the enclosure manufacturer, so I guess they didn't take enough care to make sure the Z coordinate was zero.

Post Reply

Return to “QCAD Troubleshooting and Problems”